繁体   English   中英

联邦快递创建国际货件问题

[英]Fedex Create International Shipment issue

我正在尝试为联邦快递创建国际货件我正在使用以下架构

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:q0="http://fedex.com/ws/ship/v21" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

<soapenv:Body>

<q0:ProcessShipmentRequest>

  <q0:WebAuthenticationDetail>

    <q0:UserCredential>

      <q0:Key>xxxxx</q0:Key>

      <q0:Password>xxxxx</q0:Password>

    </q0:UserCredential>

  </q0:WebAuthenticationDetail>

  <q0:ClientDetail>

    <q0:AccountNumber>xxxxx</q0:AccountNumber>

    <q0:MeterNumber>xxxx</q0:MeterNumber>

  </q0:ClientDetail>

  <q0:TransactionDetail>

    <q0:CustomerTransactionId>Express Intl Shipment Example</q0:CustomerTransactionId>

  </q0:TransactionDetail>

  <q0:Version>

    <q0:ServiceId>ship</q0:ServiceId>

    <q0:Major>21</q0:Major>

    <q0:Intermediate>0</q0:Intermediate>

    <q0:Minor>0</q0:Minor>

  </q0:Version>

  <q0:RequestedShipment>

    <q0:ShipTimestamp>2018-02-21T18:42:46.286Z</q0:ShipTimestamp>

    <q0:DropoffType>REGULAR_PICKUP</q0:DropoffType>

    <q0:ServiceType>INTERNATIONAL_PRIORITY</q0:ServiceType>

    <q0:PackagingType>FEDEX_SMALL_BOX</q0:PackagingType>

    <q0:Shipper>

      <q0:Contact>

        <q0:PersonName>John Doe</q0:PersonName>

        <q0:CompanyName>FedEx</q0:CompanyName>

        <q0:PhoneNumber>9015551234</q0:PhoneNumber>

      </q0:Contact>

      <q0:Address>

        <q0:StreetLines>3610 Hacks Cross Road</q0:StreetLines>

        <q0:StreetLines>First Floor</q0:StreetLines>

        <q0:City>Memphis</q0:City>

        <q0:StateOrProvinceCode>TN</q0:StateOrProvinceCode>

        <q0:PostalCode>38125</q0:PostalCode>

        <q0:CountryCode>US</q0:CountryCode>

      </q0:Address>

    </q0:Shipper>

    <q0:Recipient>

      <q0:Contact>

        <q0:PersonName>Joe Customer</q0:PersonName>

        <q0:CompanyName>ABC Widget Co</q0:CompanyName>

        <q0:PhoneNumber>4455551234</q0:PhoneNumber>

      </q0:Contact>

      <q0:Address>

        <q0:StreetLines>1234 Main Street</q0:StreetLines>

        <q0:StreetLines>Suite 200</q0:StreetLines>

        <q0:City>Nuneaton</q0:City>

        <q0:PostalCode>Cv114al</q0:PostalCode>

        <q0:CountryCode>GB</q0:CountryCode>

        <q0:Residential>false</q0:Residential>

      </q0:Address>

    </q0:Recipient>

    <q0:ShippingChargesPayment>

      <q0:PaymentType>SENDER</q0:PaymentType>

      <q0:Payor>

        <q0:ResponsibleParty>

          <q0:AccountNumber>xxxxxx</q0:AccountNumber>

          <q0:Contact/>

        </q0:ResponsibleParty>

      </q0:Payor>

    </q0:ShippingChargesPayment>

    <q0:CustomsClearanceDetail>

      <q0:DutiesPayment>

        <q0:PaymentType>SENDER</q0:PaymentType>

        <q0:Payor>

          <q0:ResponsibleParty>

            <q0:AccountNumber>xxxxx</q0:AccountNumber>

            <q0:Contact/>

          </q0:ResponsibleParty>

        </q0:Payor>

      </q0:DutiesPayment>

      <q0:DocumentContent>DOCUMENTS_ONLY</q0:DocumentContent>

      <q0:CustomsValue>

        <q0:Currency>USD</q0:Currency>

        <q0:Amount>1.00</q0:Amount>

      </q0:CustomsValue>

      <q0:Commodities>

        <q0:NumberOfPieces>1</q0:NumberOfPieces>

        <q0:Description>Bank Statements</q0:Description>

        <q0:CountryOfManufacture>US</q0:CountryOfManufacture>

        <q0:Weight>

          <q0:Units>LB</q0:Units>

          <q0:Value>1.0</q0:Value>

        </q0:Weight>

        <q0:Quantity>1</q0:Quantity>

        <q0:QuantityUnits>pcs</q0:QuantityUnits>

        <q0:CustomsValue>

          <q0:Currency>USD</q0:Currency>

          <q0:Amount>1.00</q0:Amount>

        </q0:CustomsValue>

      </q0:Commodities>

    </q0:CustomsClearanceDetail>

    <q0:LabelSpecification>

      <q0:LabelFormatType>COMMON2D</q0:LabelFormatType>

      <q0:ImageType>PDF</q0:ImageType>

      <q0:LabelStockType>PAPER_4X6</q0:LabelStockType>

      <q0:CustomerSpecifiedDetail>

        <q0:MaskedData>CUSTOMS_VALUE</q0:MaskedData>

        <q0:MaskedData>DUTIES_AND_TAXES_PAYOR_ACCOUNT_NUMBER</q0:MaskedData>

        <q0:MaskedData>SHIPPER_ACCOUNT_NUMBER</q0:MaskedData>

        <q0:MaskedData>TRANSPORTATION_CHARGES_PAYOR_ACCOUNT_NUMBER</q0:MaskedData>

      </q0:CustomerSpecifiedDetail>

    </q0:LabelSpecification>

    <q0:PackageCount>1</q0:PackageCount>

    <q0:RequestedPackageLineItems>

      <q0:SequenceNumber>1</q0:SequenceNumber>

      <q0:Weight>

        <q0:Units>LB</q0:Units>

        <q0:Value>1.0</q0:Value>

      </q0:Weight>

      <q0:CustomerReferences>

        <q0:CustomerReferenceType>CUSTOMER_REFERENCE</q0:CustomerReferenceType>

        <q0:Value>ref1234</q0:Value>

      </q0:CustomerReferences>

    </q0:RequestedPackageLineItems>

  </q0:RequestedShipment>

</q0:ProcessShipmentRequest>

</soapenv:Body>

</soapenv:Envelope>

但是每当我尝试使用上述模式为文件创建货件时,它都会生成以下错误

“商品 1 信息不足,无法完成装运”。

请让我知道是否有人以前遇到过这个问题。我不知道我哪里出错了。

它实际上很晚才回复,但我只是遇到了这个问题并解决了它。 实际上,数量的价值对我来说是 0,这就是我面临这个问题的原因。 您可能会在商品中遗漏某些内容,请转到“FedEx WebServices 开发人员指南”,然后转到商品元素并确保您传递了所有参数。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM