Archive for December 9th, 2005

Dynamically change endpoint URL of a Webservice

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>

Add comment December 9th, 2005



About: I work as a Platform Evangelist for Adobe Systems Incorporated.

My Amazon.com Wish List

Calendar

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

Posts by Month

Posts by Category


Flex.org - The Directory for Flex