Dynamically change endpoint URL of a Webservice

December 9th, 2005

Changing the Endpoint URL of a webservice in ColdFusionMX 7 was not as easy as it seemed. I received this bit of information from some ColdFusion guru's.

JAVASCRIPT:
  1. <cfscript>
  2.   ws = CreateObject("webservice", "http://localhost:8500/service.cfc?WSDL");
  3.   // Use a different endpoint for the stub.
  4.   ws._setProperty("javax.xml.rpc.service.endpoint.address", "http://localhost:8501/service.cfc");
  5.   ret = ws.echo("Through the tunnel");
  6. </cfscript>

Entry Filed under: ColdFusion MX 7

Leave a Comment

Required

Required, hidden

Some HTML allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Trackback this post  |  Subscribe to the comments via RSS Feed


Disclaimer: I work as a Flash/Flex Developer for Adobe Systems Incorporated. The opinions expressed here represent my own and not those of my employer.

My Amazon.com Wish List

Calendar

December 2005
S M T W T F S
« Aug   Feb »
 123
45678910
11121314151617
18192021222324
25262728293031

Most Recent Posts


Flex.org - The Directory for Flex