标签: fedex

将原始数据发送到FedEx Label打印机

我正在开发一个需要打印FEDEX运输标签的.NET WinForms应用程序.作为FedEx api的一部分,我可以获得打印机的原始标签数据.

我只是不知道如何通过.NET将数据发送到打印机(我正在使用C#).为了清楚起见,数据已经预先格式化为ZPL(Zebra打印机语言)我只需要将其发送到打印机而不会​​将其弄糟.

printing fedex zebra-printers

4
推荐指数
1
解决办法
8156
查看次数

如何获得fedex api密钥?

我在Fedex注册了.我想为具有ubercart的 drupal站点配置fedex.我启用了uc_fedex模块.

我想要FEDEX API for Production的这些值:

   FedEx Web Services API User Key 

   FedEx Web Services API Password 

   FedEx Account # 

   FedEx Meter #
Run Code Online (Sandbox Code Playgroud)

我在哪里可以在Fedex账户中获得这些价值?任何人都可以指导我.?

在提出这些值之后我还应该做什么才能使联邦快递在我的网站上工作?我在我的网站上也启用了ups.任何帮助都感激不尽.提前致谢.

api fedex drupal-7

4
推荐指数
1
解决办法
1万
查看次数

Magento运输方式加载速度

在我的电子商务网站中,我已使用Shipping API配置了FedEx送货.在方法中,我只选择1个允许方法,即"国际经济".即使我只有1个方法允许,通过检查FedEx的日志,似乎API查询所有方法并返回结果.因此,返回运费至少需要一分钟.

Magento是正常的吗?或者是否有加快查询速度或是否有任何修改或黑客我可以让它只查询允许方法?

好心提醒.

谢谢.

php fedex magento

4
推荐指数
1
解决办法
699
查看次数

使用FedEx送货服务WSDL创建FedEx Shipping Documnents

我正在与FedEx国际船舶服务集成.但我真的被困在一个方面.我正在尝试使用他们的测试环境创建原产地证书.我已经遵循了xml架构,并提出了以下代码

private static void SetCustomInvoice(ProcessShipmentRequest request)
    {
        request.RequestedShipment.ShippingDocumentSpecification = new ShippingDocumentSpecification();
        request.RequestedShipment.ShippingDocumentSpecification.ShippingDocumentTypes = new RequestedShippingDocumentType[1] { new RequestedShippingDocumentType() };
        request.RequestedShipment.ShippingDocumentSpecification.ShippingDocumentTypes[0] = RequestedShippingDocumentType.CERTIFICATE_OF_ORIGIN;
        request.RequestedShipment.ShippingDocumentSpecification.CertificateOfOrigin = new CertificateOfOriginDetail();
        request.RequestedShipment.ShippingDocumentSpecification.CertificateOfOrigin.DocumentFormat = new ShippingDocumentFormat { StockType = ShippingDocumentStockType.STOCK_4X6, ImageType = ShippingDocumentImageType.PDF, ImageTypeSpecified = true, StockTypeSpecified = true };
        request.RequestedShipment.SpecialServicesRequested = new ShipmentSpecialServicesRequested();
        request.RequestedShipment.SpecialServicesRequested.SpecialServiceTypes = new ShipmentSpecialServiceType[1] { new ShipmentSpecialServiceType() };
        request.RequestedShipment.SpecialServicesRequested.SpecialServiceTypes[0] = ShipmentSpecialServiceType.ELECTRONIC_TRADE_DOCUMENTS;

        request.RequestedShipment.SpecialServicesRequested.EtdDetail = new EtdDetail();
        request.RequestedShipment.SpecialServicesRequested.EtdDetail.RequestedDocumentCopies = new RequestedShippingDocumentType[1] { RequestedShippingDocumentType.CERTIFICATE_OF_ORIGIN };
        request.RequestedShipment.SpecialServicesRequested.EtdDetail.DocumentReferences = new UploadDocumentReferenceDetail[1] { new UploadDocumentReferenceDetail() };
        request.RequestedShipment.SpecialServicesRequested.EtdDetail.RequestedDocumentCopies[0] = …
Run Code Online (Sandbox Code Playgroud)

c# fedex

3
推荐指数
1
解决办法
3693
查看次数

Active_shipping Fedex API身份验证错误

我正在我的应用程序中实现aсtive_shipping插件功能.我有来自fedex的测试帐户,并试图获得一些运费,如插件的自述文件中所示:

fedex = FedEx.new(:login => '***', :password => '***', :key => '***', 
:account => '510087569', :meter => '100054531')
response = fedex.find_rates(origin, destination, packages)
Run Code Online (Sandbox Code Playgroud)

此请求导致错误: ActiveMerchant::Shipping::ResponseError (ERROR - 1000: Authentication Failed)

此外,我对所有API密钥(DHL,UPS等)感到困惑.我是否可以为每个运营商在不同的应用程序中使用相同的帐户密钥,还是应该为每个应用程

authentication ruby-on-rails fedex shipping

3
推荐指数
1
解决办法
4483
查看次数

通过 FedEx API 的 FedEx 干冰

有没有人对 FedEx API 足够熟悉以使干冰工作?

干冰的 FedEx 文档在这里:https : //www.fedex.com/us/developer/WebHelp/ws/2014/dvg/WS_DVG_WebHelp/index.htm#25_2_Dry_Ice_Coding_Details.htm

然而,这似乎并不真正匹配他们的 WSDL。无论我尝试过什么,我总是会收到架构验证错误。

是否有人能够提供样品请求,包括干冰并成功响应?

我找不到有关放置 RequestedPackages 元素的正确位置的任何信息。我把它和 RequestedShipment 以及其他几个地方放在同一级别,但一无所获。

如果我只放置 RequestedShipment 字段而不是包裹信息,我会得到:

8616 (Dry Ice cannot be entered at the shipment level.)
Run Code Online (Sandbox Code Playgroud)

样品申请

这个样本请求感觉最接近我得到的。但联邦快递不喜欢RequestedPackages元素的位置。我去掉了很多不必要的字段,比如下面的地址信息:

    <ns:ProcessShipmentRequest xmlns:ns="http://fedex.com/ws/ship/v15" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://fedex.com/ws/ship/v15 ShipService v15.xsd">
    <ns:WebAuthenticationDetail>
        <ns:UserCredential>
        </ns:UserCredential>
    </ns:WebAuthenticationDetail>
    <ns:ClientDetail>
    </ns:ClientDetail>
    <ns:TransactionDetail>
        <ns:CustomerTransactionId>CreatePendingRequest</ns:CustomerTransactionId>
    </ns:TransactionDetail>
    <ns:Version>
        <ns:ServiceId>ship</ns:ServiceId>
        <ns:Major>15</ns:Major>
        <ns:Intermediate>0</ns:Intermediate>
        <ns:Minor>0</ns:Minor>
    </ns:Version>
    <ns:RequestedShipment>
        <ns:ShipTimestamp>2016-10-21T10:17:09-07:00</ns:ShipTimestamp>
        <ns:DropoffType>REGULAR_PICKUP</ns:DropoffType>
        <ns:ServiceType>PRIORITY_OVERNIGHT</ns:ServiceType>
        <ns:PackagingType>YOUR_PACKAGING</ns:PackagingType>
        <ns:SpecialServicesRequested>
            <ns:SpecialServiceTypes>DRY_ICE</ns:SpecialServiceTypes>
            <ns:ShipmentDryIceDetail>
                <ns:PackageCount>1</ns:PackageCount>
                <ns:TotalWeight>
                    <ns:Units>KG</ns:Units>
                    <ns:Value>2.5</ns:Value>
                </ns:TotalWeight>
            </ns:ShipmentDryIceDetail>
        </ns:SpecialServicesRequested>
        <ns:LabelSpecification>
            <ns:LabelFormatType>COMMON2D</ns:LabelFormatType>
            <ns:ImageType>ZPLII</ns:ImageType>
            <ns:LabelStockType>STOCK_4X6</ns:LabelStockType>
            <ns:LabelPrintingOrientation>TOP_EDGE_OF_TEXT_FIRST</ns:LabelPrintingOrientation>
        </ns:LabelSpecification>
        <ns:RateRequestTypes>LIST</ns:RateRequestTypes>
        <ns:PackageCount>1</ns:PackageCount>
        <ns:RequestedPackageLineItems> …
Run Code Online (Sandbox Code Playgroud)

fedex

3
推荐指数
1
解决办法
814
查看次数

Fedex SmartPost开发者帐户的HubId无效

我正在为Fedex SmartPost创建一个货件,它总是返回给我以下消息:

"Code":"8670","Message":"Invalid Smart Post Hub Id"},
"Code":"2505","Message":""USPS_DELIVERY_CONFIRMATION" was added to the smart post special services."
Run Code Online (Sandbox Code Playgroud)

我正在使用Fedex WebServices的开发者帐户.我应该使用什么Hub来创建智能手机?现在我已经使用了在线文档中的所有内容.

web-services fedex

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

解析HTML不会输出所需的数据(FedEx的跟踪信息)

我正在尝试制作一个脚本,从联邦快递网站获取跟踪信息。

我发现fi只需转到url'https://www.fedex.com/fedextrack/?tracknumbers = '并将跟踪号粘贴到它的末尾,它将带我到跟踪页面,其中包含我需要的信息。

我试图向URL提供跟踪号并从响应中解析html。

这就是我尝试过的。

import urllib

url_prefix= 'https://www.fedex.com/fedextrack/?tracknumbers='
tracking_number = '570573906561'
url = url_prefix + tracking_number
sock = urllib.urlopen(url) htmlSource = sock.read()
sock.close()
print htmlSource
Run Code Online (Sandbox Code Playgroud)

此代码输出:http : //freetexthost.com/iy1ma2q1fm

我以为我将能够从输出中搜索文本并找到交货状态/日期,但它不在此输出中。

如果我进入Chrome中的跟踪页面并检查元素,我会看到交货日期信息的ID为destionDateTime,因此,如果我在Chrome控制台中运行此代码:

var document.getElementbyID('destinationDateTime')
Run Code Online (Sandbox Code Playgroud)

它返回我想要的输出(交货日期)

为什么我的python脚本不打印实际的跟踪数据信息或html输出中的该类?

我尝试搜索此问题,并尝试解析几种不同的方式(机械化,美丽的汤,html2text),但所有这些都为我提供了相同的输出,其中不包含有关该货件的任何实际数据。

python urllib fedex html-parsing

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

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 Web 服务创建 HTTP Post 调用

FedEx Web 服务文档指出:

FedEx 提供纯 XML Web 服务解决方案,您可以使用该解决方案发送交易,而无需使用为 Web 服务提供 SOAP 协议支持的工具。

这是他们在文档中使用的一个示例:

Example 3: HTTP POST
The following HTTP POST example is a valid working example. It is not guaranteed to work for all
programming languages, applications, and host systems:
POST /xml HTTP/1.0
Referrer: YourCompanyNameGoesHere
Host: ws.fedex.com
Port: 443
Accept: image/gif, image/jpeg, image/pjpeg, text/plain, text/html, */*
Content-Type: text/xml
Content-length: %d
Your FedEx Transaction

------------------------

Each line is followed by one new line character except Content-length and the FedEx transaction. …
Run Code Online (Sandbox Code Playgroud)

xml soap http fedex kotlin

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