Skip to content

UPS shipment API results empty response #17

Description

@IlyasMuhammed

Hi,
I am having an issue with ShipAccept service response.

What steps will reproduce the problem?

  1. buildRequestXML()
  2. responseArray()
  3. upsShip (class of ups-php)

What is the expected output? What do you see instead?
the result was blank array

What version of the product are you using? On what operating system?
UPS-PHP-v0.2

Please provide any additional information below.
I'm implementing UPS shipment in codeignitor.

What is the problem?
service call return an empty response.


<?xml version="1.0"?>
<AccessRequest xml:lang="en-US">
	<AccessLicenseNumber>..........</AccessLicenseNumber>
	<UserId>......</UserId>
	<Password>.........</Password>
</AccessRequest> 
<?xml version="1.0" encoding="utf-8"?>
<ShipmentConfirmRequest>
  <Request>
    <TransactionReference>
      <CustomerContext>ups-php</CustomerContext>
      <XpciVersion>1.0001</XpciVersion>
    </TransactionReference>
    <RequestAction>ShipConfirm</RequestAction>
    <RequestOption>nonvalidate</RequestOption>
  </Request>
  <Shipment>
    <Shipper>
      <Name>Joes Garage</Name>
      <AttentionName>Mark Sanborn</AttentionName>
      <ShipperNumber>0792Y7</ShipperNumber>
      <Address>
        <AddressLine1>10000 Preston Rd</AddressLine1>
        <City>Whitehall</City>
        <StateProvinceCode>MT</StateProvinceCode>
        <PostalCode>59759</PostalCode>
      </Address>
    </Shipper>
    <ShipTo>
      <CompanyName>Pep Boys</CompanyName>
      <AttentionName>Manny</AttentionName>
      <PhoneNumber>
        <StructuredPhoneNumber>
          <PhoneDialPlanNumber>410</PhoneDialPlanNumber>
          <PhoneLineNumber>5551212</PhoneLineNumber>
          <PhoneExtension>1234</PhoneExtension>
        </StructuredPhoneNumber>
      </PhoneNumber>
      <Address>
        <AddressLine1>201 York Rd</AddressLine1>
        <City>Timonium</City>
        <StateProvinceCode>MD</StateProvinceCode>
        <CountryCode>US</CountryCode>
        <PostalCode>21093</PostalCode>
        <ResidentialAddress></ResidentialAddress>
      </Address>
    </ShipTo>
    <Service>
      <Code>03</Code>
      <Description>UPS Ground</Description>
    </Service>
    <PaymentInformation>
      <Prepaid>
        <BillShipper>
          <CreditCard>
            <Type>06</Type>
            <Number>4111111111111111</Number>
            <ExpirationDate>011909</ExpirationDate>
          </CreditCard>
        </BillShipper>
      </Prepaid>
    </PaymentInformation>
    <ShipmentServiceOptions>
      <OnCallAir>
        <PickupDetails>
          <PickupDate>20090115</PickupDate>
          <EarliestTimeReady>0945</EarliestTimeReady>
          <LatestTimeReady>1445</LatestTimeReady>
          <ContactInfo>
            <Name>JaneSmith</Name>
            <PhoneNumber>9725551234</PhoneNumber>
          </ContactInfo>
        </PickupDetails>
      </OnCallAir>
    </ShipmentServiceOptions>
    <Package>
      <PackagingType>
        <Code>02</Code>
      </PackagingType>
      <Dimensions>
        <UnitOfMeasurement>
          <Code>IN</Code>
        </UnitOfMeasurement>
        <Length>22</Length>
        <Width>20</Width>
        <Height>18</Height>
      </Dimensions>
      <PackageWeight>
        <Weight>14.1</Weight>
      </PackageWeight>
      <ReferenceNumber>
        <Code>02</Code>
        <Value>1234567</Value>
      </ReferenceNumber>
      <PackageServiceOptions>
        <InsuredValue>
          <CurrencyCode>USD</CurrencyCode>
          <MonetaryValue>149.99</MonetaryValue>
        </InsuredValue>
      </PackageServiceOptions>
    </Package>
  </Shipment>
  <LabelSpecification>
    <LabelPrintMethod>
      <Code>GIF</Code>
    </LabelPrintMethod>
    <HTTPUserAgent>Mozilla/4.5</HTTPUserAgent>
    <LabelImageFormat>
      <Code>GIF</Code>
    </LabelImageFormat>
  </LabelSpecification>
</ShipmentConfirmRequest>

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions