createObject

Overview ColdFusion Open BlueDragon Lucee

The CreateObject function takes different arguments depending on the value of the first argument: CreateObject('com', class, context, serverName) CreateObject('component', component-name) CreateObject('corba', context, class, locale) CreateObject('java', class) CreateObject('webservice', urltowsdl, [, portname])

Attributes

Name Required Type Default Description
arg1 No
arg2 No
arg3 No
arg4 No
8
assembly Yes String
class Yes String
3
classname No the usage of this argument depend on type defined with argument "type": - com: Component ProgID for the object to invoke. - java: java class to load - webservice: WSDL url to call - component: The CFC name; corresponds to the name of the file that defines the component
component_name Yes String
3
context Yes String
locale Yes String
8
port No String
portname No String 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.
8
protocol No String
8
secure No String
8
server No String
servername Yes String
3
type Yes String
urltowsdl Yes String WSDL file URL; location of web service