我收到标题中提到的错误。但是在POSTMAN上,我得到的响应为text / xml。
我尝试了多种导入方法。
IMPORTXML CODE Google spreadsheet:
=IMPORTXML("http://production.shippingapis.com/ShippingAPI.dll?API=TrackV2&XML=","/TrackRequest[@USERID=""""773REKKKKK""""]/TrackID[@ID=""""9000000000000000000""""]")
Error content cannot be parsed.
邮递员要求 http://production.shippingapis.com/ShippingAPI.dll?API=TrackV2&XML=
POSTMAN Response
<?xml version="1.0" encoding="UTF-8"?>
<TrackResponse>
<TrackInfo ID="9000000000000000000">
<TrackSummary>Your item was delivered in or at the mailbox at 2:22 pm on March 18, 2019 in LOCATION.</TrackSummary>
</TrackInfo>
</TrackResponse>
Sample REQUEST RESPONSE
Test XML Request:
http://production.shippingapis.com/ShippingAPI.dll?API=TrackV2&XML=
<TrackRequest USERID="xxxxxxxx">
<TrackID ID="XXXXXXXXXXXX1"></TrackID>
<TrackID ID="XXXXXXXXXXXX2"></TrackID>
<TrackID ID="XXXXXXXXXXXX3"></TrackID>
</TrackRequest>
Test XML Response:
<TrackResponse>
<TrackInfo ID="XXXXXXXXXXXX1">
<TrackSummary> Your item was delivered at 6:50 am on February 6 in BARTOW FL
33830.</TrackSummary>