Answered
web service method not found???
Hi,
I am trying to invoke a web service method, which when I view it directly at the URL, it shows the available method. However, when I try to invoke the method, I get this error:
Web service operation "ValidateUser" with
parameters {password={12345},userName={Guy}} could not be found.
I can invoke the method through a ASP.Net page without a problem, but not through a CFM page. Also, other methods that do not require anything passed to them work correctly. Its only the methods that require something passed, like a login method.
When I create the web service object and then dump it, It shows the method "ValidateUser", but has a "returns void" next to it. Again, the only problem is invoking it through CF.
Here's how I'm invoking it:
<cfinvoke
webservice=" http://www.xyz.com/RemoteService.asmx?wsdl"
method="ValidateUser"
returnvariable="myresponse">
<cfinvokeargument name="userName" value="Guy">
<cfinvokeargument name="password" value="12345">
</cfinvoke>
or
<cfset wsURL = " http://www.xyz.com/RemoteService.asmx?wsdl">
<cfscript>
ws = CreateObject('webservice', '#wsURL#');
myresponse = ws.ValidateUser('Guy','12345');
</cfscript>
<cfdump var="#myresponse#">
Both give me the same error. Thanks for any help!
I am trying to invoke a web service method, which when I view it directly at the URL, it shows the available method. However, when I try to invoke the method, I get this error:
Web service operation "ValidateUser" with
parameters {password={12345},userName={Guy}} could not be found.
I can invoke the method through a ASP.Net page without a problem, but not through a CFM page. Also, other methods that do not require anything passed to them work correctly. Its only the methods that require something passed, like a login method.
When I create the web service object and then dump it, It shows the method "ValidateUser", but has a "returns void" next to it. Again, the only problem is invoking it through CF.
Here's how I'm invoking it:
<cfinvoke
webservice=" http://www.xyz.com/RemoteService.asmx?wsdl"
method="ValidateUser"
returnvariable="myresponse">
<cfinvokeargument name="userName" value="Guy">
<cfinvokeargument name="password" value="12345">
</cfinvoke>
or
<cfset wsURL = " http://www.xyz.com/RemoteService.asmx?wsdl">
<cfscript>
ws = CreateObject('webservice', '#wsURL#');
myresponse = ws.ValidateUser('Guy','12345');
</cfscript>
<cfdump var="#myresponse#">
Both give me the same error. Thanks for any help!