Can Soap Connect handle a XML post and response?
Testing the sending an XML post the USPS web tools web service. The send appears to go through ok but the response generates this error from SoapConnect.
Unsupported response content type "text/html", must be: "text/xml". Response was:
<HEAD><TITLE>HTTP Error 501</TITLE></HEAD><BODY><H1>NOT IMPLEMENTED</H1>The server is unable to perform the method <b>API=Rate&XML=</b> at this time.</BODY>
</body></html>
The request code for USPS is simply:
http://Production.ShippingAPIs.com/ShippingAPI.dll?API=Rate&XML=PRIORITY1002220008105Flat Rate BoxREGULAR
Can I use SoapConnect to sent this type of request. And receive the return code. The return code. I pure XML in the form
<?xml version="1.0" ?>-2147219488
Invalid value for container.
1000440
OR
<?xml version="1.0" ?>10022
20008
10
5
Flat Rate Box
REGULAR
3
Priority Mail Flat Rate Box (11.25" x 8.75" x 6")
7.70
Priority Mail Flat Rate Box (14" x 12" x 3.5")
7.70