The ColdFusion MX Administrator lets you register web services so that you do not have to specify the entire WSDL URL when you reference the web service.
Note: The first time you reference a web service, ColdFusion MX automatically registers it in the Administrator.
For example, the following code references the URL to the TemperatureService WSDL file:
<cfscript> ws = CreateObject("webservice", "http://www.xmethods.net/sd/2001/TemperatureService.wsdl"); xlatstring = ws.getTemp("55987"); writeoutput(xlatstring); </cfscript>
If you register the TemperatureService web service in the Administrator using (for example, the name wsTemp), you can then reference the web service as follows:
<cfscript>
ws = CreateObject("webservice", "wsTemp
");
xlatstring = ws.getTemp("55987");
writeoutput("wsTemp: " & xlatstring);
</cfscript>
Not only does this enable you to shorten your code, registering a web service in the Administrator lets you change a web service's URL without modifying your code. So, if the TemperatureService web service moves to a new location, you only update the administrator setting, not your application code.
For more information, see the ColdFusion MX Administrator online Help.