Hi,
I'm trying to create some web services (fairly simple stuff for now -
taking an integer as input and returning a string) but am coming up
against a few irritating problems that hopefully someone can help with
(on CF6.1):
1. If I add a new cffunction to an existing component then it doesn't
appear to be recognised - the calling page (another server also running
CF6.1) returns a message saying that the function with the parameters
cannot be found.
2. If I create a new component file when I try and call it I sometimes
(not always!) get the message: "Could not generate stub objects for web
service invocation"
3. Don't seem to be able to create functions which have no arguments at
all - just get a message saying the functions with the parameters cannot
be found.
Is any of this to do with the component being cached? (I've not set up
any caching - so would only be what is set up by default in CF) - or
does anyone have any other suggestions? I've included some sample code
below.
Any help much appreciated,
Alex
-----
Code:
Testservice.cfc:
<cfcomponent>
<cffunction name="TestService" access="remote"
returntype="string">
<!--- return the string --->
<cfreturn "Here is a web service called TestService">
</cffunction>
</cfcomponent>
Calling code:
<cfinvoke
webservice="http://dev-iet.open.ac.uk/webservices/testservice.cfc?WSDL"
method="TestService"
returnvariable="testing">
</cfinvoke>
<cfoutput>#testing#</cfoutput>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:199088
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