0

WebSphere Message Broker を使用して 2 つの BAR ファイルを生成するプロジェクトを行っています。1 つはクライアントで、もう 1 つはサーバーです。両方とも、リモート ロケーション (2 階のサーバー) のブローカーにデプロイされます。サーバー フローが使用する WSDL は、メッセージ セット プロジェクト内にあります。wsdl 構造は次のとおりです。

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<!-- Generated by JAX-WS RI at http://jax-ws.dev.java.net. RI's version is JAX-WS RI 2.1.3.1-hudson-749-SNAPSHOT. -->
<definitions targetNamespace="http://ws.interact.bytesw.com/" name="TvPagaInteractWebService" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="http://ws.interact.bytesw.com/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
  <types> 
    <xsd:schema>
      <xsd:import namespace="http://ws.interact.bytesw.com/" schemaLocation="TvPagaInteractWebServiceService.xsd"/>
    </xsd:schema>
  </types>
  <message name="ejecutarTransaccion">
    <part name="parameters" element="tns:ejecutarTransaccion"/>
  </message>
  <message name="ejecutarTransaccionResponse">
    <part name="parameters" element="tns:ejecutarTransaccionResponse"/>
  </message>
  <message name="consultarOperacion">
    <part name="parameters" element="tns:consultarOperacion"/>
  </message>
  <message name="consultarOperacionResponse">
    <part name="parameters" element="tns:consultarOperacionResponse"/>
  </message>
  <message name="consultarServicio">
    <part name="parameters" element="tns:consultarServicio"/>
  </message>
  <message name="consultarServicioResponse">
    <part name="parameters" element="tns:consultarServicioResponse"/>
  </message>
  <portType name="TvPagaInteractWebService">
    <operation name="ejecutarTransaccion">
      <input message="tns:ejecutarTransaccion"/>
      <output message="tns:ejecutarTransaccionResponse"/>
    </operation>
    <operation name="consultarOperacion">
      <input message="tns:consultarOperacion"/>
      <output message="tns:consultarOperacionResponse"/>
    </operation>
    <operation name="consultarServicio">
      <input message="tns:consultarServicio"/>
      <output message="tns:consultarServicioResponse"/>
    </operation>
  </portType>
  <binding name="TvPagaInteractWebServicePortBinding" type="tns:TvPagaInteractWebService">
    <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
    <operation name="ejecutarTransaccion">
      <soap:operation soapAction=""/>
      <input>
        <soap:body use="literal"/>
      </input>
      <output>
        <soap:body use="literal"/>
      </output>
    </operation>
    <operation name="consultarOperacion">
      <soap:operation soapAction=""/>
      <input>
        <soap:body use="literal"/>
      </input>
      <output>
        <soap:body use="literal"/>
      </output>
    </operation>
    <operation name="consultarServicio">
      <soap:operation soapAction=""/>
      <input>
        <soap:body use="literal"/>
      </input>
      <output>
        <soap:body use="literal"/>
      </output>
    </operation>
  </binding>
  <service name="TvPagaInteractWebService">
    <port name="TvPagaInteractWebServicePort" binding="tns:TvPagaInteractWebServicePortBinding">
      <soap:address location="REPLACE_WITH_ACTUAL_URL"/>
    </port>
  </service>
</definitions>

デプロイしたら、soapUI から使用したいと思います。しかし、どのエンドポイントがそれを構成するのかわかりません。ブローカー接続の IP とポートを含むいくつかの組み合わせを試しています。しかし、うまくいきません。誰か助けてください。

4

2 に答える 2

0

ブローカーがリッスンしているポートは、リスナーのプロパティです。SOAP ノードはデフォルトで EG レベルの組み込みリスナーを使用するため、次のコマンドを実行してこれを見つけることができます。

mqsireportproperties -e -o HTTPConnector -r

このポートはこの情報で見つけることができますが、現在の URL 登録も表示されます。

サービスがバインドされるパスは、ツールキットから見つけることができる SOAP ノード自体の URL プロパティによって定義されます。

于 2013-03-21T11:53:05.800 に答える
0

WSDL の一番下にこれがあります

<service name="TvPagaInteractWebService">
    <port name="TvPagaInteractWebServicePort" binding="tns:TvPagaInteractWebServicePortBinding">
      <soap:address location="REPLACE_WITH_ACTUAL_URL"/>
    </port>
</service>

REPLACE_WITH_ACTUAL_URL では、外部からアクセスできるように、WMB がこの特定のサービスをバインドする必要があるアドレスに移動します

于 2013-02-06T15:39:15.397 に答える