Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2004-09-02
11
Medium Priority
?
145 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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
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…
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…
Suggested Courses

670 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