and it works great -- one thing is that if the weight is too much it doesn't return any prices -- does ups have a limit? Anyway to get a error message returned so that I know why it is erroring?
thanks -- can you tell me how I can pull the error out of the below response?
<?xml version="1.0"?><RatingServiceSelectionResponse><Response>
<TransactionReference><CustomerContext>Rating and Service</CustomerContext><XpciVersion>1.0001</XpciVersion>
</TransactionReference><ResponseStatusCode>0</ResponseStatusCode>
<ResponseStatusDescription>Failure</ResponseStatusDescription><Error>
<ErrorSeverity>Hard</ErrorSeverity><ErrorCode>111035</ErrorCode>
<ErrorDescription>The maximum per package weight for the selected service from the selected country is 150 pounds.</ErrorDescription></Error></Response></
RatingServiceSelectionResponse>
[tt]dim onode, errmsg, ochildnode
set onode=mydoc.selectSingleNode("/RatingServiceSelectionResponse/Response/Error")
if onode is nothing then
'etc etc : the existing functionality
else
errmsg=""
for each ochildnode in onode.childNodes
errmsg=errmsg & ochildnode.nodename & " : " & ochildnode.text & "<br />"
next
response.write errmsg
end if
[/tt]
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.