java.lang.Object over a MULE SOAP Component -
i need pass soap component object of known class composed 2 strings. soap request should like:
<soapenv:envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsd="http://wstest/"> <soapenv:header/> <soapenv:body> <wsd:find> <entity> <id>string_1</id> <type>string_2</type> </entity> </wsd:find> </soapenv:body> </soapenv:envelope> is there suitable mule transformer can input 2 strings convert them wanted class object ?? thank you.
use expression transformer:
<expression-transformer expression="#[new com.mycomp.entity('string_1','string_2')]" /> assuming com.mycomp.entity class has 2 string constructor.
Comments
Post a Comment