Web services 在MULE ESB中将JMSMessage转换为SOAP消息

Web services 在MULE ESB中将JMSMessage转换为SOAP消息,web-services,soap,mule,esb,mule-studio,Web Services,Soap,Mule,Esb,Mule Studio,我们已经在上生成了Web服务。”http://localhost:5050/MyServices“。尝试使用HTTP端点代理Web服务,效果良好 但现在我们正试图在这些HTTP端点的中间位置使用JMS。我的服务正在获取请求,但无法理解JMS消息。有没有办法将JMSMessage转换为SOAP消息 流程是:soapui=>JMS(muleesb)==>myservicesat5050 !!Flow im mule]来自SoapUI的JMS消息在到达mule JMS入站端点时只是一个包含SOAP请求

我们已经在
上生成了Web服务。”http://localhost:5050/MyServices“
。尝试使用HTTP端点代理Web服务,效果良好

但现在我们正试图在这些HTTP端点的中间位置使用JMS。我的服务正在获取请求,但无法理解JMS消息。有没有办法将JMSMessage转换为SOAP消息

流程是:soapui=>JMS(muleesb)==>myservicesat5050


!!Flow im mule]

来自SoapUI的JMS消息在到达mule JMS入站端点时只是一个包含SOAP请求XML的字符串,因此您应该能够将其发送到具有所需头的http端点

例如:

<jms:inbound-endpoint connector-ref="JMS_Connector" doc:description="Generated by ArchStudio" doc:name="JMS" exchange-pattern="request-response" queue="test.queue"/>
<http:outbound-endpoint exchange-pattern="request-response" host="wsf.cdyne.com" port="80" path="WeatherWS/Weather.asmx" method="POST" doc:name="HTTP">
       <set-property propertyName="Content-Type" value="text/xml"/>
</http:outbound-endpoint>

或者,您也可以使用:-

<object-to-string-transformer doc:name="Object to String"/>


jms:inbound endpoint
之后和
http:outbound endpoint

之前,当您遵循Anton的建议时会遇到什么问题?请发布错误。我需要向哪个地址发送请求(从SOAP UI)。您需要在HermesJMS中配置JMS端点,然后设置SOAP UI以使用该端点。您也可以直接使用HermesJMS进行测试。