MACROMEDIA COLFUSION MX 7-CFML Reference page 534

Cfml reference
Hide thumbs Also See for COLFUSION MX 7-CFML:
Table of Contents

Advertisement

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
Parameter
type
urltowsdl
portname
Usage
You can use the
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>
534
Chapter 3: ColdFusion Functions
Description
Type of object to create.
• com
• corba
• java
• component
• webservice
WSDL file URL; location of web service
The port name for the web service. This value is case-sensitive and corresponds to
the
element's
port
name
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.
function to create a web service.
CreateObject
attribute under the
service
element.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Colfusion mx 7 - installing and using coldfusion mx

Table of Contents