小编Bha*_*ari的帖子

FedEx运输api是否适用于印度国内

我试图实施fedex api来计算一个国家邮政编码的运费.这对美国来说很好.它也在美国工作到其他国家(为IN和AU试过).但当我尝试从印度或澳大利亚购买两个邮政编码作为托运人和收件人地址.它给出了以下错误: -

The transaction returned an Error.
Severity: ERROR
Source: crs
Code: 691
Message: The PurposeOfShipmentType is null, empty or invalid.
LocalizedMessage: The PurposeOfShipmentType is null, empty or invalid.
Run Code Online (Sandbox Code Playgroud)

不知道是什么问题.我检查了wsdl文件中的PurposeOfShipmentType的值,它显示在xml代码下面: -

First occurrence
<xs:element name="Purpose" type="ns:PurposeOfShipmentType" minOccurs="0">
        <xs:annotation>
          <xs:documentation>The reason for the shipment. Note: SOLD is not a valid purpose for a Proforma Invoice.</xs:documentation>
        </xs:annotation>
      </xs:element>

second occurrence
<xs:simpleType name="PurposeOfShipmentType">
    <xs:restriction base="xs:string">
      <xs:enumeration value="GIFT"/>
      <xs:enumeration value="NOT_SOLD"/>
      <xs:enumeration value="PERSONAL_EFFECTS"/>
      <xs:enumeration value="REPAIR_AND_RETURN"/>
      <xs:enumeration value="SAMPLE"/>
      <xs:enumeration value="SOLD"/>
    </xs:restriction>
  </xs:simpleType>
Run Code Online (Sandbox Code Playgroud)

不明白应该是什么价值.下面是我发送到$ client - …

php fedex

2
推荐指数
1
解决办法
2698
查看次数

标签 统计

fedex ×1

php ×1