Solved

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

Posted on 2004-09-02
11
139 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
ID: 11961248
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
ID: 11961341
Thats fine, But I would like to use thru VB.
0
 
LVL 8

Expert Comment

by:Wojciech Duda
ID: 11961398
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
ID: 11961583
check this link

for reading an xml file

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

Author Comment

by:sonashish
ID: 12179190
I have solove this probem with my own efforts. I dont think that anyone eligible for reward point.
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 8

Expert Comment

by:Wojciech Duda
ID: 12179261
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
ID: 12179385
Please close this question,
0
 
LVL 8

Expert Comment

by:Wojciech Duda
ID: 12181020
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
ID: 12200645
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: 12220271
Question answered by asker or dialog valuable.
Closed, 500 points refunded.
ee_ai_construct (replacement part #xm34)
Community Support Admin
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
VBA Excel: fill / replace values based on a config sheet. 5 61
Help in WHSCRIPT 9 47
Put text in a picture ASP.NET C# 2 50
Best way to parse out a json string in VB6? 10 112
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
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 utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

920 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

14 Experts available now in Live!

Get 1:1 Help Now