CREATEOBJECT: WEB SERVICE OBJECT  
Description

This function can create a web service object.

 
Returns

A web service object.

 
Function syntax
CreateObject(type, urltowsdl [, portname ]) 
 
Parameters

 
Usage

You can use the CreateObject function to create a web service.

 
Example
<cfscript>
  ws = CreateObject("webservice", 
    "http://www.xmethods.net/sd/2001/TemperatureService.wsdl");
  xlatstring = ws.getTemp(zipcode = "55987");
  writeoutput("The temperature at 55987 is " & xlatstring);
</cfscript>

Type of object to create.

TYPE  

WSDL file URL; location of web service

URLTOWSDL  

The port name for the web service. This value is case-sensitive and corresponds to the port element's name attribute under the service element.

Specify this parameter if the web service contains multiple ports. If no port name is specified, ColdFusion uses the first port found in the WSDL.

PORTNAME