Here you go, really quick basic:
1)
Make web component. A page like the following (call it fakeservice.cfc)
<cfcomponent name="firstcomponent">
<!--- the main function --->
<cffunction access="remote" name="fakeservice" output="false"
returntype="struct">
<!--- mandatory parameter --->
<cfargument name="myNum" type="numeric" required="true">
<!--- the return type is a struct --->
<cfset response.groovy = "groovy">
<cfset response.yourNum = myNum + 1>
<cfset temp = structAppend( response , arguments )>
<!--- what to send back --->
<cfreturn response>
</cffunction>
</cfcomponent>
2)
Make a page that calls the web service like so (pagename.cfm)
<h1>Web Service</h1>
<!--- remote way --->
<cfinvoke
method="fakeservice"
returnvariable="responseFromService"
webservice="http://forge/test/fakewebservice.cfc?WSDL">
<cfinvokeargument name="myNum" value="3">
</cfinvoke>
<cfdump var="#responseFromService#">
3)
Then in your browser bring up the pagename.cfm.
If all went well then the service will be in your cfmx administrator, and -
of course - you should see some data.
-----Original Message-----
From: SMR [mailto:info@;smrenterprises.com]
Sent: Friday, November 15, 2002 9:23 AM
To: CF-Talk
Subject: CFMX Web Services Help
Is there a guide.. 101 or what ever that walks you through building a CFMX
web service? I have a couple small apps in CF5 that I need to translate into
web services..
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription:
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm