Bryan,

Check your docs under the cffunction tab to see what the output attribute 
actually does.  I think you may have it confused with what <cfreturn> does.

Here's a quote from <cffunction> docs page for output attribute:

Specifies under which conditions the function can generate HTML output.

yes: The entire function body is processed as if it were within a cfoutput tag. 
Variables names surrounded by number signs (#) are automatically replaced with 
their values. 
no: The function is processed as if it were within a cfsilent tag 
If you do not specify this attribute, the function body is processed as 
standard CFML. Any variables must be in cfoutput tags. 

Dave

-----Original Message-----
From: Bryan Stevenson [mailto:[EMAIL PROTECTED]
Sent: Monday, August 22, 2005 12:26 PM
To: CF-Talk
Subject: webservices and XML


Hey All,

OK...from Livedocs at MM:

The following list defines the requirements for how to create web services
for publication: 

1) The value of the access attribute of the cffunction tag must be remote. 
2) The cffunction tag must include the returnType attribute to specify a
return type. 
3) The output attribute of the cffunction tag must be set to No because
ColdFusion converts all output to XML to return it to the consumer. 
4) The attribute setting required="false" for the cfargument tag is ignored.
ColdFusion considers all parameters as required.


Number 3 above does not appear to be true (or I'm missing something).

For arguments sake let's assume the WS method has output="no" and 
returntype="query"...

Will the query returned by the WS be converted to XML? because it doesn't seem 
to be.

I'm manually converting the query to XML now and it's SLOW when larger 
recordsets are returned.

TIA for any insight

Cheers

Bryan Stevenson B.Comm.
VP & Director of E-Commerce Development
Electric Edge Systems Group Inc.
phone: 250.480.0642
fax: 250.480.1264
cell: 250.920.8830
e-mail: [EMAIL PROTECTED]
web: www.electricedgesystems.com



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:215903
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to