I am trying to send a request to a SOAP API using a call mediator. I receive proper response when I use SoapUI, but get the following error when I try it on WSO2 Integration studio.
<faultstring>Couldn't create SOAP message due to exception: unexpected XML tag. expected: {http://schemas.xmlsoap.org/soap/envelope/}Envelope but found: {some-url}Fulfillments</faultstring>
This is the content of my Insequence.
I'm not finding a proper solution for this. Any idea how this can be solved? Thanks in advance!
<payloadFactory media-type="xml">
<format>
<soapenv:Envelope xmlns:loc="some-url" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Header/>
<soapenv:Body>
<loc:Fulfillments>
<message_header >
</message_header>
<message_body>
</message_body>
</loc:Fulfillments>
</soapenv:Body>
</soapenv:Envelope>
</format>
<args/>
</payloadFactory>
<property name="messageType" scope="axis2" type="STRING" value="text/xml"/>
<property name="Content-Type" scope="axis2" type="STRING" value="text/xml"/>
<!-- Setting the Credentials-->
<property name="Action" scope="transport" type="STRING" value=""/>
<call>
<endpoint>
<address format="soap11" uri="">
<timeout>
<duration>60000</duration>
<responseAction>fault</responseAction>
</timeout>
</address>
</endpoint>
</call>
<property name="messageType" scope="axis2" type="STRING" value="text/xml"/>
<property name="Content-Type" scope="axis2" type="STRING" value="text/xml"/>
<respond/>