A very good start though for the connection, thank you. Our XML files are correct. UPS seems stumped (as in non-responsive suddenly due to no solid answer) as the files I send are perfect...so it has to be in the cfhttp post method we were using...can't think of anything else. We are 95% done with the code for the full suite from shipping to sig tracking, blah...but the damned connection was seeming to be a hold up I guess. Thanks again.
Anyone ever have that week that it seems like the years you have worked in a language meant nothing and made you feel like you were back at step one and second guessed all you did? Lol :-) Regards, Eric J Hoffman DataStream Connexion www.datastreamconnexion.com Delivering Creative Data Solutions -----Original Message----- From: Jon Hall [mailto:[EMAIL PROTECTED]] Sent: Sunday, August 04, 2002 12:53 AM To: CF-Talk Subject: Re: XML Error Here are the important bits, I've never done the shipping integration part, so the parsing for tracking I did wont help you. <cfset xmlDoc = '<TrackRequest xml:lang="en-US"> <Request> <TransactionReference> <CustomerContext>Jon</CustomerContext> <XpciVersion>1.0001</XpciVersion> </TransactionReference> <RequestAction>Track</RequestAction> <RequestOption>activity</RequestOption> </Request> <TrackingNumber>1Z6119360141730963</TrackingNumber> </TrackRequest>'> <cfscript> objXMLHTTP = CreateObject("COM", "MSXML2.ServerXMLHTTP.4.0"); //Send request to UPS objXMLHTTP.open("POST","https://www.ups.com/ups.app/xml/Track",false); objXMLHTTP.setRequestHeader("Method", "POST"); //not so sure about this...if this doesn't work try text/xml instead objXMLHTTP.setRequestHeader("Content-Type","application/x-www-form-urlen coded"); objXMLHTTP.send(xmlDoc); xml = objXMLHTTP.responseText; </cfscript> The xml variable then contains returned xml as a string. This can easily be made into a UDF too. MSXML Reference http://www.devguru.com/Technologies/xmldom/quickref/xmldom_intro.html MSXML 4 http://www.microsoft.com/xml -- jon mailto:[EMAIL PROTECTED] Sunday, August 4, 2002, 1:14:56 AM, you wrote: EH> Yes, exactly, I am working the full fledged shipping route with UPS on a EH> CF 5 server. The test file you mentioned would be so appreciated you EH> have no idea. EH> Regards, EH> Eric J Hoffman EH> DataStream Connexion EH> www.datastreamconnexion.com EH> Delivering Creative Data Solutions EH> -----Original Message----- EH> From: Jon Hall [mailto:[EMAIL PROTECTED]] EH> Sent: Saturday, August 03, 2002 9:37 PM EH> To: CF-Talk EH> Subject: Re: XML Error EH> You wouldn't by any chance be using cfhttp to POST your XML to UPS using EH> CF5 or MX would you? EH> If so, half your problem is to blame on a Macromedia programmer who EH> didn't have his head screwed on right when he decided to urlencode all EH> cfhttp posts, and then blame the other programmer who didn't have his EH> (could be a her...dunno <g/>) head on straight either when he decided it EH> wasn't important when raised during the MX betas. I would suggest EH> yelling and screaming at them...don't know if it will do any good EH> though. They have ignored the problem forever. They do however love to EH> tout the fact that UPS is using CF on their intranet in their press EH> releases. Ironic no? The other half is that UPS requires text/xml as the EH> Content-Type IIRC, another thing cfhttp can't do. EH> Not that it will make you feel any better, but change the post url to a EH> page that looks something like this to verify exactly what is getting EH> sent across the wire. EH> <cfsavecontent var="dump"> EH> <cfdump var="#form#"> EH> </cfsavecontent> EH> and write the the contents of the dump var to a file. You will see some EH> lovely mangled xml courtesy of cfhttp. EH> On a brighter note, if you wish, I can send you some example code using EH> MSXML that I used to do UPS tracking from CF if you are using CF5. Of EH> course MX hosed MSXML compatibility...so I don't know if that's such a EH> good idea for forward compatibility reasons. Sometimes I think it would EH> be easier to write a CF program to automatically print XML, and send it EH> through the mail... ______________________________________________________________________ Get the mailserver that powers this list at http://www.coolfusion.com FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

