View comments | RSS feed

CreateObject

Description

Creates a ColdFusion object, of a specified type.

Returns

An object, of the specified type.

Note: You can enable and disable this function in the ColdFusion Administrator, ColdFusion Basic Security, Tag Restrictions page.

Category

Extensibility functions

History

ColdFusion MX 7: For web service object: added the portName parameter, which specifies a port named in the service element of the WSDL.

ColdFusion MX:


ColdFusion 9 | ColdFusion 8 | ColdFusion MX 7 | ColdFusion MX 6.1 | ColdFusion MX | Forums | Developer Center | KnowledgeBase | Bug Reporting

Version 7

Comments


Fallguy said on Mar 13, 2005 at 7:03 PM :
In J2EE installation, I can not find
"ColdFusion Administrator, ColdFusion Basic Security, Tag Restrictions page", as mentioned inthe documents.
Also when installed under a subdirectory can not instantiate the object.
Anyone's got any ideas?
jrunrandy said on Mar 17, 2005 at 12:40 PM :
Good catch. The path should read ColdFusion MX Administrator -> Sandbox Security. Then you have to enable sandbox security and create a sandbox. Then (finally!) you can see the CF Tags tab.

The online help for the Sandbox Security page should have enough information to get you started.

Regarding your instantiation problem, I suggest posting your issue to the online forums: http://webforums.macromedia.com/coldfusion/
Robert10 said on Jan 3, 2006 at 11:12 AM :
There are no examples given on this page.

For example I know that to call a webservice using this I can do this:
x = createobject("webservice","ServiceURL");

however the documentation here gives no indication of this, and could be confusing for new folks.
bizarrojack said on Apr 12, 2006 at 2:46 PM :
Robert10: There is additional documentation on CreateObject, but the links to it are only in the other frame, so switch to that layout using the button at the top left of the page.
dylanzeth said on Jul 20, 2006 at 2:19 PM :
With dealing with Java, It should be noted that ColdFusion does NOT create the object when CreateObject() is called but when a -method- (aka, function) of that object is called.

 

RSS feed | Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/coldfusion/7/htmldocs/00000424.htm