On Aug 9, 2004, at 9:09 AM, Dave Watts wrote:

> > I can successfully call a remote (ws) cfc method with curl or
>  > wget, but I am unable to pass parameter data to the cfc.
>  >
>  > What's the secret?
>
>  You should be able to pass parameters within the URL of the CFC  
> request:
>
>  http://yourserver/your.cfc?param=value
>

That's just the point:

http://localhost/cfusion/mycfmxapps/myWS.cfc?
method=echoString&input=Hello

works from a browser

but,

wget  
http://localhost/cfusion/mycfmxapps/myWS.cfc?
method=echoString&input=Hello

does not work from the command line:

Here's the cfc:

<cfcomponent>
   <cffunction name="echoString" returnType="string" output="no"  
access="remote" >
     <cfargument name="input" type="string">
     <cfset OutputString = arguments.input & " " & TimeFormat(Now(),  
"hh:mm:ss:lll")/>
     <cfreturn OutputString>
   </cffunction>
</cfcomponent>

TIA

Dick
>  For obvious reasons, this will only work with simple values.  
> Honestly, I've
>  never tried this approach, since my use of CFCs has been limited to  
> more
>  traditional components and SOAP web services.
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to