Managed to solve this problem through adding a Payload Factory mediator with
the following format:
<payloadFactory media-type="xml">
<format>
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Header></soapenv:Header>
<soapenv:Body>
<root>
<key1>$1</key1>
<key2>$2</key2>
</root>
</soapenv:Body>
</soapenv:Envelope>
</format>
<args>
<arg expression="get-property('uri.var.key1')"
/>
<arg expression="get-property('uri.var.key2')"
/>
</args>
</payloadFactory>
<property name="messageType"
value="application/x-www-form-urlencoded"
scope="axis2" />
Thanks.
--
View this message in context:
http://wso2-oxygen-tank.10903.n7.nabble.com/ESB-Sending-POST-requests-with-x-www-form-urlencoded-content-type-tp90956p91088.html
Sent from the WSO2 Development mailing list archive at Nabble.com.
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev