Consume a web service method with multiple args in Mule esb

元气小坏坏 提交于 2019-12-02 09:58:01

First, I would not create a custom-transformer for simply instantiating a class, I would just use an expression:

<expression-transformer
    expression="#[new douane.DouanePK(message.inboundProperties.id,message.inboundProperties.type)]" />

Second, the exception you're getting comes from the inability of mulexml:object-to-xml-transformer to transform a SoapMessage object to XML using XStream (which is kind of expected). It is the responsibility of cxf:jaxws-client to do this unmarshalling in the response phase of the flow.

So you need to the mulexml:object-to-xml-transformer and the file:outbound-endpoint elements in a response element above the cxf:jaxws-client so they are processed after CXF has unmarshalled the response to the right object.

xml to object error comes because of SOAP component, in your case, you may avoid it,, and just use and expression tranformer

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!