soapUI-使用WebSphereMessageBroker中的WSDL

soapUI-使用WebSphereMessageBroker中的WSDL,soap,wsdl,soapui,messagebroker,Soap,Wsdl,Soapui,Messagebroker,我正在使用WebSphereMessageBroker进行一个项目,该项目将生成2个BAR文件。一个是客户端,另一个是服务器。两者都部署在远程位置(楼上的服务器)的代理中。服务器流使用的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 vers

我正在使用WebSphereMessageBroker进行一个项目,该项目将生成2个BAR文件。一个是客户端,另一个是服务器。两者都部署在远程位置(楼上的服务器)的代理中。服务器流使用的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和端口。但是不起作用,有人能帮我吗?

在WSDL的底部,您有这个

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


在REPLACE_WITH_ACTUAL_URL中,WMB应该在其中绑定此特定服务,以便从外部访问该服务。代理正在侦听的端口是侦听器的属性。默认情况下,SOAP节点使用EG级别的嵌入式侦听器,因此您可以通过执行以下命令来找到它:

mqsireportproperties-e-o HTTPConnector-r

此端口可在此信息中找到,但也会显示当前URL注册


服务绑定到的路径由SOAP节点本身的URL属性定义,您可以从工具箱中找到该属性

是的,我知道。那条路就是我要找的。好消息是,我找到了访问服务器的正确IP和端口组合,但出现了这样的情况:“找不到|/TVPAGainterractWebServiceService/|的URL映射”。我使用的端点显然是http://:/TVPAGainterractWebServiceService,但它不起作用。WMB在哪里定义了路径?节点后缀是什么?另一方面,您是否尝试访问http://[IP]:[Port]/tvpagainterractwebserviceservice?wsdl并查看它是否有效?另外,您在soap地址中到底放了什么?最后一件事,httpconnector正确吗?我想httpconnector很好,因为我从服务器得到了响应。我想,映射是唯一的问题。我想知道,http://:/name模式是否正确?因为wsdl包含在MSP项目中。所以我想,在:http://:/和名字之间,不应该有更多的东西,也许?回答第一个问题,是的。我尝试了这种模式(http://[IP]:[Port]/tvpagainterractwebserviceservice?wsdl),表示找不到映射。在soap地址中,justput http://:IP:Port仍然表示找不到映射。“找不到|/|的URL映射”