Solved

How to get Shipping Cost (Ratequote) from UPS.com

Posted on 2004-09-02
7
418 Views
Last Modified: 2011-10-03
I like to to create a small application for getting shipping rate/quote from UPS. I got support document from UPS and tried but not able to use it, As I am new to XML. I created xml string and passit to url, but did not get result. Here is url samples

https://www.ups.com/ups.app/xml/Rate?
<?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>Bare Bones Rate Request</CustomerContext><XpciVersion>1.0001</XpciVersion></TransactionReference>
<RequestAction>Rate</RequestAction><RequestOption>Rate</RequestOption></Request><PickupType>
<Code>01</Code></PickupType><Shipment><Shipper><Address><PostalCode>44129</PostalCode>
<CountryCode>US</CountryCode></Address></Shipper><ShipTo><Address><PostalCode>44129</PostalCode>
<CountryCode>US</CountryCode></Address></ShipTo><ShipFrom><Address><PostalCode>32779</PostalCode>
<CountryCode>US</CountryCode></Address></ShipFrom><Service><Code>01</Code></Service><Package>
<PackagingType><Code>02</Code></PackagingType><Dimensions><UnitOfMeasurement><Code>IN</Code>
</UnitOfMeasurement><Length>20</Length><Width>20</Width><Height>20</Height></Dimensions>
<PackageWeight><UnitOfMeasurement><Code>LBS</Code></UnitOfMeasurement><Weight>23</Weight>
</PackageWeight></Package></Shipment></RatingServiceSelectionRequest>

I dont know whats wrong I am doing, can anyone help in this matter as well read XML response from UPS. I am stuck here. However I have successfully connected ABF/ROADWAY/FedexFreight and MyYello.

Looking forward to response from GURU's. This solution I am specially looking in ASP only.
0
Comment
Question by:sonashish
  • 3
  • 2
7 Comments
 
LVL 31

Expert Comment

by:seanpowell
ID: 11973024
This is a similar question that should solve your problem for you...
http://www.experts-exchange.com/Web/Web_Languages/ASP/Q_20581574.html

Note - I've removed your License Number, Username and Password from your post above, and also added some line breaks to keep the page here from scrolling :-)

Thanks,
Sean
0
 
LVL 2

Author Comment

by:sonashish
ID: 11973278
Sean

Thanks for the information. I think I should give you 100 points for this. Becuase I already did this excercise, except in suggested url give some focus me for how to read XML file or you can say xml response. But After I faced one more problem, that whenever I run my application in under Local Network it wont run, probably we are using Proxy services using 8080 port, but if I runt same application out of the of network machine, it works perfectly. Is there any way to handle this situtation?

Again Thanks for the help.

Ashish
0
 
LVL 31

Expert Comment

by:seanpowell
ID: 11973460
Hi Ashish,

Please forgive me as I have some difficulty in understanding your comment. I assume (believe) it's because Microsoft.XMLHTTP needs to be run from a server, and so won't function locally - but that is not my area of expertise, so I may be mistaken. You may also want to post a question in one of the Network or Web Server TA's for help with this ...

Thanks,
Sean
0
Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

 
LVL 2

Author Comment

by:sonashish
ID: 12179214
I have solver this problem with my own efforts. Dont think anyone will be awarded by reward point. I like to close this issue.
0
 
LVL 2

Author Comment

by:sonashish
ID: 12200668
Actually UPS is not allowing get rate quote for unregistered user in XML format, So I registered my self as registered user and test same url. It is working fine.
0
 

Accepted Solution

by:
ee_ai_construct earned 0 total points
ID: 12220289
Question answered by asker or dialog valuable.
Closed, 250 points refunded.
ee_ai_construct (replacement part #xm34)
Community Support Admin
0

Featured Post

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When deciding to adopt any help desk solutions many factors should be explored before taking decisions. This will change from business to another but in general there are some kind of rule of thumb. Here are some quick tips: Do we need only ticket…
This guide will walk you through the essential considerations and tech stack for building scalable websites. Know how to grow your business the smart way!
The purpose of this video is to demonstrate how to properly insert a Vimeo Video into a WordPress site or Blog. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp…
The purpose of this video is to demonstrate how to integrate Mailchimp with Facebook. This will be demonstrated using a Windows 8 PC. Mailchimp and Facebook will be used. Log into your Mailchimp account. : Click on your name. Go to Account Setti…

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question