A quick test on my own server shows that your function works fine.
<cfset x =
createobject("webservice","http://www.ecodes.biz/UserVerif.cfc?wsdl").echoSt
ring("hello World")/>
<cfoutput>#x#</cfoutput>
I suspect you have compiled the WSDL and the stub is being cached. You need
to refresh the cache... But as a quick fix just rename your file to
UserVerify.cfc or something and try again :)
-mark
Mark A. Kruger, CFG, MCSE
(402) 408-3733 ext 105
www.cfwebtools.com
www.coldfusionmuse.com
www.necfug.com
-----Original Message-----
From: ch g [mailto:[email protected]]
Sent: Wednesday, August 05, 2009 12:20 PM
To: cf-talk
Subject: Re: Web service error
I included that also
<cffunction name="echoString" returnType="string" output="no"
access="remote">
<cfargument name="input" type="string" required="yes">
<cfreturn #arguments.input#>
</cffunction>
Still receving the same error message
Web service operation echoString with parameters {input={hellooooo}} cannot
be found.
Thank you.
>You need to set the access level for the function to "remote" if you
>wish to use it as a WS.
>
><cffunction name="echoString" Access="remote">
>
>-Mark
>
>
>
>
>
>Mark A. Kruger, CFG, MCSE
>(402) 408-3733 ext 105
>www.cfwebtools.com
>www.coldfusionmuse.com
>www.necfug.com
>
>Hi all,
>
>I am developing a simple web service, but i am getting an error like
>this
>
> Web service operation echoString with parameters {INPUT={hello}}
>cannot be found.
>
>Here is the published web service
>
><cfcomponent>
><cffunction name="echoString" returnType="string" output="no">
> <cfargument name="input" type="string">
> <cfreturn #arguments.input#>
> </cffunction>
>
></cfcomponent>
>
>And the test file is
>
> <cfinvoke webservice ="http://www.ecodes.biz/UserVerif.cfc?wsdl"
> method ="echoString"
> input = "hello"
> returnVariable="foo">
>
><cfoutput>#foo#</cfoutput>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know
on the House of Fusion mailing lists
Archive:
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:325227
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4