> i'm thinking about building (not invoking) a web service, 
> which will basically query a SQL server database, more as a 
> proof of concept than anything else.


If that's all you're trying to do , then it's super-simple:

<cfcomponent name="testservice">
    <cffunction name="testfunction" access="remote" returntype="query">
        <!--- do the query --->
        <cfquery name="myquery" datasource="#datasource#">
            SELECT ...
        </cfquery>
        <!--- return the query --->
        <cfreturn myquery>
    </cffunction>
</cfomponent>

Make sure you specify the access type as "remote" and the appropriate
returntype, and it'll be available as a web service!  If you store the
file as testservice.cfc in the directory {webroot}/cfcs/ then you can
consume the web service as
http://www.myserver.com/cfcs/testservice.cfc?wsdl

That'll do it.  :o)  Or were you planning on something more complex?

Tim.


-------------------------------------------------------
RAWNET LTD - Internet, New Media and ebusiness Gurus.
Visit our new website at http://www.rawnet.com for
more information about our company, or call us anytime
on 01344 393 040.
-------------------------------------------------------
Tim Blair
Web Application Engineer, Rawnet Limited
Direct Phone : +44 (0) 1344 393 441
Switchboard : +44 (0) 1344 393 040
-------------------------------------------------------
This message may contain information which is legally
privileged and/or confidential.  If you are not the
intended recipient, you are hereby notified that any
unauthorised disclosure, copying, distribution or use
of this information is strictly prohibited. Such
notification notwithstanding, any comments, opinions,
information or conclusions expressed in this message
are those of the originator, not of rawnet limited,
unless otherwise explicitly and independently indicated
by an authorised representative of rawnet limited.
-------------------------------------------------------




-- 
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]

Reply via email to