Solved

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

Posted on 2004-09-02
7
412 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 2

Author Comment

by:sonashish
Comment Utility
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
Comment Utility
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
Comment Utility
Question answered by asker or dialog valuable.
Closed, 250 points refunded.
ee_ai_construct (replacement part #xm34)
Community Support Admin
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

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 …
Introduction In this tutorial, I'll explain how to create an animated progress meter in a wireframe prototype developed using Axure RP 7.0 - a leading prototyping tool for designing web sites and software. (For more information about Axure and gett…
The purpose of this video is to demonstrate how to add AdSense Ads to a WordPress Website, and how to set up WordPress to automatically place Ads in Sidebars. This will be demonstrated using a Windows 8 PC. Log into your AdSense account. : Cli…
The purpose of this video is to demonstrate how to integrate Mailchimp with WordPress, by placing a Mailchimp signup form on a WordPress Page or Post. This will be demonstrated using a Windows 8 PC. Mailchimp will be used. Log into your Mailchi…

771 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now