Hi all,
I am using an integration with usps to verify the address. I am using the following URL in integration:
https://servername/ShippingAPI.dll?API=Verify&XML=
After this I need to pass the XML request which should be in the following form and sequence:
<AddressValidateRequest USERID="XXXXX">
<Revision>1</Revision>
<Address ID="0">
<Address1></Address1>
<Address2>29851 Aventura #k</Address2>
<City></City>
<State>CA</State>
<Zip5>92688</Zip5>
<Zip4></Zip4>
</Address>
</AddressValidateRequest>
When I try to send the request, I am getting the following error:
<Error><Number>80040B19</Number><Description>XML Syntax Error: Please check the XML request to see if it can be parsed.</
I am using toxml function in body and as follows:
toxml( value: { "AddressValidateRequest USERID": "XXXXX", "Address ID": "0", "Address1": "14910", "Address2": "Jockeys Ridge", "City": "Charlotte", "State": "NC", "Zip5":"28277" })
Where am I going wrong? Thanks in advance.
Discussion posts and replies are publicly visible