Daily Archives: December 9, 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. PLAIN TEXT JAVASCRIPT: <cfscript>   ws = CreateObject("webservice", "http://localhost:8500/service.cfc?WSDL");   // Use a different endpoint for the stub.   ws._setProperty("javax.xml.rpc.service.endpoint.address", "http://localhost:8501/service.cfc");   ret = ws.echo("Through the tunnel"); </cfscript>