Jump to content
Sign in to follow this  
Dangeo1

UPS XML Contribution (debugging)

Recommended Posts

I've got a problem with my UPS rates and I'm trying to get UPS to help me solve them.

 

Basically, their XML rates are lower than the rates actually charged. I'm a small store and take my UPS deliveries to the retail outlet for shipment. So, I sent them an e-mail complaining about it.

 

We've checked all the "usual" suspects and now they want a capture of the XML string that was sent requesting the rate, and the response received. (along with other information).

 

It'll be easy enough to re-create the order, but how can I go about grabbing the XML data stream?

Share this post


Link to post
Share on other sites

from the readme:

 

If you fail to get quotes, an error message will usually tell you why. Make sure your

origin information is correct, and use the proper two-letter codes for your country and

state/province.

 

If you STILL don't get any quotes, you can enable logging which will record the request/

response of the transactions. Look for and uncomment the line in upsxml.php:

 

//$this->logfile = '/tmp/upsxml.log';

 

Change the location of the log to something you can read, and give the shopping cart a whirl.

Your request/response will eventually show up there.

 

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

Disclaimer:

 

This disclaimer disclaims the previous disclaimer which disclaims:

 

This revision is based on ups.php v.1.53, which employs the UPS cgi method that has been

deprecated for over a year and although it appears to remain functional is no longer officially

supported by UPS. The currently supported UPS API requires XML requests through a secure socket

layer, for which there is not yet an osC implementation.

 

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

 

Also on the contributions, it states to use contributions at your own risk.


John Oligario

 

Knowledge Base Contributions

Share this post


Link to post
Share on other sites
from the readme:

 

If you fail to get quotes, an error message will usually tell you why. Make sure your

origin information is correct, and use the proper two-letter codes for your country and

state/province.

 

If you STILL don't get any quotes, you can enable logging which will record the request/

response of the transactions. Look for and uncomment the line in upsxml.php:

 

//$this->logfile = '/tmp/upsxml.log';

 

Change the location of the log to something you can read, and give the shopping cart a whirl.

Your request/response will eventually show up there.

 

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

Disclaimer:

 

This disclaimer disclaims the previous disclaimer which disclaims:

 

This revision is based on ups.php v.1.53, which employs the UPS cgi method that has been

deprecated for over a year and although it appears to remain functional is no longer officially

supported by UPS. The currently supported UPS API requires XML requests through a secure socket

layer, for which there is not yet an osC implementation.

 

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

 

Also on the contributions, it states to use contributions at your own risk.

Thanks!

 

Re-created order contents/address, and made a /tmp/upsxml.log file.

 

It's not working yet, but I haven't given up.

Share this post


Link to post
Share on other sites

I'm having trouble with the ups xml module.

I fixed the spelling error but still am unable to connect to the ups server.

 

I would like to check the output log but don't know how to set this up ?!? :(

I disabled the '//' but nothing gets saved ?!?

 

Anyone knows what might be wrong ?

 

Thanks

Share this post


Link to post
Share on other sites

I finally managed to start the logging.. didn't know the contrib had to be in production mode.

 

I still don't get any reply from UPS server though.. it remains dead ?!?

 

HELP! :blink:

Share this post


Link to post
Share on other sites

Thanks !!

 

I finally found out that my hosting package has libcurl installed before SSL :(

 

Thanks again for your help

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×