Search code examples
javarestsoapwso2-micro-integratorwso2-integration-studio

Does a predefined mediator exist for REST-to-SOAP or SOAP-to-REST mediation?


I have a requirement where I'll receive SOAP calls and need to mediate them to REST calls, and vice versa, to invoke some services using WSO2 Micro Integrator 4.2.0.

Could you please confirm if WSO2 Micro Integrator 4.2.0 includes built-in functionality to address this requirement, or if I need to develop it from scratch?

Any assistance on this matter would be greatly appreciated.

Best regards.


Solution

  • To convert to a SOAP message

    content-type should be set to text/xml and soapaction must be set

    <header name="SOAPAction" scope="transport" value="xxxx"/>
    <property name="messageType" value="text/xml" scope="axis2" type="STRING"/>
    

    To make soap to rest you can use

    <property name="messageType" value="application/json" scope="axis2" type="STRING"/>
    <property name="SOAPAction" scope="transport" action="remove"/>