Solved

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

Posted on 2004-09-02
11
142 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
[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
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
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

Independent Software Vendors: 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!

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…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

733 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