0
按照架构定义从这个网址 Service URLWebservice的XML请求错误
我请求XML这样,但我得到的错误,当我发送请求https://www.con-way.com/XMLj/X-Rate。如何传递ItemType元素?
<RateRequest>
<OriginZip country='us'>97006</OriginZip>
<DestinationZip country='us'>33179</DestinationZip>
<CustNmbr shipcode="S">883885</CustNmbr>
<ChargeCode>P</ChargeCode>
<EffectiveDate>10/30/12</EffectiveDate>
<Item>
<CmdtyClass>775</CmdtyClass>
<Weight unit='lbs'>667</Weight>
</Item>
<ItemType>
<Quantity pkgtype='PCS'>100</Quantity>
</ItemType>
<Accessorial>SSC</Accessorial>
<Accessorial>DNC</Accessorial>
<Accessorial>GUR</Accessorial>
</RateRequest>
谢谢@Chris,即使我在RateRequestELement下面添加,也会得到相同的错误。 – DON
我编辑了我的答案,以包含我在con-way网站上找到的一些使用信息。 – Chris