micro-integrator
micro-integrator copied to clipboard
Ambiguous behaviour in payload factory when SOAP namespace contain tailing slash
Description
When using the following configuration in the payload factory, we can get the response with the SOAP envelope.
<payloadFactory media-type="xml">
<format>
<soap:Envelope xmlns:ns="http://www.viewstar.com/webservices/2002/11" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope">
<soap:Header/>
<soap:Body>
<ns:Login>
<ns:loginId>123</ns:loginId>
<ns:loginMode>sso</ns:loginMode>
</ns:Login>
</soap:Body>
</soap:Envelope>
</format>
<args/>
</payloadFactory>
However, when the SOAP namespace contains a tailing slash as follows, the SOAP envelope will get omitted.
<payloadFactory media-type="xml">
<format>
<soap:Envelope xmlns:ns="http://www.viewstar.com/webservices/2002/11" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header/>
<soap:Body>
<ns:Login>
<ns:loginId>123</ns:loginId>
<ns:loginMode>sso</ns:loginMode>
</ns:Login>
</soap:Body>
</soap:Envelope>
</format>
<args/>
</payloadFactory>