Try
<argument1>{toDateField.selectedDate as Date}</argument1>
<argument2>{fromDateField.selectedDate as Date}</argument2>
From:
[email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Tim Hoff
Sent: Wednesday, May 17, 2006 8:44
PM
To: [email protected]
Subject: [flexcoders] Re: sending
arguments to a webservice
Are the dateField controls in the same class as the webService
tag?
If not, you won't be able to bind to them. Also, you must match the
expected arguments (including type) exactly the way the webService
expects. If there are too few or too many, it will error. Not
knowing CF, that's all I have.
-TH
--- In [email protected], "Greg Morphis"
<[EMAIL PROTECTED]>
wrote:
>
> I changed it to that and still, just a blank box pops up.
>
> On 5/17/06, Tim Hoff <[EMAIL PROTECTED]> wrote:
> > Try using binding braces like this:
> >
> > <argument1>{toDateField.selectedDate}</argument1>
> > <argument2>{fromDateField.selectedDate}</argument2>
> >
> > -TH
> >
> >
> > --- In [email protected], "Greg Morphis"
<gmorphis@>
> > wrote:
> > >
> > > I tried both ways and when I hit run, I get an empty message
box,
> > > probably erroring out but no idea where the error is.
> > > If I take out the <argument> calls everything works fine.
> > > This is what my webservice call looks like:
> > > <mx:WebService id="myWS"
> > > wsdl="http://127.0.0.1:8500/records.cfc?wsdl"
> > >
fault="handleDGFault( event )"
> > >
showBusyCursor="true" >
> > >
> > > <mx:operation
name="listRecords" result="handleDGResult(
> > event )">
> > > <mx:request>
> >
>
<argument1>toDateField.selectedDate</argument1>
> >
>
<argument2>fromDateField.selectedDate</argument2>
> > > </mx:request>
> > > </mx:operation>
> > > </mx:WebService>
> > >
> > >
> > > <cffunction name="listRecords" hint="list of
records"
> > access="remote"
> > > output="false" returntype="query">
> > >
> > > <cfset var argument1 = ''
/>
> > > <cfset var argument2 = ''
/>
> > > <cfset var fooQ = ''
/>
> > >
> > > <cfquery
name="fooQ" datasource="test">
> >
>
SELECT *
> >
>
FROM main
> >
>
where actiondate > current_date - 30
> >
>
order by actiondate
> > > </cfquery>
> > >
> > > <cfreturn fooQ />
> > > </cffunction>
> > >
> > >
> > > Any ideas?
> > >
> > >
> > > Thanks!
> > >
> > >
> > >
> > >
> > >
> > >
> > > On 5/17/06, Dave Quested <dave@> wrote:
> > > > Hi Greg
> > > >
> > > > Think you're looking for something like:
> > > >
> > > > <mx:WebService id="someWs"
useProxy="false"
> > > > wsdl="http://127.0.0.1:8100/someCFC.cfc?wsdl">
> > >
>
<mx:operation name="someFunction" >
> > >
>
<mx:request>
> > >
>
<argument1>value1</ argument1>
> > > >
<argument2>value2</ argument2>
> > >
>
</mx:request>
> > >
>
</mx:operation>
> > > >
</mx:WebService>
> > > >
> > > > This is called by someWs.someFunction.send()
> > > >
> > > > The result is someWs.someFunction.lastResult
> > > >
> > > > Make sure your CFC method is access="remote"
> > > >
> > > > HTH
> > > >
> > > > DQ
> > > >
> > > > -----Original Message-----
> > > > From: [email protected]
> > [mailto:[EMAIL PROTECTED] On
> > > > Behalf Of Greg Morphis
> > > > Sent: Thursday, 18 May 2006 7:26 a.m.
> > > > To: [email protected]
> > > > Subject: [flexcoders] sending arguments to a webservice
> > > >
> > > > I have a CFC with my functions in it. I need to send
arguments
> > to a
> > > > function and am not sure how to send them from Flex to the
CF.
> > > > Can someone point me to a quick tutorial or offer some
snippets
> > on how
> > > > to do this?
> > > >
> > > > Thanks!
> > > >
> > > >
> > > >
> > > > --
> > > > Flexcoders Mailing List
> > > > FAQ:
> > http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > > > Search Archives:
> > > > http://www.mail-archive.com/flexcoders%40yahoogroups.com
> > > > Yahoo! Groups Links
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > --
> > > > Flexcoders Mailing List
> > > > FAQ:
> > http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > > > Search Archives: http://www.mail-archive.com/flexcoders%
> > 40yahoogroups.com
> > > > Yahoo! Groups Links
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > >
> >
> >
> >
> >
> >
> >
> >
> > --
> > Flexcoders Mailing List
> > FAQ:
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > Search Archives: http://www.mail-archive.com/flexcoders%
40yahoogroups.com
> > Yahoo! Groups Links
> >
> >
> >
> >
> >
> >
> >
> >
>
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
YAHOO! GROUPS LINKS
|