xml:encodePostBody not working

Hi

I have created the following script:

<SourceObject>
<name>RequestOTP</name>
<url><![CDATA[http://???????.com/NashuaMobile/NashuaMobileService/RequestOTP]]></url>
<originalformat>xml</originalformat>
<converttoxml>true</converttoxml>
<stripxmlns>true</stripxmlns>
<httpmethod>POST</httpmethod>
<joinsRequireLiterals>false</joinsRequireLiterals>

<encodePostBody>false</encodePostBody>
<!-- BaseXPath code for traversing xml file -->
<basexpath><![CDATA[//ResultOfAction]]></basexpath>
<Field name="Description" datatype="System.String" />
<Field name="ResultCode" datatype="System.String" />
<Field name="WasSuccessful" datatype="System.String" />
<Field name="DeviceId" datatype="System.String" required="true" sendinquerystring="true" />
<Field name="MobileNumber" datatype="System.String" required="true" sendinquerystring="true" />
</SourceObject>

This works perfectly on my Dev server, but for some reason it doesn't on my production server. The POST body is being encoded with escape characters:

%3cMobileAccountQueryRequest+xmlns=%22http%3a%2f%2fwww.mobicover.co.za%22%3e%0d%0a%09%09%09%09%09%09%09%09%3cMobileNumber%3e%23MobileNumber%23%3c%2fMobileNumber%3e%0d%0a%09%09%09%09%09%09%09%3c%2fMobileAccountQueryRequest%3e

Can anyone tell me why this is happening.

Thanks

Drew

Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.
Powered by Zendesk