Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

UPS XML HELP


cmjeter

Recommended Posts

I seem to be getting a timeout error going to UPS. Please look at log and let me know any ideas.

 

------------------------------------------

DATE AND TIME: 2005-12-28 19:45:30

UPS URL: https://wwwcie.ups.com:443/ups.app/xml/TimeInTransit

UPS REQUEST: <?xml version="1.0"?>

<AccessRequest xml:lang="en-US">

<AccessLicenseNumber>****************</AccessLicenseNumber>

<UserId>***************</UserId>

<Password>*************</Password>

</AccessRequest>

<?xml version="1.0"?>

<TimeInTransitRequest xml:lang="en-US">

<Request>

<TransactionReference>

<CustomerContext>Time in Transit</CustomerContext>

<XpciVersion>1.0001</XpciVersion>

</TransactionReference>

<RequestAction>TimeInTransit</RequestAction>

</Request>

<TransitFrom>

<AddressArtifactFormat>

<PoliticalDivision2>North Reading</PoliticalDivision2>

<PoliticalDivision1>MA</PoliticalDivision1>

<CountryCode>US</CountryCode>

<PostcodePrimaryLow>01864</PostcodePrimaryLow>

</AddressArtifactFormat>

</TransitFrom>

<TransitTo>

<AddressArtifactFormat>

<PoliticalDivision2>West Palm Beach</PoliticalDivision2>

<PoliticalDivision1>FL</PoliticalDivision1>

<CountryCode>US</CountryCode>

<PostcodePrimaryLow>33415</PostcodePrimaryLow>

<PostcodePrimaryHigh>33415</PostcodePrimaryHigh>

</AddressArtifactFormat>

</TransitTo>

<PickupDate>20051229</PickupDate>

<ShipmentWeight>

<UnitOfMeasurement>

<Code>LBS</Code>

</UnitOfMeasurement>

<Weight>10</Weight>

</ShipmentWeight>

<InvoiceLineTotal>

<CurrencyCode>USD</CurrencyCode>

<MonetaryValue>100</MonetaryValue>

</InvoiceLineTotal>

</TimeInTransitRequest>

 

Error from cURL: Error [28]: connect() timed out!

UPS RESPONSE:

------------------------------------------

Time in Transit: 0

------------------------------------------

DATE AND TIME: 2005-12-28 19:46:30

UPS URL: https://wwwcie.ups.com:443/ups.app/xml/Rate

UPS REQUEST: <?xml version="1.0"?>

<AccessRequest xml:lang="en-US">

<AccessLicenseNumber>*******************</AccessLicenseNumber>

<UserId>**********</UserId>

<Password>*********</Password>

</AccessRequest>

<?xml version="1.0"?>

<RatingServiceSelectionRequest xml:lang="en-US">

<Request>

<TransactionReference>

<CustomerContext>Rating and Service</CustomerContext>

<XpciVersion>1.0001</XpciVersion>

</TransactionReference>

<RequestAction>Rate</RequestAction>

<RequestOption>shop</RequestOption>

</Request>

<PickupType>

<Code>01</Code>

</PickupType>

<Shipment>

<Shipper>

<Address>

<City>North Reading</City>

<StateProvinceCode>MA</StateProvinceCode>

<CountryCode>US</CountryCode>

<PostalCode>01864</PostalCode>

</Address>

</Shipper>

<ShipTo>

<Address>

<City>West Palm Beach</City>

<StateProvinceCode>FL</StateProvinceCode>

<CountryCode>US</CountryCode>

<PostalCode>33415</PostalCode>

</Address>

</ShipTo>

<Package>

<PackagingType>

<Code>02</Code>

</PackagingType>

<PackageWeight>

<UnitOfMeasurement>

<Code>LBS</Code>

</UnitOfMeasurement>

<Weight>7</Weight>

</PackageWeight>

<PackageServiceOptions>

<InsuredValue>

<CurrencyCode></CurrencyCode>

<MonetaryValue>139</MonetaryValue>

</InsuredValue>

</PackageServiceOptions>

</Package>

</Shipment>

<CustomerClassification>

<Code>01</Code>

</CustomerClassification>

</RatingServiceSelectionRequest>

 

Thanks

Link to comment
Share on other sites

I seem to be getting a timeout error going to UPS. Please look at log and let me know any ideas.
Might be a good idea to not use the test server, but the production server. This is a bug in includes/modules/shipping/upsxml.php (somewhere around line 56):

$this->host = ((MODULE_SHIPPING_UPSXML_RATES_TEST_MODE == 'Test') ? 'wwwcie.ups.com' : 'wwwcie.ups.com');

but it should be:

$this->host = ((MODULE_SHIPPING_UPSXML_RATES_TEST_MODE == 'Test') ? 'wwwcie.ups.com' : 'www.ups.com');

Link to comment
Share on other sites

Might be a good idea to not use the test server, but the production server. This is a bug in includes/modules/shipping/upsxml.php (somewhere around line 56):

$this->host = ((MODULE_SHIPPING_UPSXML_RATES_TEST_MODE == 'Test') ? 'wwwcie.ups.com' : 'wwwcie.ups.com');

but it should be:

$this->host = ((MODULE_SHIPPING_UPSXML_RATES_TEST_MODE == 'Test') ? 'wwwcie.ups.com' : 'www.ups.com');

 

I am getting the same error. I have tried changing that line as well. Any ideas?

 

------------------------------------------
DATE AND TIME: 2005-12-29 06:24:27
UPS URL: https://www.ups.com:443/ups.app/xml/TimeInTransit
UPS REQUEST: <?xml version="1.0"?>
<AccessRequest xml:lang="en-US">
  <AccessLicenseNumber>XML Access Number</AccessLicenseNumber>
  <UserId>UserID</UserId>
  <Password>PAss</Password>
</AccessRequest>
<?xml version="1.0"?>
<TimeInTransitRequest xml:lang="en-US">
  <Request>
   <TransactionReference>
	   <CustomerContext>Time in Transit</CustomerContext>
	   <XpciVersion>1.0001</XpciVersion>
   </TransactionReference>
   <RequestAction>TimeInTransit</RequestAction>
  </Request>
  <TransitFrom>
   <AddressArtifactFormat>
	   <PoliticalDivision2>Webster</PoliticalDivision2>
	   <PoliticalDivision1>NY</PoliticalDivision1>
	   <CountryCode>US</CountryCode>
	   <PostcodePrimaryLow>14580</PostcodePrimaryLow>
   </AddressArtifactFormat>
  </TransitFrom>
  <TransitTo>
   <AddressArtifactFormat>
	   <PoliticalDivision2>Lawrenceville</PoliticalDivision2>
	   <PoliticalDivision1>NJ</PoliticalDivision1>
	   <CountryCode>US</CountryCode>
	   <PostcodePrimaryLow>08648</PostcodePrimaryLow>
	   <PostcodePrimaryHigh>08648</PostcodePrimaryHigh>
   </AddressArtifactFormat>
  </TransitTo>
  <PickupDate>20051231</PickupDate>
  <ShipmentWeight>
   <UnitOfMeasurement>
	   <Code>LBS</Code>
   </UnitOfMeasurement>
   <Weight>10</Weight>
  </ShipmentWeight>
  <InvoiceLineTotal>
   <CurrencyCode>USD</CurrencyCode>
   <MonetaryValue>100</MonetaryValue>
  </InvoiceLineTotal>
</TimeInTransitRequest>

Error from cURL: Error [28]: connect() timed out!
UPS RESPONSE:

Edited by mombrea
Link to comment
Share on other sites

I am getting the same error. I have tried changing that line as well. Any ideas?

 

Error from cURL: Error [28]: connect() timed out!
UPS RESPONSE:

Strange, just tested getting quotes from UPS, no problem on the test server, no problem on the production server. Still you get a connect error (no response from UPS in 60 seconds). Try it more often during the day I would say, perhaps it is just a glitch.
Link to comment
Share on other sites

Strange, just tested getting quotes from UPS, no problem on the test server, no problem on the production server. Still you get a connect error (no response from UPS in 60 seconds). Try it more often during the day I would say, perhaps it is just a glitch.

 

I tried all day yesterday as well. Is it possible that my web host is blocking the response? I also received a Curl Error [7] once while trying another time. I made sure that they had curl (libcurl/7.10.6 OpenSSL/0.9.7a ipv6 zlib/1.1.4) I'm using GoDaddy.com as a host. Is there anything else i should try? I've also tried uncommenting the lines around 643 as suggested in other posts but no change. I appreciate the help, this is driving me crazy.

I'm using $Id: upsxml.php,v 1.1.4 2004/12/19 13:30:00 sgo Exp $

I also tried with 1.1.3. Thanks for any suggestions!

Link to comment
Share on other sites

  • 3 weeks later...

I figure out the cURL: Error [28]: connect() timed out!

 

If you use GoDaddy as your host, you must add the following lines of code to the curl command section in /catalog/includes/modules/shipping/upsxml.php

 

curl_setopt ($ch, CURLOPT_HTTPPROXYTUNNEL, TRUE);
  curl_setopt ($ch, CURLOPT_PROXYTYPE, CURLPROXY_HTTP);
  curl_setopt ($ch, CURLOPT_PROXY, "http://64.202.165.130:3128");
  curl_setopt ($ch, CURLOPT_SSL_VERIFYPEER, FALSE);

 

good luck!

Link to comment
Share on other sites

  • 5 weeks later...
I figure out the cURL: Error [28]: connect() timed out!

 

If you use GoDaddy as your host, you must add the following lines of code to the curl command section in /catalog/includes/modules/shipping/upsxml.php

 

curl_setopt ($ch, CURLOPT_HTTPPROXYTUNNEL, TRUE);
  curl_setopt ($ch, CURLOPT_PROXYTYPE, CURLPROXY_HTTP);
  curl_setopt ($ch, CURLOPT_PROXY, "http://64.202.165.130:3128");
  curl_setopt ($ch, CURLOPT_SSL_VERIFYPEER, FALSE);

 

good luck!

 

 

 

Hey guys, I am having the same problem (error 28) with godaddy, I see your solution, where does it go in the upsxml file. Thanks for your help.

 

Sawyer

Link to comment
Share on other sites

  • 1 year later...

Hello Friends,

I need your help!

I have installed module UPS XML 1.2.8.1 version

My hosting is in GoDaddy.com

I have problems with this module and I read that they said something of GoDaddy.com, I have try it some of the things that I read but I have not had successful results.

In checkout_shipping.phpthe error is:

2013 - Lost connection to MySQL server during query

select languages_id, name, code, image, directory from languages order by sort_order

[TEP STOP]

2006 - MySQL server has gone away

select count(*) as total from sessions where sesskey = 'a71e2b9c9cd16ce389b7978d2471ae4b'

[TEP STOP]


Warning: Unknown(): A session is active. You cannot change the session module's ini settings at this time. in Unknown on line 0

Also, I have received following emails

UPSXML Rates Error: 

	   Rating and Service
	   1.0001

   0
   An unknown error occured while attempting to contact the UPS gateway
  : 

	   Rating and Service
	   1.0001

   0
   An unknown error occured while attempting to contact the UPS gateway
experienced by customer with id 18 on 2007-06-05 08:02:02

Error from cURL: Error [28]: connect() timed out! experienced by customer with id 18 on 2007-06-05 08:02:14

In some cases the error is:

Error from cURL: Error [7]:  experienced by customer with id 18 on 2007-06-05 07:12:14

Somebody can help me? not that to do...

Thank you

Big Y

Link to comment
Share on other sites

  • 3 months later...
  • 2 weeks later...

I'm having the exact same issues with my store. I have added the suggested GoDaddy fix and read all the information I can get my hands on. I am getting the same error log emails above as well as a 2013 Lost Connection error. Any help is much appreciated!

Link to comment
Share on other sites

I'm having the exact same issues with my store. I have added the suggested GoDaddy fix

Perhaps ask GoDaddy about it? It wouldn't be the first time they changed the proxy settings. I recall the one mentioned above was different from an earlier version. Might be diffferent from one server to another...

Link to comment
Share on other sites

  • 3 years later...

Hi

I know this is an old post but I am having the same problem and couldn't find any solution anywhere. I installed the UPSXML_v1_3_9 few months ago. it was working when I tested it and now I am getting this error messages:

UPSXML Rates Error: : experienced by customer

and this one:

Error from cURL: Error [7]: couldn't connect to host experienced by customer with id 3 on 2011-03-27 17:16:22

and this:

Error from cURL: Error [28]: connect() timed out! experienced by customer with id 3 on 2011-03-27 16:29:59

 

This error happens when you try to checkout. It just doesn't go through.

 

I need help. PLEASE

Here is my website: http://chez-mehnoush.com

 

Thank you in advance

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...