By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,841 Members | 1,691 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,841 IT Pros & Developers. It's quick & easy.

Tests against the USPS Production ShippingAPIs server failing in A97...

P: n/a
MLH
Hoping one of you can tell me why my XML call is failing...

Private Sub Command2_Click()
Production.ShippingAPIs.com/ShippingAPI.dll
Dim msXML As Object, strPageContent As String, fh As Long, MyURL As
String
fh = FreeFile
Set msXML = CreateObject("Microsoft.XMLHTTP")
MyURL =
"http://Production.ShippingAPIs.com/ShippingAPI.dll?API=TrackV2&XML=<TrackRequest
USERID=" & Chr$(34) & "ABCDEFGHIJKLMNOP"
MyURL = MyURL & Chr$(34) & "" & "<TrackID ID=" & Chr$(34) &
"EJ123456780US" & Chr$(34) & "</TrackID</TrackRequest>"
msXML.Open "GET", MyURL, False
msXML.Send
strPageContent = msXML.ResponseText
Debug.Print strPageContent
....

Here's the return value <ErrorI keep getting...
<?xml
version="1.0"?><Error><Number>-2147219067</Number><Source>;SolServer.Track2_Respond</Source><Description>Invalid
XML Text is not allowed in this context according to DTD/Schema.
</Description><HelpFile></HelpFile><HelpContext></HelpContext></Error>

Dec 2 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
MLH
Testing proved XML's DTD/Schema didn't like the spaces I stuck in
there for legibility. Oops. Once removed, problem solved. It was XML
specific and had nothing, really, to do with A97.
Dec 2 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.