I am trying to get the shipping charges.
Here is my request:
<?xml version="1.0" encoding="utf-8"?>
<p:DCTRequest xmlns:p="http://www.dhl.com" xmlns:p1="http://www.dhl.com/datatypes" xmlns:p2="http://www.dhl.com/DCTRequestdatatypes" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.dhl.com DCT-req.xsd ">
<GetQuote>
<Request>
<ServiceHeader>
<MessageTime>2017-10-20T11:28:56.000-08:00</MessageTime>
<MessageReference>pukka301934229934707056790226292</MessageReference>
<SiteID>******</SiteID>
<Password>******</Password>
</ServiceHeader>
</Request>
<From>
<CountryCode>DE</CountryCode>
<Postalcode>10717</Postalcode>
<City>BERLIN</City>
</From>
<BkgDetails>
<PaymentCountryCode>DE</PaymentCountryCode>
<Date>2017-10-19</Date>
<ReadyTime>PT9H</ReadyTime>
<DimensionUnit>CM</DimensionUnit>
<WeightUnit>KG</WeightUnit>
<Pieces>
<Piece>
<PieceID>1</PieceID>
<Height>30</Height>
<Depth>30</Depth>
<Width>30</Width>
<Weight>250</Weight>
</Piece>
</Pieces>
<IsDutiable>Y</IsDutiable>
</BkgDetails>
<To>
<CountryCode>US</CountryCode>
<Postalcode>60603</Postalcode>
<City>CHICAGO</City>
</To>
<Dutiable>
<DeclaredCurrency>EUR</DeclaredCurrency>
<DeclaredValue>90</DeclaredValue>
</Dutiable>
</GetQuote>
</p:DCTRequest>
I am getting the error:
The requested Global Product Code and Local Product Code is not available based on origin country DE postal location and destination country US postal location for payment country DE.
Please make sure data entered is valid before proceeding or contact our customer service.
But when I change
<DimensionUnit>CM</DimensionUnit>
<WeightUnit>KG</WeightUnit>
to
<DimensionUnit>IN</DimensionUnit>
<WeightUnit>LB</WeightUnit>
I get the shipping amount. But I need to send the value in CM and KG. Please help me figure out the error.
One of the reasons could be that you are exceeding the maximum weight limit or passing an incorrect value for the CM and KG units.
Add a lower value for the weight, start with 10 KG.
Related
I have tried to import the sale order voucher using XML format from external application by using CURL POST Request (External Application built by using PHP Laravel) in tally prime. I have got following error:.
Stock Item 'TEST 4KG/CM²' does not exist!
When I check tally.imp file I got following error:
ERROR: Voucher: ID:<REMOTEID:SO-2223-00000013>, Voucher Type: Sales Order, Source Voucher Number: SO-2223-00000013, Voucher Number: SO-2223-00000013, Date: 2-Jun-22
Stock Item 'TEST 4KG/CM²' does not exist!
But when I have tried to import same data imported via xml file to tally prime, it worked properly. The stock item exists in ally prime.
My Code (inventory part) looks like follows:
<ALLINVENTORYENTRIES.LIST>
<STOCKITEMNAME>TEST 4KG/CM²</STOCKITEMNAME>
<ISDEEMEDPOSITIVE>No</ISDEEMEDPOSITIVE>
<ISLASTDEEMEDPOSITIVE>No</ISLASTDEEMEDPOSITIVE>
<ISAUTONEGATE>No</ISAUTONEGATE>
<ISCUSTOMSCLEARANCE>No</ISCUSTOMSCLEARANCE>
<ISTRACKCOMPONENT>No</ISTRACKCOMPONENT>
<ISTRACKPRODUCTION>No</ISTRACKPRODUCTION>
<ISPRIMARYITEM>No</ISPRIMARYITEM>
<ISSCRAP>No</ISSCRAP>
<RATE>52.45/MTR</RATE>
<DISCOUNT> 0</DISCOUNT>
<AMOUNT>9441</AMOUNT>
<ACTUALQTY> 180 MTR = 900 NOS</ACTUALQTY>
<BILLEDQTY> 180 MTR = 900 NOS</BILLEDQTY>
<BATCHALLOCATIONS.LIST>
<MFDON></MFDON>
<GODOWNNAME></GODOWNNAME>
<BATCHNAME> Primary Batch</BATCHNAME>
<DESTINATIONGODOWNNAME></DESTINATIONGODOWNNAME>
<INDENTNO/>
<ORDERNO> SO-2223-00000013</ORDERNO>
<TRACKINGNUMBER/>
<DYNAMICCSTISCLEARED>No</DYNAMICCSTISCLEARED>
<AMOUNT>9441</AMOUNT>
<ACTUALQTY> 180 MTR = 900 NOS </ACTUALQTY>
<BILLEDQTY> 180 MTR = 900 NOS</BILLEDQTY>
<ORDERDUEDATE JD="" p=" 20220602"> 20220602</ORDERDUEDATE>
<ADDITIONALDETAILS.LIST></ADDITIONALDETAILS.LIST>
<VOUCHERCOMPONENTLIST.LIST></VOUCHERCOMPONENTLIST.LIST>
</BATCHALLOCATIONS.LIST>
<ACCOUNTINGALLOCATIONS.LIST>
<OLDAUDITENTRYIDS.LIST TYPE="Number">
<OLDAUDITENTRYIDS>-1</OLDAUDITENTRYIDS>
</OLDAUDITENTRYIDS.LIST>
<LEDGERNAME></LEDGERNAME>
<GSTCLASS/>
<ISDEEMEDPOSITIVE>No</ISDEEMEDPOSITIVE>
<LEDGERFROMITEM>No</LEDGERFROMITEM>
<REMOVEZEROENTRIES>No</REMOVEZEROENTRIES>
<ISPARTYLEDGER>No</ISPARTYLEDGER>
<ISLASTDEEMEDPOSITIVE>No</ISLASTDEEMEDPOSITIVE>
<ISCAPVATTAXALTERED>No</ISCAPVATTAXALTERED>
<ISCAPVATNOTCLAIMED>No</ISCAPVATNOTCLAIMED>
<AMOUNT>9441</AMOUNT>
</ACCOUNTINGALLOCATIONS.LIST>
</ALLINVENTORYENTRIES.LIST>
I am trying to create the international shipment for fedex I am using following schema
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:q0="http://fedex.com/ws/ship/v21" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<q0:ProcessShipmentRequest>
<q0:WebAuthenticationDetail>
<q0:UserCredential>
<q0:Key>xxxxx</q0:Key>
<q0:Password>xxxxx</q0:Password>
</q0:UserCredential>
</q0:WebAuthenticationDetail>
<q0:ClientDetail>
<q0:AccountNumber>xxxxx</q0:AccountNumber>
<q0:MeterNumber>xxxx</q0:MeterNumber>
</q0:ClientDetail>
<q0:TransactionDetail>
<q0:CustomerTransactionId>Express Intl Shipment Example</q0:CustomerTransactionId>
</q0:TransactionDetail>
<q0:Version>
<q0:ServiceId>ship</q0:ServiceId>
<q0:Major>21</q0:Major>
<q0:Intermediate>0</q0:Intermediate>
<q0:Minor>0</q0:Minor>
</q0:Version>
<q0:RequestedShipment>
<q0:ShipTimestamp>2018-02-21T18:42:46.286Z</q0:ShipTimestamp>
<q0:DropoffType>REGULAR_PICKUP</q0:DropoffType>
<q0:ServiceType>INTERNATIONAL_PRIORITY</q0:ServiceType>
<q0:PackagingType>FEDEX_SMALL_BOX</q0:PackagingType>
<q0:Shipper>
<q0:Contact>
<q0:PersonName>John Doe</q0:PersonName>
<q0:CompanyName>FedEx</q0:CompanyName>
<q0:PhoneNumber>9015551234</q0:PhoneNumber>
</q0:Contact>
<q0:Address>
<q0:StreetLines>3610 Hacks Cross Road</q0:StreetLines>
<q0:StreetLines>First Floor</q0:StreetLines>
<q0:City>Memphis</q0:City>
<q0:StateOrProvinceCode>TN</q0:StateOrProvinceCode>
<q0:PostalCode>38125</q0:PostalCode>
<q0:CountryCode>US</q0:CountryCode>
</q0:Address>
</q0:Shipper>
<q0:Recipient>
<q0:Contact>
<q0:PersonName>Joe Customer</q0:PersonName>
<q0:CompanyName>ABC Widget Co</q0:CompanyName>
<q0:PhoneNumber>4455551234</q0:PhoneNumber>
</q0:Contact>
<q0:Address>
<q0:StreetLines>1234 Main Street</q0:StreetLines>
<q0:StreetLines>Suite 200</q0:StreetLines>
<q0:City>Nuneaton</q0:City>
<q0:PostalCode>Cv114al</q0:PostalCode>
<q0:CountryCode>GB</q0:CountryCode>
<q0:Residential>false</q0:Residential>
</q0:Address>
</q0:Recipient>
<q0:ShippingChargesPayment>
<q0:PaymentType>SENDER</q0:PaymentType>
<q0:Payor>
<q0:ResponsibleParty>
<q0:AccountNumber>xxxxxx</q0:AccountNumber>
<q0:Contact/>
</q0:ResponsibleParty>
</q0:Payor>
</q0:ShippingChargesPayment>
<q0:CustomsClearanceDetail>
<q0:DutiesPayment>
<q0:PaymentType>SENDER</q0:PaymentType>
<q0:Payor>
<q0:ResponsibleParty>
<q0:AccountNumber>xxxxx</q0:AccountNumber>
<q0:Contact/>
</q0:ResponsibleParty>
</q0:Payor>
</q0:DutiesPayment>
<q0:DocumentContent>DOCUMENTS_ONLY</q0:DocumentContent>
<q0:CustomsValue>
<q0:Currency>USD</q0:Currency>
<q0:Amount>1.00</q0:Amount>
</q0:CustomsValue>
<q0:Commodities>
<q0:NumberOfPieces>1</q0:NumberOfPieces>
<q0:Description>Bank Statements</q0:Description>
<q0:CountryOfManufacture>US</q0:CountryOfManufacture>
<q0:Weight>
<q0:Units>LB</q0:Units>
<q0:Value>1.0</q0:Value>
</q0:Weight>
<q0:Quantity>1</q0:Quantity>
<q0:QuantityUnits>pcs</q0:QuantityUnits>
<q0:CustomsValue>
<q0:Currency>USD</q0:Currency>
<q0:Amount>1.00</q0:Amount>
</q0:CustomsValue>
</q0:Commodities>
</q0:CustomsClearanceDetail>
<q0:LabelSpecification>
<q0:LabelFormatType>COMMON2D</q0:LabelFormatType>
<q0:ImageType>PDF</q0:ImageType>
<q0:LabelStockType>PAPER_4X6</q0:LabelStockType>
<q0:CustomerSpecifiedDetail>
<q0:MaskedData>CUSTOMS_VALUE</q0:MaskedData>
<q0:MaskedData>DUTIES_AND_TAXES_PAYOR_ACCOUNT_NUMBER</q0:MaskedData>
<q0:MaskedData>SHIPPER_ACCOUNT_NUMBER</q0:MaskedData>
<q0:MaskedData>TRANSPORTATION_CHARGES_PAYOR_ACCOUNT_NUMBER</q0:MaskedData>
</q0:CustomerSpecifiedDetail>
</q0:LabelSpecification>
<q0:PackageCount>1</q0:PackageCount>
<q0:RequestedPackageLineItems>
<q0:SequenceNumber>1</q0:SequenceNumber>
<q0:Weight>
<q0:Units>LB</q0:Units>
<q0:Value>1.0</q0:Value>
</q0:Weight>
<q0:CustomerReferences>
<q0:CustomerReferenceType>CUSTOMER_REFERENCE</q0:CustomerReferenceType>
<q0:Value>ref1234</q0:Value>
</q0:CustomerReferences>
</q0:RequestedPackageLineItems>
</q0:RequestedShipment>
</q0:ProcessShipmentRequest>
</soapenv:Body>
</soapenv:Envelope>
But whenever I try to create shipment for documents using above schema, It generates following error
"Insufficient information for commodity 1 to complete shipment".
Please let me know if anyone had faced this issue previously.I dont know where I am going wrong.
Its actually very late to reply but I just have faced the issue and solved it.
Actually the value of the quantity was 0 with me, that's why i was facing the issue.
you would have something missed in the commodity, go to the "FedEx WebServices Developer Guide", there go to the commodity elements and make sure that you are passing all the parameters.
Hello Stack Exchange community,
I'm trying to make a Equifax API to get credit information (don't worry the data you see is all dummy data). I'm using their XML input. I am receiving the XML response just fine, but for some god awful reason the equifax developers decided to add some 'extra' content at the end of outside of the XML tags.
This essentially makes the xml un-parseable in php. Is there a way to strip out the extra content at the end?
Here is the XML response. Look after the closing EfxTransmit tag
<?xml version="1.0" encoding="UTF-8"?>
<EfxTransmit>
<EfxReport requestNumber="1" reportId="USConsumerCreditReport">
<USDecisionPowerExpressReports>
<USDecisionPowerExpressReport subjectType="Subject" multipleNumber="1">
<USMasterHeader>
<CustomerReferenceNumber>EFX QA</CustomerReferenceNumber>
<CustomerNumber>999KI00553</CustomerNumber>
<ECOAInquiryType>I</ECOAInquiryType>
<DateOfRequest format="MM/DD/CCYY">02/23/2017</DateOfRequest>
<EquifaxReferenceNumber>187388032</EquifaxReferenceNumber>
</USMasterHeader>
<USConsumerCreditReport subjectType="Subject" multipleNumber="1">
<USHeader>
<Request>
<CustomerReferenceNumber>EFX QA</CustomerReferenceNumber>
<CustomerNumber>999KI00553</CustomerNumber>
<ConsumerReferralCode>024</ConsumerReferralCode>
<ECOAInquiryType>I</ECOAInquiryType>
<NumberOfMonthsToCountInquiries>Last 24 Months</NumberOfMonthsToCountInquiries>
<NumberOfMonthsToCountDelinquencies>Last 6 Years, 11 Months</NumberOfMonthsToCountDelinquencies>
</Request>
<CreditFile>
<HitCode code="1" description="Hit"/>
<FileSinceDate format="MM/DD/CCYY">04/16/2003</FileSinceDate>
<DateOfLastActivity format="MM/DD/CCYY">01/24/2017</DateOfLastActivity>
<DateOfRequest format="MM/DD/CCYY">02/23/2017</DateOfRequest>
<Identityscans>
<Identityscan code="8" description="Unable to perform telephone validation due to insufficient telephone input"/>
</Identityscans>
<AddressDiscrepancyIndicator>N</AddressDiscrepancyIndicator>
<CreateCode>2</CreateCode>
<FileStatus1>016</FileStatus1>
<FileStatus2>242</FileStatus2>
<FileStatus3>004</FileStatus3>
<BureauCode>244</BureauCode>
</CreditFile>
<Subject>
<SubjectName>
<LastName>DGNNLXZ</LastName>
<FirstName>CHANITA</FirstName>
<MiddleName>S</MiddleName>
</SubjectName>
<SubjectId>
<SubjectSSN>66639074</SubjectSSN>
<DateOfBirth format="MM/DD/CCYY">08/17/1988</DateOfBirth>
</SubjectId>
</Subject>
</USHeader>
<USAddresses>
<USAddress code="CA" description="Current Address">
<ParsedStreetAddress>
<StreetNumber>4338</StreetNumber>
<StreetName>W POTOMAC</StreetName>
<StreetType>AVE</StreetType>
</ParsedStreetAddress>
<City>CHICAGO</City>
<State>IL</State>
<PostalCode>60651</PostalCode>
<DateAddressFirstReported format="MM/CCYY">07/2015</DateAddressFirstReported>
<AddressSource code="T" description="Tape"/>
<DateAddressLastReported format="MM/CCYY">02/2017</DateAddressLastReported>
</USAddress>
<USAddress code="FA" description="Former Address">
<ParsedStreetAddress>
<StreetNumber>1301</StreetNumber>
<StreetName>BRUMMEL</StreetName>
<StreetType>ST APT 8</StreetType>
</ParsedStreetAddress>
<City>EVANSTON</City>
<State>IL</State>
<PostalCode>60202</PostalCode>
<DateAddressFirstReported format="MM/CCYY">04/2015</DateAddressFirstReported>
<AddressSource code="T" description="Tape"/>
<DateAddressLastReported format="MM/CCYY">04/2015</DateAddressLastReported>
</USAddress>
<USAddress code="F2" description="Second Former Address">
<ParsedStreetAddress>
<StreetNumber>1208</StreetNumber>
<StreetName>W JEFFERSON</StreetName>
<StreetType>ST APT C</StreetType>
</ParsedStreetAddress>
<City>SPRINGFIELD</City>
<State>IL</State>
<PostalCode>62702</PostalCode>
<DateAddressFirstReported format="MM/CCYY">06/2014</DateAddressFirstReported>
<AddressSource code="T" description="Tape"/>
<DateAddressLastReported format="MM/CCYY">06/2014</DateAddressLastReported>
</USAddress>
</USAddresses>
<USEmployments>
<USEmployment code="ES" description="Last Reported Employment">
<Occupation>CORRECTION OFF</Occupation>
<Employer>MACON STATE PRISON</Employer>
</USEmployment>
</USEmployments>
<USFICO>
<FICOScore>00650</FICOScore>
<ScoreReasons>
<ScoreReason code="00038" description="Serious delinquency, and derogatory public record or collection filed" number="1"/>
<ScoreReason code="00010" description="Prop of balances to credit limits is too high on bank rev or other rev accts" number="2"/>
<ScoreReason code="00018" description="Number of accounts with delinquency" number="3"/>
<ScoreReason code="00014" description="Length of time accounts have been established" number="4"/>
</ScoreReasons>
<ScoreIndicator code="J" description="FICO Score 5 based on Equifax Data (NF)"/>
</USFICO>
<USIdentificationSSN>
<MDBSubjectSSN>666390749</MDBSubjectSSN>
<InquirySubjectSSN>666390749</InquirySubjectSSN>
<InquirySSNDateIssued>1992</InquirySSNDateIssued>
<InquirySSNStateIssued>GA</InquirySSNStateIssued>
</USIdentificationSSN>
</USConsumerCreditReport>
<USDecisionPowerExpressSegment>
<ConsumerDisclosureIndicator></ConsumerDisclosureIndicator>
<ReportTextMessage>OFFER C</ReportTextMessage>
<SSNVarianceIndicator></SSNVarianceIndicator>
<DPExpressProducts>
<DPExpressProduct number="1">
<Description>A</Description>
<ApprovalIndicator>N</ApprovalIndicator>
<Limit></Limit>
<Miscellaneous></Miscellaneous>
</DPExpressProduct>
<DPExpressProduct number="2">
<Description>B</Description>
<ApprovalIndicator>N</ApprovalIndicator>
<Limit></Limit>
<Miscellaneous></Miscellaneous>
</DPExpressProduct>
<DPExpressProduct number="3">
<Description>C</Description>
<ApprovalIndicator>Y</ApprovalIndicator>
<Limit></Limit>
<Miscellaneous></Miscellaneous>
</DPExpressProduct>
<DPExpressProduct number="4">
<Description>D</Description>
<ApprovalIndicator>N</ApprovalIndicator>
<Limit></Limit>
<Miscellaneous></Miscellaneous>
</DPExpressProduct>
</DPExpressProducts>
</USDecisionPowerExpressSegment>
</USDecisionPowerExpressReport>
</USDecisionPowerExpressReports>
<USPrintImage><![CDATA[TRANSACTION NUMBER: 187388032
BRANCH NUMBER: EFX QA
NO SUBSTANTIAL DIFFERENCE WAS FOUND BETWEEN INQUIRY ADDRESS(ES) AND
THE EXISTING CREDIT FILE ADDRESS(ES).
Product Approval Limit Misc
Indicator
C Y
OFFER C
**** Credit Report Information ****************************************
Equifax Information Services LLC
P O Box 740241, Atlanta, GA 30374-0241
800/685-1111
Name: CHANITA S DGNNLXZ Since: 04162003 SSN: 66639074
DOB/Age: 08/17/1988 Last Activity: 01242017 Report Date: 02232017
072015 4338 W POTOMAC AVE, CHICAGO IL 60651
042015 1301 BRUMMEL ST APT 8, EVANSTON IL 60202
062014 1208 W JEFFERSON ST APT C, SPRINGFIELD IL 62702
Employment information:
MACON STATE PRISON, CORRECTION OFF
Identity Scan: UNABLE TO PERFORM TELEPHONE VALIDATION DUE TO INSUFFICIENT TELEPHONE INPUT.
Customer Reference: EFX QA
ADI: NO SUBSTANTIAL DIFFERENCE WAS FOUND BETWEEN INQUIRY ADDRESS(ES) AND
THE EXISTING CREDIT FILE ADDRESS(ES).
FICO Score 5-EFX-N: 00650 00038 00010 00018 00014 Reject:
Serious delinquency, and derogatory public record or collection filed
Prop of balances to credit limits is too high on bank rev or other rev accts
Number of accounts with delinquency
Length of time accounts have been established
END OF REPORT
]]>
</USPrintImage>
</EfxReport>
</EfxTransmit>
FULLEFX QA 999KI005530241I02 1041620030124201702232017DGNNLXZ CHANITA S 66639074 08171988 0010101000000010000000000000000000000000000000000000000000000010000000000010000000100000000000000000000000000000000000000N I 2016242004244 8CA4338 W POTOMAC AVE CHICAGO IL60651 072015 T022017 FA1301 BRUMMEL ST APT 8 EVANSTON IL60202 042015 T042015 F21208 W JEFFERSON ST APT C SPRINGFIELD IL62702 062014 T062014 ESCORRECTION OFF MACON STATE PRISON CP0065000038000100001800014 J SS 666390749 6663907491992GA DP A N B N C Y D N
I'm dealing with a SOAP client response for a flight booking application, I successfully got the response, See the response below:
<arzoo__response>
<Response__Depart>
<OriginDestinationOptions>
<OriginDestinationOption>
<FareDetails>
<ChargeableFares>
<ActualBaseFare>4850</ActualBaseFare>
<Tax>4267</Tax>
<STax>31</STax>
<SCharge>0</SCharge>
<TDiscount>0</TDiscount>
<TPartnerCommission>0</TPartnerCommission>
</ChargeableFares>
<NonchargeableFares>
<TCharge>0</TCharge>
<TMarkup>0</TMarkup>
<TSdiscount>0</TSdiscount>
</NonchargeableFares>
</FareDetails>
<FlightSegments>
<FlightSegment>
<AirEquipType>321</AirEquipType>
<ArrivalAirportCode>DEL</ArrivalAirportCode>
<ArrivalDateTime>2013-05-20T08:00:00</ArrivalDateTime>
<DepartureAirportCode>BOM</DepartureAirportCode>
<DepartureDateTime>2013-05-20T06:00:00</DepartureDateTime>
<FlightNumber>601</FlightNumber>
<OperatingAirlineCode>AI</OperatingAirlineCode>
<OperatingAirlineFlightNumber>601</OperatingAirlineFlightNumber>
<RPH></RPH>
<StopQuantity>0</StopQuantity>
<airLineName>Air India</airLineName>
<airportTax>4267</airportTax>
<imageFileName>http://live.arzoo.com/FlightWS/image/AirIndia.gif</imageFileName>
<viaFlight></viaFlight>
<BookingClass>
<Availability>4</Availability>
<ResBookDesigCode>U</ResBookDesigCode>
</BookingClass>
<BookingClassFare>
<adultFare>4850</adultFare>
<bookingclass>U</bookingclass>
<classType>Economy</classType>
<farebasiscode>fjyS3YyUlEusLfJ4bwgPvQ==</farebasiscode>
<Rule>This fare is Refundable <br> Baggage : 25K<br>Booking Class : U|Re-Schedule Charges: Rs. 750 per sector + Fare difference (If any) +admin fee 500 + Service Fee of Rs. 250 Sector .|Cancellation Charges : Basic fare +Airline administration fee 500 + Service Charges 250 Per Passenger Per Sector . |</Rule>
<adultCommission>0</adultCommission>
<childCommission>0</childCommission>
<commissionOnTCharge>0</commissionOnTCharge>
</BookingClassFare>
<Discount>0</Discount>
<airportTaxChild>0</airportTaxChild>
<airportTaxInfant>0</airportTaxInfant>
<adultTaxBreakup>2800,147,1320</adultTaxBreakup>
<childTaxBreakup>0,0,0</childTaxBreakup>
<infantTaxBreakup>0,0,0</infantTaxBreakup>
<octax>0</octax>
</FlightSegment>
</FlightSegments>
<id>arzoo11</id>
<key>wtZcSVMY/gphWFSOTFWg8oKRnosq3p9wt7R4SjMB0EUK8sDjVS91GicTJzH+TWN+pNURIyTJYKOW O8yH8+0tzpA4t8aEEvzaOE6ZnTtBotFDwLtSiN0xXqMsaDl8diV51l7d9ata/3rxTgfh9d8ZSmFY VI5MVaDywdHNcjAR1vwnEycx/k1jftlsnmWWqYGnJxMnMf5NY36YIq2FtLkfcHtsd+IDEhxpxJuT v4YyS+QnEycx/k1jftlsnmWWqYGnJxMnMf5NY37ZbJ5llqmBpycTJzH+TWN+GlZsae+KA6L3dlms eLkXZFKXPvd5FAnBXnTfRGc5sz+UC8CsZNzDV2FYVI5MVaDyFiThuG7WKPhzqWDbQb1E1IqUKT5I FtF6OaCYjb6EFGhDwLtSiN0xXt7N3OmPGVH2v18OFlhFoI+A/uAfnTovYr9fDhZYRaCPgP7gH506 L2K/Xw4WWEWgj4D+4B+dOi9iv18OFlhFoI+A/uAfnTovYr9fDhZYRaCPgP7gH506L2K/Xw4WWEWg j4D+4B+dOi9iv18OFlhFoI/87KPqwdBsCm4nF4DlZwRNQ/zni8QE42g8S0GV1z3SJXaOdoTFisn9 v18OFlhFoI+ThOYsjNAbXEP854vEBONoPEtBldc90iVD/OeLxATjaAwTg0ygCEBmEgnKEhG4Md1D /OeLxATjaDxLQZXXPdIlQ/zni8QE42jXGTnbB/ydvR4daAuN34kWYVhUjkxVoPJtRWbi6bZrXL9f DhZYRaCPgP7gH506L2K/Xw4WWEWgj4D+4B+dOi9iv18OFlhFoI8KriAmVoEyR3OpYNtBvUTUp1Mf I240+obPusGaAOeuxg==</key>
</OriginDestinationOption>
</OriginDestinationOptions>
</Response__Depart>
</arzoo__response>
Now i have to display them as :
Base Price: 4850
Tax: 31
STax: 31
SCharge: 0
TDiscount: 0
TPartnerCommission: 0
.....................
Arrival Airport Code: DEL
.....................
I tried several methods using foreach():
$result = $client->__call('getAvailability',array($test));
$xml = simplexml_load_string($result);
foreach($xml->OriginDestinationOption as $od){
foreach($od->FareDetails as $fd){
foreach($fd->ChargeableFares as $cf){
echo $cf->ActualBaseFare;
}
}
}
but never sot it out. Can any one please help me out on this ?
Your help must appreciated. Thanks in advance
You are trying to access OriginDestinationOption as though it is a direct child of the XML response, but the structure is actually like this:
<arzoo__response>
<Response__Depart>
<OriginDestinationOptions>
<OriginDestinationOption>
So, since your $xml will represent the arzoo__response element, you need to traverse the other elements in between:
foreach($xml->Response__Depart->OriginDestinationOptions->OriginDestinationOption as $od)
I'm getting "General Failure" when I call processShipment method in using fedex shipping service, I've done everything as required, I don't know what's wrong with this service.
Can anyone tell me what is missing in this request?
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:v10="http://fedex.com/ws/ship/v10">
<SOAP-ENV:Header/>
<SOAP-ENV:Body>
<v10:ProcessShipmentRequest>
<v10:WebAuthenticationDetail>
<v10:UserCredential>
<v10:Key>XXXXX</v10:Key>
<v10:Password>XXXXX</v10:Password>
</v10:UserCredential>
</v10:WebAuthenticationDetail>
<v10:ClientDetail>
<v10:AccountNumber>XXXXX</v10:AccountNumber>
<v10:MeterNumber>XXXXX</v10:MeterNumber>
<v10:IntegratorId>123</v10:IntegratorId>
<v10:Localization>
<v10:LanguageCode>EN</v10:LanguageCode>
<v10:LocaleCode>ES</v10:LocaleCode>
</v10:Localization>
</v10:ClientDetail>
<v10:TransactionDetail>
<v10:CustomerTransactionId>PROCESS SHIPMENT</v10:CustomerTransactionId>
<v10:Localization>
<v10:LanguageCode>EN</v10:LanguageCode>
<v10:LocaleCode>ES</v10:LocaleCode>
</v10:Localization>
</v10:TransactionDetail>
<v10:Version>
<v10:ServiceId>ship</v10:ServiceId>
<v10:Major>10</v10:Major>
<v10:Intermediate>0</v10:Intermediate>
<v10:Minor>0</v10:Minor>
</v10:Version>
<v10:RequestedShipment>
<v10:ShipTimestamp>2012-06-22T10:56:46-06:00</v10:ShipTimestamp>
<v10:DropoffType>REGULAR_PICKUP</v10:DropoffType>
<v10:ServiceType>FEDEX_GROUND</v10:ServiceType>
<v10:PackagingType>YOUR_PACKAGING</v10:PackagingType>
<v10:Shipper>
<v10:AccountNumber>510087682</v10:AccountNumber>
<v10:Tins>
<v10:TinType>PERSONAL_STATE</v10:TinType>
<v10:Number>1057</v10:Number>
<v10:Usage>ShipperTinsUsage</v10:Usage>
</v10:Tins>
<v10:Contact>
<v10:ContactId>RBB1057</v10:ContactId>
<v10:PersonName>ROHIT BORSE</v10:PersonName>
<v10:Title>Mr.</v10:Title>
<v10:CompanyName>DEOYAROHIT0705$</v10:CompanyName>
<v10:PhoneNumber>9762308621</v10:PhoneNumber>
<v10:PhoneExtension>02033469</v10:PhoneExtension>
<v10:PagerNumber>9762308621</v10:PagerNumber>
<v10:FaxNumber>9762308621</v10:FaxNumber>
<v10:EMailAddress>Rohit*Borse#DeoyaRohit.com</v10:EMailAddress>
</v10:Contact>
<v10:Address>
<v10:StreetLines>1202 Chalet Ln</v10:StreetLines>
<v10:StreetLines>Do Not Delete - Test Account</v10:StreetLines>
<v10:City>Harrison</v10:City>
<v10:StateOrProvinceCode>AR</v10:StateOrProvinceCode>
<v10:PostalCode>72601</v10:PostalCode>
<v10:UrbanizationCode>AR</v10:UrbanizationCode>
<v10:CountryCode>US</v10:CountryCode>
<v10:Residential>0</v10:Residential>
</v10:Address>
</v10:Shipper>
<v10:Recipient>
<v10:AccountNumber>510051408</v10:AccountNumber>
<v10:Tins>
<v10:TinType>PERSONAL_STATE</v10:TinType>
<v10:Number>0705</v10:Number>
<v10:Usage>RecipientTinsUsage</v10:Usage>
</v10:Tins>
<v10:Contact>
<v10:ContactId>DRB0705</v10:ContactId>
<v10:PersonName>DEOYANEE BHADANE</v10:PersonName>
<v10:Title>Ms.</v10:Title>
<v10:CompanyName>DEOYAROHIT0705$</v10:CompanyName>
<v10:PhoneNumber>9762308621</v10:PhoneNumber>
<v10:PhoneExtension>02033469</v10:PhoneExtension>
<v10:PagerNumber>9762308621</v10:PagerNumber>
<v10:FaxNumber>9762308621</v10:FaxNumber>
<v10:EMailAddress>Deoyanee*Bhadane#DeoyaRohit.com</v10:EMailAddress>
</v10:Contact>
<v10:Address>
<v10:StreetLines>2000 Freight LTL Testing</v10:StreetLines>
<v10:StreetLines>Do Not Delete - Test Account</v10:StreetLines>
<v10:City>Harrison</v10:City>
<v10:StateOrProvinceCode>AR</v10:StateOrProvinceCode>
<v10:PostalCode>72601</v10:PostalCode>
<v10:UrbanizationCode>AR</v10:UrbanizationCode>
<v10:CountryCode>US</v10:CountryCode>
<v10:Residential>0</v10:Residential>
</v10:Address>
</v10:Recipient>
<v10:RecipientLocationNumber>DEN001</v10:RecipientLocationNumber>
<v10:Origin>
<v10:Contact>
<v10:ContactId>RBB1057</v10:ContactId>
<v10:PersonName>ROHIT BORSE</v10:PersonName>
<v10:Title>Mr.</v10:Title>
<v10:CompanyName>DEOYAROHIT0705$</v10:CompanyName>
<v10:PhoneNumber>9762308621</v10:PhoneNumber>
<v10:PhoneExtension>02033469</v10:PhoneExtension>
<v10:PagerNumber>9762308621</v10:PagerNumber>
<v10:FaxNumber>9762308621</v10:FaxNumber>
<v10:EMailAddress>Rohit*Borse#DeoyaRohit.com</v10:EMailAddress>
</v10:Contact>
<v10:Address>
<v10:StreetLines>ORIGIN ADDRESS LINE 1</v10:StreetLines>
<v10:StreetLines>ORIGIN ADDRESS LINE 2</v10:StreetLines>
<v10:City>COLORADO SPRINGS</v10:City>
<v10:StateOrProvinceCode>CO</v10:StateOrProvinceCode>
<v10:PostalCode>80915</v10:PostalCode>
<v10:UrbanizationCode>CO</v10:UrbanizationCode>
<v10:CountryCode>US</v10:CountryCode>
<v10:Residential>0</v10:Residential>
</v10:Address>
</v10:Origin>
<v10:ShippingChargesPayment>
<v10:PaymentType>SENDER</v10:PaymentType>
<v10:Payor>
<v10:AccountNumber>510087682</v10:AccountNumber>
<v10:CountryCode>US</v10:CountryCode>
</v10:Payor>
</v10:ShippingChargesPayment>
<v10:DeliveryInstructions>DeliveryInstructions</v10:DeliveryInstructions>
<v10:PickupDetail>
<v10:ReadyDateTime>2012-06-22T10:56:46-06:00</v10:ReadyDateTime>
<v10:LatestPickupDateTime>2012-06-15T10:56:46-06:00</v10:LatestPickupDateTime>
<v10:CourierInstructions>PickupCourierInstructions</v10:CourierInstructions>
<v10:RequestType>SAME_DAY</v10:RequestType>
<v10:RequestSource>CUSTOMER_SERVICE</v10:RequestSource>
</v10:PickupDetail>
<v10:BlockInsightVisibility>1</v10:BlockInsightVisibility>
<v10:ErrorLabelBehavior>STANDARD</v10:ErrorLabelBehavior>
<v10:LabelSpecification>
<v10:LabelFormatType>COMMON2D</v10:LabelFormatType>
<v10:ImageType>PNG</v10:ImageType>
<v10:LabelStockType>PAPER_4X6</v10:LabelStockType>
<v10:LabelPrintingOrientation>TOP_EDGE_OF_TEXT_FIRST</v10:LabelPrintingOrientation>
</v10:LabelSpecification>
<v10:RateRequestTypes>ACCOUNT</v10:RateRequestTypes>
<v10:PackageCount>1</v10:PackageCount>
<v10:RequestedPackageLineItems>
<v10:SequenceNumber>1</v10:SequenceNumber>
<v10:GroupNumber>1</v10:GroupNumber>
<v10:GroupPackageCount>1</v10:GroupPackageCount>
<v10:Weight>
<v10:Units>LB</v10:Units>
<v10:Value>60</v10:Value>
</v10:Weight>
<v10:Dimensions>
<v10:Length>12</v10:Length>
<v10:Width>12</v10:Width>
<v10:Height>12</v10:Height>
<v10:Units>IN</v10:Units>
</v10:Dimensions>
<v10:PhysicalPackaging>BAG</v10:PhysicalPackaging>
<v10:ItemDescription>TEST</v10:ItemDescription>
<v10:CustomerReferences>
<v10:CustomerReferenceType>CUSTOMER_REFERENCE</v10:CustomerReferenceType>
<v10:Value>CUSTREF20110408T105646</v10:Value>
</v10:CustomerReferences>
<v10:CustomerReferences>
<v10:CustomerReferenceType>P_O_NUMBER</v10:CustomerReferenceType>
<v10:Value>PO20110408T105646</v10:Value>
</v10:CustomerReferences>
<v10:CustomerReferences>
<v10:CustomerReferenceType>INVOICE_NUMBER</v10:CustomerReferenceType>
<v10:Value>IO20110408T105646</v10:Value>
</v10:CustomerReferences>
<v10:ContentRecords>
<v10:PartNumber>PRTNUM01</v10:PartNumber>
<v10:ItemNumber>ITMNUM01</v10:ItemNumber>
<v10:ReceivedQuantity>15</v10:ReceivedQuantity>
<v10:Description>ContentDescription</v10:Description>
</v10:ContentRecords>
</v10:RequestedPackageLineItems>
</v10:RequestedShipment>
</v10:ProcessShipmentRequest>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Thanks
The FedEx beta/develop/test web services API might be down at the moment? Rating is temporarily unavailable - Error in FEDEX