UPDATE:
I got an email from the people on the target server end.. they said that
they actually *GOT* the transmission and successfully sent out the reply,
but i didnt get anything printed out as the response... ?? can anyone see
a problem with these few lines... its getting narowed down.. FINALLY:
<cfscript>
bIsConnected = obj.Open("10.30.0.254", "4242");
obj.Send(xmlDoc);
myresponse = obj.Recv();
</cfscript>
<!-- Displays the return XML string on screen >
<cfoutput>#myresponse#</cfoutput>
So, the sending works fine.. and they're sending a response, but I'm not
getting it for some reason......
any ideas??
thanks everyone!
-Ron
>>> [EMAIL PROTECTED] 01/29/02 10:45PM >>>
Hey gang...
I need to get some verification before I climb someones case...
Very simply, I have a chunk of code that generates an XML string of
data
and then uses the TCPClient tag to send it to a server thats listening
on
the other end.
Sounds pretty easy, eh?....
Well.... I have the code all ready (thanks to VERY helpful members of
this
list!), but when I try to actually run it, it acts like its processing
(it
slows down like its chewing thru the process), but I never get a
response
back...
Now.. heres the twist... the server thats listening on a particular
port
will ONLY accept requests from a certain IP address (which is set to
the
web server hosting these pages)... but.. the web server is sitting
behind
a firewall, and when you call it up in a browser you have to use an
entirely different IP address... So.. my question is this... since its
bouncing from a different IP address, could that be why I'm not getting
any responses? Or is the firewall actually translating from the "broadcast
ed" as the IP address, to the one that the other server will accept
requests from? Is there something else conflicting with this?
I've tried everything that I can think of, and before I start yelling
at
the network folks, I wanted to make sure that I've looked at everything
thourghly... I'm also attaching the code at the bottom of the email if
anyone can see any glaring errors in it...
THANKS TO ALL!!!!
-Ron
:::::::::::::::CODE EXAMPLE:::::::::::::::
<!-- Creates the XML string >
<cfset #xmlDoc#="<?xml version=""1.0""?>
<AOTR>
<first_name>Ron</first_name>
<middle_initial>G</middle_initial>
<last_name>Davis</last_name>
</AOTR>
">
<!-- Writes the XML string to a file >
<cffile action = "write" file="d:\RONS_XML.xml" output="#RonsXML#">
<!-- Calls the TCPClient and sends the info >
<cfobject action="create" name="obj" class="Intrafoundation.TCPClient
">
<cfscript>
bIsConnected = obj.Open("10.30.0.254", "4242");
obj.Send(xmlDoc);
myresponse = obj.Recv();
</cfscript>
<!-- Displays the return XML string on screen >
<cfoutput>#myresponse#</cfoutput>
______________________________________________________________________
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