On 2005-05-03 07:28:58 -0500, "Mike Paim" <webforumsusermacromedia.com> said:
If I understand what you're getting at, the simplest way to do this> I've got a ColdFusion page on one server and a Java page on another
> server. I need to make a request from the CF page for data such as
> "Company Name" or "Company Phone Number". The Java page (on a
> different server) will do some processing and return the data to the
> ColdFusion page...
> How does this communication take place on the CF side? I tried a
> ColdFusion Component but that method seems to be for processing
> internally. I need to pass the variables names of what I want and then
> receive back the variable name and the value.
> Any ideas or articles?
would probably be to use HTTP POST or GET. Just have the form (I'm
assuming there's a form involved since you say "make a request for
data") submit from the CF server to the Java server. The Java server
won't care where the submission is coming from (dependent upon your
security settings on the Java server of course). Then the Java server
can do its thing and pass a response back to CF again via either POST
or GET, with GET probably being the simpler means since you could just
do a redirect on the Java server back to the CF server using a simple
You could also use web services of course, but based on what you're
saying the web service would be on the Java server.
Team Macromedia - ColdFusion