I am trying to dynamically create SOAP XML request body from JSON data to be processed by POST REST Web Service node. I was able to create XML request with all the input parameters but the only issue that I am facing is that the JSON to XML automatically adds XML tag on the top:
<?xml version="1.0" encoding="UTF-8"?>But what I am looking for to add SOAP envelop wrapping the request
My current output is as below:
<?xml version="1.0" encoding="UTF-8"?>
<getGeoCodesRequest>
<Addrs>
<City>DENVER</City>
<Country>UNITED STATES</Country>
<PostCd>80212</PostCd>
<State>COLORADO</State>
</Addrs>
</getGeoCodesRequest>
My Expected output is:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<getGeoCodesRequest>
<addrs>
<city>DENVER</city>
<statePrv>COLORADO</statePrv>
<postCd>80212</postCd>
<cntry>UNITED STATES</cntry>
</addrs>
</getGeoCodesRequest>
</soapenv:Body>
</soapenv:Envelope>
I don’t see any configuration that will allow me to add this envelop tag within JSON to XML node.
Are there any other ways I can achieve this?
Please note that I am not able to achieve this using Generic Web Service client because I am unable to use local WSDL file for the SOAP request.