Support » Plugin: DHL WooCommerce Shipping Method » My DHL options are not being displayed

  • Resolved windleweb

    (@windleweb)


    I have set up the free version with anticipation to upgrade. But am unable to get the shipping options to populate on my checkout page. It either shows the defined flat rate from woocommerce or says there is nothing available.

    I am using the Live credentials and have the debugger active.

    <?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>2018-04-26T14:21:46</MessageTime>
    			<MessageReference>1234567890123456789012345678901</MessageReference>
    			<SiteID>v62_XkVuLDjRxd</SiteID>
    			<Password>b8nCRzyQ3C</Password>
    		</ServiceHeader>
        </Request>
        <From>
    	  <CountryCode>CA</CountryCode>
    	  <Postalcode>K9K2N4</Postalcode><City>Peterborough</City>
        </From>
        <BkgDetails>
          <PaymentCountryCode>CA</PaymentCountryCode>
          <Date>2018-04-26</Date>
          <ReadyTime>PT10H21M</ReadyTime>
          <DimensionUnit>CM</DimensionUnit>
          <WeightUnit>KG</WeightUnit>
          <Pieces>
    		<Piece><PieceID>1</PieceID><PackageTypeCode>BOX</PackageTypeCode><Height>5</Height><Depth>5</Depth><Width>5</Width><Weight>0.5</Weight></Piece><Piece><PieceID>2</PieceID><PackageTypeCode>BOX</PackageTypeCode><Height>5</Height><Depth>5</Depth><Width>5</Width><Weight>0.5</Weight></Piece>
    	  </Pieces>
    	  <PaymentAccountNumber>971649215971649215</PaymentAccountNumber>
    	  <IsDutiable>N</IsDutiable>
    	  <NetworkTypeCode>AL</NetworkTypeCode>
              
    	  
    	  </BkgDetails>
        <To>
          <CountryCode>CA</CountryCode>
    	  <Postalcode>K9J1P7</Postalcode><City>PETERBOROUGH</City>
        </To>
    	
      </GetQuote>
    </p:DCTRequest>
    DHL RESPONSE: Reveal
    <?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>2018-04-26T16:21:48+01:00</MessageTime>
                <MessageReference>1234567890123456789012345678901</MessageReference>
                <SiteID>v62_XkVuLDjRxd</SiteID>
                <Password>v62_XkVuLDjRxd</Password>
            </ServiceHeader>
            <Status>
                <ActionStatus>Error</ActionStatus>
                <Condition>
                    <ConditionCode>111</ConditionCode>
                    <ConditionData>Error in parsing request XML:Error:
                        Datatype error: In element
                        &apos;PaymentAccountNumber&apos; : Value
                        &apos;971649215971649215&apos; with length
                        &apos;18&apos; exceeds maximum length facet of
                        &apos;12&apos;.. at line 25, column 68</ConditionData>
                </Condition>
            </Status>
        </Response></res:ErrorResponse><!-- ServiceInvocationId:20180426162148_42d7_332d2127-b6e1-4aee-82ed-02129c9d8f48 -->
    dhl debug mode is on - to hide these messages, turn debug mode off in the settings.
    DHL REQUEST: Reveal
    <?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>2018-04-26T14:21:48</MessageTime>
    			<MessageReference>1234567890123456789012345678901</MessageReference>
    			<SiteID>v62_XkVuLDjRxd</SiteID>
    			<Password>b8nCRzyQ3C</Password>
    		</ServiceHeader>
        </Request>
        <From>
    	  <CountryCode>CA</CountryCode>
    	  <Postalcode>K9K2N4</Postalcode><City>Peterborough</City>
        </From>
        <BkgDetails>
          <PaymentCountryCode>CA</PaymentCountryCode>
          <Date>2018-04-26</Date>
          <ReadyTime>PT10H21M</ReadyTime>
          <DimensionUnit>CM</DimensionUnit>
          <WeightUnit>KG</WeightUnit>
          <Pieces>
    		<Piece><PieceID>1</PieceID><PackageTypeCode>BOX</PackageTypeCode><Height>5</Height><Depth>5</Depth><Width>5</Width><Weight>0.5</Weight></Piece><Piece><PieceID>2</PieceID><PackageTypeCode>BOX</PackageTypeCode><Height>5</Height><Depth>5</Depth><Width>5</Width><Weight>0.5</Weight></Piece>
    	  </Pieces>
    	  <PaymentAccountNumber>971649215971649215</PaymentAccountNumber>
    	  <IsDutiable>N</IsDutiable>
    	  <NetworkTypeCode>AL</NetworkTypeCode>
              
    	  
    	  </BkgDetails>
        <To>
          <CountryCode>CA</CountryCode>
    	  <Postalcode>K9J1P7</Postalcode><City>PETERBOROUGH</City>
        </To>
    	
      </GetQuote>
    </p:DCTRequest>
    DHL RESPONSE: Reveal
    <?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>2018-04-26T16:21:50+01:00</MessageTime>
                <MessageReference>1234567890123456789012345678901</MessageReference>
                <SiteID>v62_XkVuLDjRxd</SiteID>
                <Password>v62_XkVuLDjRxd</Password>
            </ServiceHeader>
            <Status>
                <ActionStatus>Error</ActionStatus>
                <Condition>
                    <ConditionCode>111</ConditionCode>
                    <ConditionData>Error in parsing request XML:Error:
                        Datatype error: In element
                        &apos;PaymentAccountNumber&apos; : Value
                        &apos;971649215971649215&apos; with length
                        &apos;18&apos; exceeds maximum length facet of
                        &apos;12&apos;.. at line 25, column 68</ConditionData>
                </Condition>
            </Status>
        </Response></res:ErrorResponse><!-- ServiceInvocationId:20180426162150_f701_580c651f-f9b5-4c89-a91a-54b73c631b0a -->

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Hi,

    Sorry for the delay in response, the error message indicated that you’re using an invalid account number, DHL Express account numbers are usually 9 digits.

    Regards,

Viewing 1 replies (of 1 total)
  • The topic ‘My DHL options are not being displayed’ is closed to new replies.