Error working with UPS/FedEx Shipping API..
Hello there..
Anyone out there have any idea about working with Shipping APIs of UPS/FedEx?
Well, I have created my own module of generating the Shipping Rates by using the UPS/FedEx Shipping APIs ( sending request xml to their server & getting ship rates contained in the response xml ).
Now, I am having problems with sending the request xml to their server. So, if anyone has any idea about this then please help me to solve my problem..
Reply ASAP...
Thanks..
UPS rates response help needed.
Quote:
Originally Posted by
Kabiraa
Hello there..
Anyone out there have any idea about working with Shipping APIs of UPS/FedEx?
Well, I have created my own module of generating the Shipping Rates by using the UPS/FedEx Shipping APIs ( sending request xml to their server & getting ship rates contained in the response xml ).
Now, I am having problems with sending the request xml to their server. So, if anyone has any idea about this then please help me to solve my problem..
Reply ASAP...
Thanks..
Hello Kabiraa,
Looks like you have had some success in finding the UPS response rates back, I'm trying to do the same- I have a Java program that creates an xml document and posts it to UPS servers, however i do not have much luck on the returns back. I'd be interested to know how you are establishing the connection to the UPS servers? In other words, How does your access request section of the request looks like? I have included mine, please suggest if you have any suggestions.
thx.
public static Document accessRequest() throws Exception {
Calendar cal = Calendar.getInstance();
Document document = DocumentHelper.createDocument();
Element root = document.addElement("AccessRequest")
.addNamespace("xsi", "http://www.w3.org/2001/XMLSchema-instance")
.addAttribute("xsi:noNamespaceSchemaLocation", "AccessRequest.xsd");
//***********************Access Request******************
Element accessRequest = root.addElement("AccessRequest");
Element accessLicenseNumber = accessRequest.addElement("AccessLicenseNumber").ad dText("9C522122732149BC");
Element userId = accessRequest.addElement("UserId").addText("xxxxxx x");
Element password = accessRequest.addElement("Password").addText("xxxx xxxx");
//***********************Access Request******************
return document;
}