Amit, 

can you give the list an idea of what the error actually says ? Are
you also getting errors on your J2EE server ? If so what are these ?
Have you switched on the gateway debug ? 

<faq snip>
If your flex server is installed locally we suggest enabling server
side "debug" level logging in /WEB-INF/flex/gateway-config.xml to
watch the raw trace information in the Flex server console / logs from
the AMF Gateway as it processes your RemoteObject requests.
</faq snip>

hope this helps

dan


--- In flexcoders@yahoogroups.com, "Philippe Maegerman" <[EMAIL PROTECTED]> 
wrote:
> You can use <mx:arguments> inside yout method
> <mx:RemoteObject id="ro"..>
>    <mx:method name="setData">
>       <mx:arguments>
>          <arg1>{text1.text}</arg1>
>          <arg2>{text2.text}</arg2>
>       </mx:arguments>
>    </mx:method>
> <mx:RemoteObject>
> Documentation here : 
http://livedocs.macromedia.com/flex/15/flex_docs_en/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Flex_Documentation&file=00001175.htm
>  
> Philippe Maegerman
> 
> ________________________________
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On Behalf Of Amit Sanon
> Sent: jeudi 11 août 2005 7:52
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] help.. passing arguments to a method using
remoteobject
> 
> 
> i cannot figure out how to pass arguments... pls send an example code 
> as to how to pass arguments to a method using remote object
> 
> i have a class as follows
>   
> class A
> {
>   public int func1(int i, string st)
>   {
>      .......
>   }
> }
> ----------------
> i created a remote object like...
> 
> <mx:RemoteObject source="A" id="remot">
>   <mx:method name="func1" result=""/>
> </mx:RemoteObject>
> 
> and made a call to this method as
> 
> function getReply()
> {
>   remot.func1(1,"amit");
> }
> 
> but was not successfull.. it gave an error cannot invoke method func1
> 
> 
> 
> 
> 
> 
> 
> 
> --
> 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 
> 
> 
>       
> *      Visit your group "flexcoders
<http://groups.yahoo.com/group/flexcoders> " on the web.
>         
> *      To unsubscribe from this group, send an email to:
>        [EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> 
>         
> *      Your use of Yahoo! Groups is subject to the Yahoo! Terms of
Service <http://docs.yahoo.com/info/terms/> . 
> 
> 
> ________________________________
> 
> 
> 
> ------------------------------------------------------------------
> **STATEMENT OF CONFIDENTIALITY** 
> 
> This e-mail and any attached files are confidential and intended
solely for the use of the individual to whom it is addressed. If you
have received this email in error please send it back to the person
that sent it to you. Any views or opinions presented are solely those
of author and do not necessarily represent those the Emakina Company.
Unauthorized publication, use, dissemination, forwarding, printing or
copying of this email and its associated attachments is strictly
prohibited.
> 
> We also inform you that we have checked that this message does not
contain any virus but we decline any responsability in case of any
damage caused by an a non detected virus.
> ------------------------------------------------------------------




------------------------ Yahoo! Groups Sponsor --------------------~--> 
<font face=arial size=-1><a 
href="http://us.ard.yahoo.com/SIG=12hnbvubc/M=362335.6886445.7839731.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1123759093/A=2894361/R=0/SIG=13jmebhbo/*http://www.networkforgood.org/topics/education/digitaldivide/?source=YAHOO&cmpgn=GRP&RTP=http://groups.yahoo.com/";>In
 low income neighborhoods, 84% do not own computers. At Network for Good, help 
bridge the Digital Divide!</a>.</font>
--------------------------------------------------------------------~-> 

--
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

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to