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
Hoping one of you can tell me why my XML call is failing...

Private Sub Command2_Click()
Dim msXML As Object, strPageContent As String, fh As Long, MyURL As
fh = FreeFile
Set msXML = CreateObject("Microsoft.XMLHTTP")
MyURL = MyURL & Chr$(34) & "" & "<TrackID ID=" & Chr$(34) &
"EJ123456780US" & Chr$(34) & "</TrackID</TrackRequest>"
msXML.Open "GET", MyURL, False
strPageContent = msXML.ResponseText
Debug.Print strPageContent

Here's the return value <ErrorI keep getting...
XML Text is not allowed in this context according to DTD/Schema.

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

P: n/a
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.