Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

Basically, after moving our site off of a Linux based ISP server the last problem I'm having now is instead of returning real time UPS XML shipping quotes, it's instead returning this error:

 

Rating and Service 1.0001 0 An unknown error occured while attempting to contact the UPS gateway

 

I've read about the read/execute rights on CMD.exe for IIS. That didn't fix anything and I've also tried a few versions of the UPS XML module and I always get the same error. I enabled cURL support and it shows up in my phpinfo like so:

 

CURL support enabled

CURL Information libcurl/7.11.2 OpenSSL/0.9.7g zlib/1.1.4

 

So do I need to actually install cURL for this to work somehow or since i've enabled it in PHP is it then working? Secondly, does anyone have some suggestions or tips on what I can do? I've tried setting this to 1 or 0 and it doesn't help anything.

 

$this->use_exec = '1';

 

 

Regards,

 

Tyler

 

p.s.

Here is my setup:

 

Windows Server 2003 IIS 6.0

PHP 4.4.0

Posted
Basically, after moving our site off of a Linux based ISP server the last problem I'm having now is instead of returning real time UPS XML shipping quotes, it's instead returning this error:

 

Rating and Service 1.0001 0 An unknown error occured while attempting to contact the UPS gateway

Perhaps you can try a few things more (mentioned in the UPS XML thread in the contribution support). This post is about some info on Windows <-> cURL on the internet and the other one has more to do with a general error regarding certificates. Logging might be a good idea (see the upsxml.php file) to learn a bit more?
Posted

Alright thx Jan I'll see what I can come up with. BTW I just wanted to clarify that if I have cURL showing up like I do in phpinfo then I've got cURL, I dont need to install any stand alone cURL program or anything extra for cURL right?

Posted (edited)

Okay I got my log file :)

 

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

DATE AND TIME: 2005-11-01 16:03:02

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

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

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

<AccessLicenseNumber>xxxxxxxxxxxxxxxx</AccessLicenseNumber>

<UserId>xxxxxxxxxx</UserId>

<Password>xxxxxxxx</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>Corvallis</PoliticalDivision2>

<PoliticalDivision1>OR</PoliticalDivision1>

<CountryCode>US</CountryCode>

<PostcodePrimaryLow>97333</PostcodePrimaryLow>

</AddressArtifactFormat>

</TransitFrom>

<TransitTo>

<AddressArtifactFormat>

<PoliticalDivision2>Sweet Home</PoliticalDivision2>

<PoliticalDivision1>OR</PoliticalDivision1>

<CountryCode>US</CountryCode>

<PostcodePrimaryLow>97386</PostcodePrimaryLow>

<PostcodePrimaryHigh>97386</PostcodePrimaryHigh>

</AddressArtifactFormat>

</TransitTo>

<PickupDate>20051102</PickupDate>

<ShipmentWeight>

<UnitOfMeasurement>

<Code>LBS</Code>

</UnitOfMeasurement>

<Weight>10</Weight>

</ShipmentWeight>

<InvoiceLineTotal>

<CurrencyCode>USD</CurrencyCode>

<MonetaryValue>100</MonetaryValue>

</InvoiceLineTotal>

</TimeInTransitRequest>

 

Error from cURL: Error [60]: SSL certificate problem, verify that the CA cert is OK

UPS RESPONSE:

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

Time in Transit: 0

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

DATE AND TIME: 2005-11-01 16:03:02

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

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

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

<AccessLicenseNumber>xxxxxxxxxxxxxxxx</AccessLicenseNumber>

<UserId>xxxxxxxxxx</UserId>

<Password>xxxxxxxx</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>Corvallis</City>

<StateProvinceCode>OR</StateProvinceCode>

<CountryCode>US</CountryCode>

<PostalCode>97333</PostalCode>

</Address>

</Shipper>

<ShipTo>

<Address>

<City>Sweet Home</City>

<StateProvinceCode>OR</StateProvinceCode>

<CountryCode>US</CountryCode>

<PostalCode>97386</PostalCode>

</Address>

</ShipTo>

<Package>

<PackagingType>

<Code>02</Code>

</PackagingType>

<PackageWeight>

<UnitOfMeasurement>

<Code>LBS</Code>

</UnitOfMeasurement>

<Weight>4.2</Weight>

</PackageWeight>

</Package>

</Shipment>

<CustomerClassification>

<Code>01</Code>

</CustomerClassification>

</RatingServiceSelectionRequest>

 

Error from cURL: Error [60]: SSL certificate problem, verify that the CA cert is OK

UPS RESPONSE:

 

 

 

Oh I remember this error somewhere on these forums....

 

problem solved :) Yay I get real time quotes now!!

 

JAN RULES!!JAN RULES!!JAN RULES!!JAN RULES!!JAN RULES!!JAN RULES!!JAN RULES!!JAN RULES!!JAN RULES!!JAN RULES!!JAN RULES!!JAN RULES!!JAN RULES!!JAN RULES!!JAN RULES!!JAN RULES!!JAN RULES!!JAN RULES!!JAN RULES!!JAN RULES!!JAN RULES!!JAN RULES!!JAN RULES!!JAN RULES!!JAN RULES!!JAN RULES!!

Edited by Mibble
Posted
...

problem solved :) Yay I get real time quotes now!!

 

JAN RULES!!JAN RULES!!JAN RULES!!JAN RULES!!JAN RULES!!JAN RULES!!JAN RULES!!JAN RULES!!JAN RULES!!JAN RULES!!JAN RULES!!JAN RULES!!JAN RULES!!JAN RULES!!JAN RULES!!JAN RULES!!JAN RULES!!JAN RULES!!JAN RULES!!JAN RULES!!JAN RULES!!JAN RULES!!JAN RULES!!JAN RULES!!JAN RULES!!JAN RULES!!

 

So, what was it?

Posted

I moved php_curl.dll into Windows\system32

 

I edited out the line with regards to the Error [60]: SSL certificate problem via JanZ links (thx Jan =)

 

So now its returning quotes but they are about 40 cents to $4.00 (weird amounts) off depending on whether or not you are choosing ground or next day air when compared to my UPS Worldship prices. Additionally It returns an origin error if I try to ship anywhere outside my state.

 

I'll try upgrading to the latest module and see if it fixes anything.

 

regards,

 

Tyler

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

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...