Transform Binary to XML in OutSequence from WCF Service Proxy in WSO2 ESB -
i'm using proxy service in wso2 esb in between rest api , wcf service. wcf service calling accepts , returns xelement object. when response of wcf service enters out sequence of proxy result in binary.
<?xml version='1.0' encoding='utf-8'?> <soapenv:envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> <soapenv:body> <axis2ns43:binary xmlns:axis2ns43="http://ws.apache.org/commons/ns/payload"></axis2ns43:binary> </soapenv:body> </soapenv:envelope> the message in soap body should like
<?xml version='1.0' encoding='utf-8'?> <soapenv:envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> <soapenv:body> <location><result>success</result></location> </soapenv:body> </soapenv:envelope> how can transform binary message actual xml supposed be? i'm guessing need use either formatted or builder mediator accomplish this, i'm not sure how.
esb 4..6.0, default uses passthru transport, doesn't build message.. binary out put, can confirm taht esb didnt receve message..(ie: teh 'success' msg) if received, see, following that;
<axis2ns43:binary xmlns:axis2ns43="http://ws.apache.org/commons/ns/payload">6ly9zy2hlbwfzlnhtbhnvy</axis2ns43:binary> can switch nio transport(you need enable transport sender , receiver @ axi2.xml) , see, receiving?
Comments
Post a Comment