- Java 双重比较
- java - 比较器与 Apache BeanComparator
- Objective-C 完成 block 导致额外的方法调用?
- database - RESTful URI 是否应该公开数据库主键?
我正在尝试将 FedEx 的跟踪服务集成到我的网络应用程序中,但我一直收到此错误..
Severity: FAILURE
Source: prxy
Code: 9004
Message: Remote EJB method: track not called. Unable to create the remote bean. Exception: javax.naming.NamingException: unable to find primary representative [Root exception is javax.naming.NamingException: unable to find primary representative]. Cause: javax.naming.NamingException: unable to find primary representative [Root exception is javax.naming.NamingException: unable to find primary representative]
请求
<?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/track/v10"><SOAP-ENV:Body><ns1:TrackRequest> <ns1:WebAuthenticationDetail><ns1:ParentCredential><ns1:Key>#########</ns1:Key><ns1:Password>###########</ns1:Password></ns1:ParentCredential><ns1:UserCredential><ns1:Key>#############</ns1:Key><ns1:Password>###########</ns1:Password></ns1:UserCredential></ns1:WebAuthenticationDetail><ns1:ClientDetail><ns1:AccountNumber>#########</ns1:AccountNumber><ns1:MeterNumber>###########</ns1:MeterNumber></ns1:ClientDetail><ns1:TransactionDetail><ns1:CustomerTransactionId>*** Track using PHP ***</ns1:CustomerTransactionId></ns1:TransactionDetail><ns1:Version><ns1:ServiceId>trck</ns1:ServiceId><ns1:Major>10</ns1:Major><ns1:Intermediate>0</ns1:Intermediate><ns1:Minor>0</ns1:Minor></ns1:Version><ns1:SelectionDetails><ns1:PackageIdentifier> <ns1:Type>TRACKING_NUMBER_OR_DOORTAG</ns1:Type><ns1:Value>449044304137821</ns1:Value></ns1:PackageIdentifier><ns1:ShipmentAccountNumber>########</ns1:ShipmentAccountNumber> </ns1:SelectionDetails></ns1:TrackRequest></SOAP-ENV:Body></SOAP-ENV:Envelope>
回应
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Header/><SOAP-ENV:Body><TrackReply xmlns="http://fedex.com/ws/track/v10"><HighestSeverity>FAILURE</HighestSeverity><Notifications><Severity>FAILURE</Severity><Source>prxy</Source><Code>9004</Code><Message>Remote EJB method: track not called. Unable to create the remote bean. Exception: javax.naming.NamingException: unable to find primary representative [Root exception is javax.naming.NamingException: unable to find primary representative]. Cause: javax.naming.NamingException: unable to find primary representative [Root exception is javax.naming.NamingException: unable to find primary representative]</Message></Notifications></TrackReply></SOAP-ENV:Body></SOAP-ENV:Envelope>
我正在使用 Laravel 框架,Fedex 集成使用了三个文件,即包含 XML 数据的 TrackService_v10.wsdl、包含用于发送请求的 php 函数的 TrackWebServiceClient.php5 和 fedex-common.php5其中还包含包含要发布的输入的 php 函数。
我试过在互联网上到处寻找,在 FedEx 上寻找开发人员和资源中心,但我真的无法让它工作。我也不明白这个 SOAP 请求。另外,FedEx 说他们没有程序员来帮我解决这个问题。有人可以帮忙吗?提前致谢。
最佳答案
我一直有完全相同的问题。在我的头在 table 上敲了几个小时之后,我看到了这篇文章 - https://stackoverflow.com/a/10941234/5632365 .它属于 WSDL 文件的 v5(当前为 10),但基本上您需要从第 2296 行的 URL 中删除“beta”。
<service name="TrackService">
<port name="TrackServicePort" binding="ns:TrackServiceSoapBinding">
<s1:address location="https://wsbeta.fedex.com:443/web-services/track"/>
</port>
</service>
应该是
<service name="TrackService">
<port name="TrackServicePort" binding="ns:TrackServiceSoapBinding">
<s1:address location="https://ws.fedex.com:443/web-services/track"/>
</port>
</service>
一切都会(应该)神奇地开始工作。希望这对您和我一样有帮助!
关于php - FedEx 网络集成错误代码 9004,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34785095/
是否有人足够熟悉 FedEx API 来让 Dry Ice 工作? 干冰的 FedEx 文档在这里:https://www.fedex.com/us/developer/WebHelp/ws/2014
我正在与 FedEx 国际船舶服务集成。但我真的被困在一个部分。我正在尝试使用他们的测试环境创建原产地证书。我遵循了 xml 模式并提出了以下代码 private static void SetCus
我有一个工作请求,要求使用标准 FedEx 费率获取我的货件费率,但我想使用特殊的 FedEx One Rate 选项,以便获得他们的统一费率报价。 不幸的是,他们的代码示例没有显示如何指定费率请求应
我想知道如何使用 eBay API 将“标准运输(FedEx Ground 或 FedEx Home Delivery®)”指定为运输服务。任何人都可以提供任何指示吗?所有示例仅使用“标准运输”选项。
我有一个客户问他们的Web应用程序(PHP)是否可以轻松地打印到UPS/Fedex热敏标签打印机。 因此,例如,我可以从UPS/Fedex取回带有运输标签的PDF。我只需要打印即可。 有人知道您是否可
我想在我的电子商务网站中应用 FedEx API。 但我不知道如何应用该 API。 我已经完成了“测试 key 注册”并获得了测试帐户信息。 所以我接下来要做什么。 谢谢 最佳答案 以下答案是关于作为
条件: 我们需要我们 Magento 网站的默认显示货币是美元,Paypal(基础货币)也需要是美元(因为我们需要客户以美元支付)。 我们的 Fedex a/c 是在新加坡开设的,结果发现运费是以新加
我想使用 FedEx API 在 python 中进行运输。我安装了 FedEx express 库: pip install fedex 但是当我尝试使用它时出现错误。请帮忙。 from fedex
我们使用 FedEx 作为我们的托运人。他们的标签打印机将我们限制在每个地址行 35 个字符。我的同事正在讨论如果第一行超过 35 个字符的限制,将地址行拆分为第二个地址行。我们在使用他们的地址验证服
我正在使用 Fedex 网络服务并希望重新生成运输标签。是否有 SOAP 请求,我可以在其中提供跟踪编号并让联邦 express 返回 pdf 标签,或者在使用 ShipService 创建货件时是否
我正在尝试连接到 FedEx 运输网络服务 v8。 当我只设置一个 RequestedPackageLineItems 时,一切正常。当我添加两个项目时,出现以下错误。 “无效的包裹计数或无效的包裹序
我正在尝试从 FedEx 获取运输报价。我找到了 this库,它似乎完全符合我的要求,但它不起作用(在下面的评论中,开发人员指出 FedEx API 已更改)。使用上述库我得到一个:Error 405
我正在开发一个需要打印 FEDEX 运输标签的 .NET WinForms 应用程序。作为 FedEx api 的一部分,我可以获得打印机的原始标签数据。 我只是不知道如何通过 .NET 将该数据发送
有人可以帮我使用uTls修复我的TLS吗?每当我尝试对https://www.fedex.com/的GET请求时,我都会得到: Get "https://www.fedex.com/": uTlsCo
我正在 Magento 网站中配置 FEDEX 运输。我通过登录测试 FEDEX 帐户获得了测试帐号、密码、API key 和电表号码。我在 Magento 中配置了自己。看起来一切都很好。但我不知道
RATED_ACCOUNT_PACKAGE 和 PAYOR_ACCOUNT_PACKAGE 有什么区别? RATED_LIST_PACKAGE 和 PAYOR_LIST_PACKAGE 怎么样?我检查
我在 FedEx 网站上有测试 key 、帐号和密码。 我试图测试 FedEx API,但我不知道我可以在网站上哪里进行测试。 我找不到任何测试菜单。我检查了我的电子邮件,我收到了带有测试 URL 的
我已经从 Fed Ex 的开发人员资源中心下载了 C# Rate Service 示例代码。我用我的测试 key 和密码编辑了代码项目构建正常,但它一直在寻找示例代码中不存在且文档中未引用的设置文件。
如何在不访问网络服务的情况下验证潜在的 Fedex 跟踪号码?我听说 Fedex 使用了 Luhn 算法的修改版本。 最佳答案 检查 google answer . ground 有不同的算法并表达。
我正在将 FEDEX Tracking、Rate 和 Shipping API 集成到我的应用程序中,但我遇到了一个问题。 当我使用开发者帐户详细信息运行我的代码时,一切运行正常。但是当我使用生产 k
我是一名优秀的程序员,十分优秀!