且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在Mule Flow中使用SOAP Web服务?

更新时间:2023-02-11 14:35:03

尝试使用CXF代理(服务和客户端).在这种情况下,您将把原始XML放入流中.当然,如果需要,您可以将其反序列化为Java,例如通过XML到对象转换器(XStream).

Try using a CXF proxy (service and client). In this case, you will get the raw XML into the flow. Of course you can deserialize it to java if you need to, for instance via XML-To-Object transformer (XStream).

http://www.mulesoft.org/文档/显示/MULE3USER/Proxying + Web + Services + with + CXF

从那里开始,有几种方法可以在中间转换有效负载.通过Java(如上所述)转换Java层对象或编写执行转换的XSLT工作表,或者使用Java和/或Mule提供的其他工具(脚本,xpath等)转换XML.

From there, there are several ways to do transform the payload in the middle. Either go through java (as mentioned above) and transform java layer objects or write an XSLT sheet that does the transformation.Or transform the XML using Java and/or the other tools Mule provides (scripting, xpath etc).

您可能想再次详细说明聚合情况.您要合并响应以供将来使用还是要进行一个Web服务调用->扇出->汇总->响应?

You might want to explain the aggregation case once more in details. Do you want to merge the responses for future use or have one web service call -> fan out -> aggregate -> response?