I am using SOXML and TCPClient to try to move some data back and forth 
from my server to a remote system.  Jon has been EXTREMLY helpful in this, 
but I've run up against yet another problem...  But, I'm not sure if its 
on my end or the recieving servers end.... (Jon, if you're still out 
there... HELP! =) )

The code that I'm basing everything off of is as follows:

<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");
objXMLHTTP.setRequestHeader("Content-Type","application/x-www-form-urlencod
ed");
objXMLHTTP.send(xmlDoc);
xml = objXMLHTTP.responseXML;
</cfscript>

Fairly straight forward and it works PERFECTLY.... but, when I replace the 
UPS server address with the address of the server I'm trying to hit:

objXMLHTTP.open("POST", "xxx.xxx.xxx.xxx:4242", false);

I immediatly get an error unless I use "https://xxx.xxx.xxx.xxx:4242"; then 
it waits a few seconds, like its actually working, but then I get the same 
error saying:

unknown exception condition
unknown error while executing a tag.

I've tried just about every incarnation of the address that I can think 
of:

https://xxx.xxx.xxx.xxx:4242
xxx.xxx.xxx.xxx:4242
4242:xxx.xxx.xxx.xxx (i knew this one was gonna crash and burn)

I think that my problem is that the server on the other end is not a web 
server... so, will it understand the objXMLHTTP.open line at all?  Is 
there an alternate tag that I should be using to talk to just a regular IP 
address thats not running web services?  Is this a fair assumption, or am 
I totally off the beam (as usual)?

Thanks gang... I'm so close I can taste it, but its driving me nuts!

<TotallyConfused>Ron</TotallyConfused>

______________________________________________________________________
Get Your Own Dedicated Windows 2000 Server
  PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation � $99/Month � Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusionb
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

Reply via email to