0

I'm using DHL Shipping Method. After Order Placed. While creating New Shipment Label I have clicked on "Create Shipping Label" & Clicked on "Submit Shipment".

On popup, I have filled info. While saving it's giving below error

enter image description here

below are the logs;

2019-04-02T09:12:17+00:00 DEBUG (7): Array
(
    [request] => <?xml version="1.0" encoding="UTF-8"?>
<req:ShipmentValidateRequestAP xmlns:req="http://www.dhl.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.dhl.com ship-val-req_AP.xsd"><Request xmlns=""><ServiceHeader><SiteID>v62_lN4gpsFxPZ</SiteID><Password>KzJFjITtBb</Password></ServiceHeader></Request><NewShipper xmlns="">N</NewShipper><LanguageCode xmlns="">EN</LanguageCode><PiecesEnabled xmlns="">Y</PiecesEnabled><Billing xmlns=""><ShipperAccountNumber>305265281</ShipperAccountNumber><ShippingPaymentType>S</ShippingPaymentType><BillingAccountNumber>305265281</BillingAccountNumber><DutyPaymentType>S</DutyPaymentType><DutyAccountNumber>305265281</DutyAccountNumber></Billing><Consignee xmlns=""><CompanyName>Activate Commerce</CompanyName><AddressLine>5th Floor 7 Cavendish Square</AddressLine><City>London</City><Division>London</Division><PostalCode>W1G 0PE</PostalCode><CountryCode>GB</CountryCode><CountryName>United Kingdom</CountryName><Contact><PersonName>Kerry Kazadi</PersonName><PhoneNumber>0715357620</PhoneNumber></Contact></Consignee><Commodity xmlns=""><CommodityCode>1</CommodityCode></Commodity><Dutiable xmlns=""><DeclaredValue>60.00</DeclaredValue><DeclaredCurrency>ZAR</DeclaredCurrency></Dutiable><Reference xmlns=""><ReferenceID>shipment reference</ReferenceID><ReferenceType>St</ReferenceType></Reference><ShipmentDetails xmlns=""><NumberOfPieces>1</NumberOfPieces><CurrencyCode>ZAR</CurrencyCode><Pieces xmlns=""><Piece xmlns=""><PieceID>1</PieceID><PackageType>CP</PackageType><Weight>22</Weight><PieceContents>SCARF SILK - sea 'n sky</PieceContents></Piece></Pieces><PackageType>CP</PackageType><Weight>22</Weight><DimensionUnit>C</DimensionUnit><WeightUnit>K</WeightUnit><GlobalProductCode>P</GlobalProductCode><LocalProductCode>P</LocalProductCode><DoorTo>DD</DoorTo><Date>2019-04-02</Date><Contents>DHL Parcel</Contents></ShipmentDetails><Shipper xmlns=""><ShipperID>305265281</ShipperID><CompanyName>Carrol Boyes</CompanyName><RegisteredAccount>305265281</RegisteredAccount><AddressLine>Paarden Eiland Cnr Cumberland and I</AddressLine><AddressLine>ndustry Roads</AddressLine><City>Cape Town</City><Division>Western Cape</Division><PostalCode>7420</PostalCode><CountryCode>ZA</CountryCode><CountryName>South Africa</CountryName><Contact xmlns=""><PersonName>Kerry Kazadi</PersonName><PhoneNumber>0214248263</PhoneNumber></Contact></Shipper><LabelImageFormat xmlns="">PDF</LabelImageFormat></req:ShipmentValidateRequestAP>

    [result] => <?xml version="1.0" encoding="UTF-8"?><res:ErrorResponse xmlns:res='http://www.dhl.com' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation= 'http://www.dhl.com err-res.xsd'>
    <Response>
        <ServiceHeader>
            <MessageTime>2019-04-02T11:12:17.939+02:00</MessageTime>
            <SiteID>v62_lN4gpsFxPZ</SiteID>
            <Password>v62_lN4gpsFxPZ</Password>
        </ServiceHeader>
        <Status>
            <ActionStatus>Error</ActionStatus>
            <Condition>
                <ConditionCode>111</ConditionCode>
                <ConditionData>Error in parsing request XML:Error:
                    Element type &quot;NewShipper&quot; must be
                    declared. at line 2, column 323</ConditionData>
            </Condition>
        </Status>
    </Response></res:ErrorResponse><!-- ServiceInvocationId:20190402111217_f701_a6e0af1f-0101-4f88-aff4-e80b8053c62d -->
    [__pid] => 7422
)

Please advise what is wrong here.

Thanks

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.