My best guess for the first issue would be to use "array notation" or
whatever its called.
WebService.Operation.lastResult["return"]
As for the other one, maybe something like this? (Not sure if this
will work... this might not be possible.)
public dynamic class Name
{}
var n:Name = new Name();
n["Name"] = "Bob";
HTH,
Ben
--- In [email protected], Leo <[EMAIL PROTECTED]> wrote:
>
> Hi
>
> I solved this problem setting the property resultFormat to "e4x" and
> using the appropiate namespace like said in the docs. But now i have 2
> more issues:
>
> 1) I can't acces the web service int return value because it's called
> "return" and if i use WebService.Operation.lastResult.return the
> compiler throws an error because return is used for other purpouses.
>
> 2) I need to pass a parameter that has a property named the same as
> the parameter and i'm using action script classes to define the
> complex structures. But the compiler doesn't allow me to do that (i.e:
> public class Name{ public var Name:String; }
>
> If you can give me some advices will be very helpful
>
> Thanks for your time
>
> On 10/4/06, Leo <[EMAIL PROTECTED]> wrote:
> > Hi
> >
> > I need to use some already deployed webservices made in RAD (Rational
> > Application Developer) and published in a WebSphere v6[.1] server. I'm
> > new in consumig web services in Flex so i referred to the docs and try
> > to find out how to do that in the right way. The services are defined
> > with parameters that can be complex structures and may be in-out-inout
> > and have a return type that in the services i need to consume is a int
> > type. When i define this web service in flex and i make the call
> > websphere receive this call with the parameters that i sent correctly
> > (complex structures included) but when i look for the result in the
> > WebService.Operation.lastResult field back in Flex i just find the int
> > return (Number for ActionScript) from the web service but i can't have
> > the values of the complex structures that are defined inout.
> >
> > So if some of you have faced this problem before or have some docs or
> > hints for me it will be very appreciated
> >
> > Thanks in advance and regards
> >
> > --
> > Leonardo Moreno Guzmán
> > http://leo.logtar.com
> > http://www.flickr.com/photos/leillo/ |
http://www.flickr.com/people/leillo/
> >
>
>
> --
> Leonardo Moreno Guzmán
> http://leo.logtar.com
> http://www.flickr.com/photos/leillo/ |
http://www.flickr.com/people/leillo/
>
--
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/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
<*> 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/