联邦快递WSDL C# - 设置发票#值 [英] Fedex WSDL C# - Setting the Invoice # value

查看:380
本文介绍了联邦快递WSDL C# - 设置发票#值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用C#联邦快递的WSDL生成COD货运标签。联邦快递货运标签还有就是货运标签和COD返回标签上都的发票#字符串。我想设置我的OrderID请求联邦快递这样的,我的订单ID显示为发票#。

I'm using Fedex's WSDL in C# to generate COD shipping labels. On Fedex shipping labels there is an "Invoice #" string on both the shipping label and the COD return label. I want to set my orderid in the request to Fedex such that my orderid shows up as the Invoice #.

这不是明显,我怎么设置在联邦快递的WSDL请求发票#。有没有人这样做呢?

It's not obvious to me how to set the Invoice # in Fedex's wsdl request. Has anybody done this?

推荐答案

在其中放置在订单ID 发票号码在标签中的以下内容:

The way in which you place the order id or invoice number in the labels is following:


  1. 设置在包客户参考发票编号

  2. 指定要COD的标签,包括发票号码作为参考之一COD细节节点(在参考指标)上。

请注意,您也可以包括其他引用不是发票号码(如:PO,客户参考,并跟踪)。

Please, note that you can also include other references than invoice number (e.g.: PO, customer reference, and tracking).

下面是对一个样本SOAP信封要求描绘了我以前说过:??

Here is a sample SOAP envelope for the request depicting what I said before:

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <soap:Body>
        <ProcessShipmentRequest xmlns="http://fedex.com/ws/ship/v12">
            <WebAuthenticationDetail>
                <CspCredential>
                    <Key>CSP_KEY(IF YOU ARE ONE)</Key>
                    <Password>CIS_PASSWORD(IF YOU ARE ONE)</Password>
                </CspCredential>
                <UserCredential>
                    <Key>CSP_USER_KEY(IF YOU BELONG TO THE CSP)</Key>
                    <Password>CSP_PASSWORD(IF YOU BELONG TO THE CSP)</Password>
                </UserCredential>
            </WebAuthenticationDetail>
            <ClientDetail>
                <AccountNumber>ACCOUNT_NUMBER</AccountNumber>
                <MeterNumber>METER_NUMBER</MeterNumber>
                <ClientProductId>CLIENT_PRODUCT_ID(IF ONE IS PROVIDED)</ClientProductId>
                <ClientProductVersion>CLIENT_VERSION(IF ONE IS PROVIDED)</ClientProductVersion>
            </ClientDetail>
            <TransactionDetail>
                <CustomerTransactionId>261</CustomerTransactionId>
            </TransactionDetail>
            <Version>
                <ServiceId>ship</ServiceId>
                <Major>12</Major>
                <Intermediate>0</Intermediate>
                <Minor>0</Minor>
            </Version>
            <RequestedShipment>
                <ShipTimestamp>2013-08-21T14:00:00-04:00</ShipTimestamp>
                <DropoffType>REGULAR_PICKUP</DropoffType>
                <ServiceType>PRIORITY_OVERNIGHT</ServiceType>
                <PackagingType>YOUR_PACKAGING</PackagingType>
                <Shipper>
                    <AccountNumber>ACCOUNT_NUMBER</AccountNumber>
                    <Contact>
                        <PersonName>323199 323199</PersonName>
                        <CompanyName>CSP Testing</CompanyName>
                        <PhoneNumber>9012633035</PhoneNumber>
                        <EMailAddress>csp@fedex.com</EMailAddress>
                    </Contact>
                    <Address>
                        <StreetLines>99 Fedex parkway</StreetLines>
                        <City>ALAMEDA</City>
                        <StateOrProvinceCode>CA</StateOrProvinceCode>
                        <PostalCode>94501</PostalCode>
                        <CountryCode>US</CountryCode>
                    </Address>
                </Shipper>
                <Recipient>
                    <Contact>
                        <PersonName>323257 323257</PersonName>
                        <CompanyName>CSP Testing</CompanyName>
                        <PhoneNumber>9012633035</PhoneNumber>
                        <EMailAddress>csp@fedex.com</EMailAddress>
                    </Contact>
                    <Address>
                        <StreetLines>124 Fedex parkway</StreetLines>
                        <City>PADUCAH</City>
                        <StateOrProvinceCode>KY</StateOrProvinceCode>
                        <PostalCode>42001</PostalCode>
                        <CountryCode>US</CountryCode>
                    </Address>
                </Recipient>
                <Origin>
                    <Contact>
                        <PersonName>323199 323199</PersonName>
                        <CompanyName>CSP Testing</CompanyName>
                        <PhoneNumber>9012633035</PhoneNumber>
                        <EMailAddress>csp@fedex.com</EMailAddress>
                    </Contact>
                    <Address>
                        <StreetLines>99 Fedex parkway</StreetLines>
                        <City>ALAMEDA</City>
                        <StateOrProvinceCode>CA</StateOrProvinceCode>
                        <PostalCode>94501</PostalCode>
                        <CountryCode>US</CountryCode>
                    </Address>
                </Origin>
                <ShippingChargesPayment>
                    <PaymentType>SENDER</PaymentType>
                    <Payor>
                        <ResponsibleParty>
                            <AccountNumber>ACCOUNT_NUMBER</AccountNumber>
                            <Contact>
                                <PersonName>CSP Testing</PersonName>
                                <CompanyName>RTC Testing</CompanyName>
                            </Contact>
                            <Address>
                                <CountryCode>US</CountryCode>
                            </Address>
                        </ResponsibleParty>
                    </Payor>
                </ShippingChargesPayment>
                <SpecialServicesRequested>
                    <SpecialServiceTypes>COD</SpecialServiceTypes>
                    <CodDetail>
                        <CodCollectionAmount>
                            <Currency>USD</Currency>
                            <Amount>50</Amount>
                        </CodCollectionAmount>
                        <CollectionType>ANY</CollectionType>
                        <ReferenceIndicator>INVOICE</ReferenceIndicator>
                    </CodDetail>
                </SpecialServicesRequested>
                <CustomsClearanceDetail>
                    <DocumentContent>NON_DOCUMENTS</DocumentContent>
                </CustomsClearanceDetail>
                <LabelSpecification>
                    <LabelFormatType>COMMON2D</LabelFormatType>
                    <ImageType>PNG</ImageType>
                    <LabelStockType>PAPER_4X6</LabelStockType>
                </LabelSpecification>
                <RateRequestTypes>ACCOUNTACCOUNT</RateRequestTypes>
                <PackageCount>1</PackageCount>
                <RequestedPackageLineItems>
                    <SequenceNumber>1</SequenceNumber>
                    <GroupPackageCount>1</GroupPackageCount>
                    <InsuredValue>
                        <Currency>USD</Currency>
                        <Amount>5000</Amount>
                    </InsuredValue>
                    <Weight>
                        <Units>LB</Units>
                        <Value>20</Value>
                    </Weight>
                    <PhysicalPackaging>OTHER</PhysicalPackaging>
                    <ItemDescription>MacBook Pro</ItemDescription>
                    <CustomerReferences>
                        <CustomerReferenceType>INVOICE_NUMBER</CustomerReferenceType>
                        <Value>INVOICE12345</Value>
                    </CustomerReferences>
                    <SpecialServicesRequested>
                        <SpecialServiceTypes>SIGNATURE_OPTION</SpecialServiceTypes>
                        <SignatureOptionDetail>
                            <OptionType>SERVICE_DEFAULT</OptionType>
                        </SignatureOptionDetail>
                    </SpecialServicesRequested>
                </RequestedPackageLineItems>
            </RequestedShipment>
        </ProcessShipmentRequest>
    </soap:Body>
</soap:Envelope>

这是生成的运输标签:

这是生成的COD标签:

This is the generated COD label:

我希望我的答复是帮助你。

I hope my reply is of help to you.

最好的!

这篇关于联邦快递WSDL C# - 设置发票#值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆