Hello all,
We have been trying to communicate with the UPS website to get time in transit information. This calls for sending a xml doc with HTTP Post. We have been using Microsoft XML, v5.0 to post the doc, but here is the problem: The XML doc is made up of two xml docs that are concatenated. The first one contains login info and the second the inquiry. The question is, does anyone know how two concatenate the two docs to get a legal xml doc in navision? Or better still, is there another automation that can handle this?
0
Comments
If a xml document doesn't have a root then it is not realy a proper xml document.
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
RIS Plus, LLC
<?xml version="1.0"?>
<AccessRequest xml:lang="en-US">
<AccessLicenseNumber>LN</AccessLicenseNumber>
<UserId>Usr</UserId>
<Password>Pswd</Password>
</AccessRequest>
<?xml version="1.0"?>
<TimeInTransitRequest xml:lang="en-US">
...
</TimeInTransitRequest>
I get an error when trying to send this kind of document with XMLHTTP.send. It seems that when sending the xml doc is validated.
Is there any other ocx out there that can handle the Http POST?
There is only supposed to be ONE root element, and you have two of those (AccessRequest and TimInTransitRequest). If you could put all of that into one big root element you would be ok, although I am not quite sure about having more than one XML declaration in one document.
RIS Plus, LLC