FedEx运送API是否具有SOAP端点?我找不到WSDL端点。
已发送的 SOAP 请求
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://fedex.com/ws/ship/v12">
<SOAP-ENV:Body>
<ns1:ProcessShipmentRequest>
<ns1:WebAuthenticationDetail>
<ns1:UserCredential>
<ns1:Key>kQyj3MtQGLJ3ZYWG</ns1:Key>
<ns1:Password>66ywMwyasljK5uRkaNENRZCZW</ns1:Password>
</ns1:UserCredential>
</ns1:WebAuthenticationDetail>
<ns1:ClientDetail>
<ns1:AccountNumber>510087682</ns1:AccountNumber>
<ns1:MeterNumber>100154483</ns1:MeterNumber>
</ns1:ClientDetail>
<ns1:TransactionDetail>
<ns1:CustomerTransactionId>*** Express Domestic Shipping Request v12 using PHP ***</ns1:CustomerTransactionId>
</ns1:TransactionDetail>
<ns1:Version>
<ns1:ServiceId>ship</ns1:ServiceId>
<ns1:Major>12</ns1:Major>
<ns1:Intermediate>1</ns1:Intermediate>
<ns1:Minor>0</ns1:Minor>
</ns1:Version>
<ns1:RequestedShipment>
<ns1:ShipTimestamp>2013-03-25T14:33:08+00:00</ns1:ShipTimestamp>
<ns1:DropoffType>REGULAR_PICKUP</ns1:DropoffType>
<ns1:ServiceType>FEDEX_GROUND</ns1:ServiceType>
<ns1:PackagingType>YOUR_PACKAGING</ns1:PackagingType>
<ns1:TotalWeight>
<ns1:Units>LB</ns1:Units>
<ns1:Value>17.22</ns1:Value>
</ns1:TotalWeight>
<ns1:Shipper>
<ns1:Contact>
<ns1:PersonName>Shipping Department</ns1:PersonName>
<ns1:CompanyName>Big Dog Treestands</ns1:CompanyName>
<ns1:PhoneNumber>3092636800</ns1:PhoneNumber>
</ns1:Contact>
<ns1:Address>
<ns1:StreetLines>120 E. Detroit Parkway</ns1:StreetLines>
<ns1:City>Morton</ns1:City>
<ns1:StateOrProvinceCode>IL</ns1:StateOrProvinceCode>
<ns1:PostalCode>61550</ns1:PostalCode>
<ns1:CountryCode>US</ns1:CountryCode>
</ns1:Address>
</ns1:Shipper>
<ns1:Recipient>
<ns1:Contact>
<ns1:PersonName>David Sinc</ns1:PersonName>
<ns1:CompanyName>TEST COMPANY</ns1:CompanyName>
<ns1:PhoneNumber>3093701229</ns1:PhoneNumber>
</ns1:Contact>
<ns1:Address>
<ns1:StreetLines>1202 Chalet Ln</ns1:StreetLines>
<ns1:StreetLines>HIDDLY- …Run Code Online (Sandbox Code Playgroud) 我正在使用 FEDEX API 通过他们的 ShipService WSDL 从 FEDEX 获取运输标签。我已将该功能集成到我的应用程序中,并成功地从 FEDEX 生成标签。
由于最近的要求,我们需要从我们的应用程序中添加第三方作为付款人选项。为了实现这一点,我将PaymentType 从 SENDER 更改为 THIRD_PARTY,并根据 FEDEX API 文档填充了地址、联系人等必要字段。
payment.setPaymentType(PaymentType.THIRD_PARTY);
Run Code Online (Sandbox Code Playgroud)
服务调用成功,我也得到了有效的响应,但使用 THIRD_PARTY 作为付款人时缺少 ShipmentRate 详细信息,而使用 SENDER 作为 PaymentType 时可用。我需要费率详细信息以便在我的申请中进行进一步处理。
以下是我通过 SENDER PaymentType 获得的详细信息。
<v13:CompletedShipmentDetail>
<v13:ShipmentRating>
<v13:ActualRateType>PAYOR_ACCOUNT_PACKAGE</v13:ActualRateType>
<v13:ShipmentRateDetails>
<v13:RateType>PAYOR_ACCOUNT_PACKAGE</v13:RateType>
<v13:RateZone>4</v13:RateZone>
<v13:RatedWeightMethod>DIM</v13:RatedWeightMethod>
<v13:DimDivisor>166</v13:DimDivisor>
<v13:FuelSurchargePercent>4.25</v13:FuelSurchargePercent>
<v13:TotalBillingWeight>
<v13:Units>LB</v13:Units>
<v13:Value>17.0</v13:Value>
</v13:TotalBillingWeight>
<v13:TotalDimWeight>
<v13:Units>LB</v13:Units>
<v13:Value>17.0</v13:Value>
</v13:TotalDimWeight>
<v13:TotalBaseCharge>
<v13:Currency>USD</v13:Currency>
<v13:Amount>11.32</v13:Amount>
</v13:TotalBaseCharge>
<v13:TotalFreightDiscounts>
<v13:Currency>USD</v13:Currency>
<v13:Amount>0.0</v13:Amount>
</v13:TotalFreightDiscounts>
<v13:TotalNetFreight>
<v13:Currency>USD</v13:Currency>
<v13:Amount>11.32</v13:Amount>
</v13:TotalNetFreight>
<v13:TotalSurcharges>
<v13:Currency>USD</v13:Currency>
<v13:Amount>9.48</v13:Amount>
</v13:TotalSurcharges>
<v13:TotalNetFedExCharge>
<v13:Currency>USD</v13:Currency>
<v13:Amount>20.8</v13:Amount>
</v13:TotalNetFedExCharge>
<v13:TotalTaxes>
<v13:Currency>USD</v13:Currency>
<v13:Amount>0.0</v13:Amount>
</v13:TotalTaxes>
<v13:TotalNetCharge>
<v13:Currency>USD</v13:Currency> …Run Code Online (Sandbox Code Playgroud) 我正在尝试使用VB.NET编写的示例FedEx Web Service代码来检索运费.
该呼叫返回了费率信息,但它返回的费率太高,与其网站上显示的相同运费参数不匹配.
他们的支持团队愿意调查这种差异,如果我可以提供XML数据,我认为是SOAP事务,但我不知道如何解决这个问题.
有人可以帮忙吗?
对于某些交货,我需要签名,这是额外收费。我想知道使用费率请求API会产生的额外费用。我想知道这是否是获得该价值的地方,或者是否还有其他方法。
在文档中,我仅在有关RateReplyDetails的说明中看到SignatureOption元素,但没有任何关于如何在RateRequest中将其发送给他们的信息。答复总是对SignatureOption说“ SERVICE_DEFAULT”,值为零。我想在回覆中附上INDIRECT和一些金额。其他选项包括ADULT,DIRECT,NO_SIGNATURE_REQUIRED等。
在下面,您可以看到我尝试将元素放置在RequestedShipment元素下的位置。但这导致答复是“无效元素”错误。我在RateRequest的各个地方尝试了一下都无济于事。
<ns:RateRequest xmlns:ns="http://fedex.com/ws/rate/v7" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<ns:WebAuthenticationDetail>
<ns:UserCredential>
<ns:Key>00000</ns:Key>
<ns:Password>00000</ns:Password>
</ns:UserCredential>
</ns:WebAuthenticationDetail>
<ns:ClientDetail>
<ns:AccountNumber>00000</ns:AccountNumber>
<ns:MeterNumber>00000</ns:MeterNumber>
</ns:ClientDetail>
<ns:Version>
<ns:ServiceId>crs</ns:ServiceId>
<ns:Major>7</ns:Major>
<ns:Intermediate>0</ns:Intermediate>
<ns:Minor>0</ns:Minor>
</ns:Version>
<ns:RequestedShipment>
<ns:SignatureOption>INDIRECT</ns:SignatureOption>
<ns:ShipTimestamp>#DateFormat(Now(),'yyyy-mm-dd')#T#TimeFormat(Now(),'hh:mm:ss')#</ns:ShipTimestamp>
<ns:DropoffType>REGULAR_PICKUP</ns:DropoffType>
<ns:PackagingType>YOUR_PACKAGING</ns:PackagingType>
Run Code Online (Sandbox Code Playgroud)