Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2004-09-02
11
Medium Priority
?
147 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
10 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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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
 
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

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

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

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
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…
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…
Suggested Courses

824 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