Skip to main content
Participant
March 19, 2009
Question

how to call this webservice

  • March 19, 2009
  • 2 replies
  • 584 views
How do I call this webservice?
I am trying to call using this code but it displays an error:?
Please help me.....


This topic has been closed for replies.

2 replies

April 2, 2009
Argument is a structure containing all the parameters. Easiest thing to change is

<cfinvoke webservice=" http://localhost:8500/library/BaseConsole.cfc?wsdl"
method="getWebProfileHTML"
returnvariable="profilehtml">
<cfinvokeargument name='passedStruct' value="#passedStruct#">
</cfinvoke>

Alternately, you could do the cfinvoke as is, and change the function with cfarguments of username, applicationToLogin, and submit.


<cffunction name="getWebProfileHTML" access="remote" output="false" returntype="string" displayname="getWebProfileHTML">
<cfargument name="username" required="false">
<cfargument name="submit" required="false">
.. but you'd have to edit the rest of the function.
BKBK
Community Expert
Community Expert
March 28, 2009
For a start, add attribute type="Struct" to the cfargument tag.