?
Solved

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

Posted on 2004-09-02
7
Medium Priority
?
428 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Get real performance insights from real users

Key features:
- Total Pages Views and Load times
- Top Pages Viewed and Load Times
- Real Time Site Page Build Performance
- Users’ Browser and Platform Performance
- Geographic User Breakdown
- And more

 
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

Learn how to optimize MySQL for your business need

With the increasing importance of apps & networks in both business & personal interconnections, perfor. has become one of the key metrics of successful communication. This ebook is a hands-on business-case-driven guide to understanding MySQL query parameter tuning & database perf

Question has a verified solution.

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

In this short web based tutorial, I wanted to show users how they can still use the powers of FrontPage in conjunction with Expression Web 3.  Even though Microsoft eliminated the use of Web components, we can still use them with FrontPage and edit …
Objective of This Article In 1990’s, when I was a budding software professional, I had a lot of confusion about which stream or technology, I had to choose to build my career. In those days, I had lot of confusion like whether to choose System so…
The purpose of this video is to demonstrate how to automatically show related posts at the bottom of a blog post in WordPress. This will be demonstrated using a Windows 8 PC. Plugin “Yet Another Related Posts Plugin” will be used. Go to your…
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…
Suggested Courses

770 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