-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 you will see various handleUpsxxxxxxxxResponse() they handle what is sent by UPS as a response to the XML you sent. this information is stored, if there are no errors.
if an error is send from UPS then it is calls UpsServices.handleErrors(responseElement, errorList); if other errors happen during the reading and comparing of data then return ServiceUtil.returnSuccess(successString.toString()); } else { errorList.add(0, "The UPS ShipmentConfirm failed"); return ServiceUtil.returnError(errorList); } Shipping type calls are from the facilities, so if successful you get an image to print. Note: you should not be hard coding, but using the ecommerce or Order entry to create an order and then do a quickship. from the UI. this takes care of any data, any of the shipping modules need. bsn.mur...@gmail.com sent the following on 1/22/2009 2:55 PM: > that means the automatically built xml with the data is send to ups site for > the requested service (tracking or rate enquiry etc).Now the ups will return > some data may be the status ... which is to be received by the sender and > has to display it on the page... now for receiving the data from ups... > whether i have to use the xml document provided by the UPS . which is > downloaded from ups by getting the developers key and access key.. > BJ Freeman wrote: > > before line 273 the method is gathering info from the entities. > > line 273 creates the document > Document shipmentConfirmRequestDoc = > UtilXml.makeEmptyXmlDocument("ShipmentConfirmRequest"); > from there the Xml is built to send to UPS. > the addChildElement and addChildElementvalue creates a xml string with > the data passed down thru the Call. > this can be static info like > Element labelImageFormatElement = > UtilXml.addChildElement(labelSpecificationElement, "LabelImageFormat", > shipmentConfirmRequestDoc); > UtilXml.addChildElementValue(labelImageFormatElement, > "Code", "GIF", shipmentConfirmRequestDoc); > or can be dynamic like: > UtilXml.addChildElementValue(shipperElement, "AttentionName", > originPostalAddress.getString("attnName"), shipmentConfirmRequestDoc); > where originPostalAddress was defined before like 273. > > > > bsn.mur...@gmail.com sent the following on 1/22/2009 1:08 PM: >>>> BJ Freeman wrote: >>>> it adds xml elements to a already created document. >>>> yes it is the way to add the ofbiz data in xml format per UPS format. >>>> >>>> kiran19 sent the following on 1/22/2009 12:50 PM: >>>>>>> hi all.. >>>>>>> i am having a doubt,what the addChildElementValue method of the >>>>>>> utilxml.java file does.. because it has been used in the >>>>>>> upsservices.java >>>>>>> in >>>>>>> most of the methods... at the end of the upsShipmentConfirm() they >>>>>>> have >>>>>>> used >>>>>>> the method of the utilxml.java does it is used to create the new xml >>>>>>> document with the dynamic values... >>>>> >>>> Quoted from: >>>> http://www.nabble.com/UtilXml-file-in-related-with-ups-services-tp21612800p21613096.html >>>> means you mean to say whatever the data which are dyanamically fetched >>>> from the java method ,those data are placed in the new xml document at >>>> the end of the method >> >> > Quoted from: > http://www.nabble.com/UtilXml-file-in-related-with-ups-services-tp21612800p21613957.html -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFJeSrUrP3NbaWWqE4RAk7qAKDLFIlBCpEG/sGCkXHosLc3rjZtiwCgmF2H Ra3hM02SLKAXDjMniyTtZko= =QJkC -----END PGP SIGNATURE-----