Solved

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

Posted on 2004-09-02
11
138 Views
Last Modified: 2010-05-02
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

{forced line breaks have been applied to the code below - ee_ai_construct, cs admin}

https://www.ups.com/ups.app/xml/Rate?<?xml version="1.0"?><AccessRequest xml:lang="en-US">
<AccessLicenseNumber>BBBB5E545E473B44</AccessLicenseNumber><UserId>seanoday</UserId><Password>highland</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
0
Comment
Question by:sonashish
11 Comments
 
LVL 8

Expert Comment

by:Wojciech Duda
Comment Utility
Perhaps asking in the Web developement TA would be a good idea... There are the guys who know such stuff.
0
 
LVL 2

Author Comment

by:sonashish
Comment Utility
Thats fine, But I would like to use thru VB.
0
 
LVL 8

Expert Comment

by:Wojciech Duda
Comment Utility
Sure but the URL is constructed wrong - and the specialists for that are over at the Web Developement TA not here.
0
 
LVL 10

Expert Comment

by:anv
Comment Utility
check this link

for reading an xml file

http://www.freevbcode.com/source/ReadXMLFile.zip
0
 
LVL 2

Author Comment

by:sonashish
Comment Utility
I have solove this probem with my own efforts. I dont think that anyone eligible for reward point.
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 8

Expert Comment

by:Wojciech Duda
Comment Utility
Get your points refunded by posting in Community Support:

http://www.experts-exchange.com/Community_Support/

How to get points refunded when you answered yourself:

http://www.experts-exchange.com/Programming/Programming_Languages/Visual_Basic/help.jsp#hi70
0
 
LVL 2

Author Comment

by:sonashish
Comment Utility
Please close this question,
0
 
LVL 8

Expert Comment

by:Wojciech Duda
Comment Utility
I cannot, you have to make a question in Community Support with a link to this one to get your points refunded.

Ask the question here:

http://www.experts-exchange.com/Community_Support/

It will not cost you any points as questions in CS are worth 0 points.
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, 500 points refunded.
ee_ai_construct (replacement part #xm34)
Community Support Admin
0

Featured Post

Free Trending Threat Insights Every Day

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.

Join & Write a Comment

This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

763 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

13 Experts available now in Live!

Get 1:1 Help Now