The only way Flash Player can send binary files to a remote
destination is with FileReference. WebServices in Flash Player can
only send/receive text/xml.

http://livedocs.macromedia.com/labs/as3preview/langref/flash/net/FileReference.html



--- In [email protected], "bobignacio" <[EMAIL PROTECTED]> wrote:
>
> Thanks for the quick response!
> 
> Can we set up types like Image, VideoDisplay and RichText within a
> complex object and send that to a WebService?
> 
> My main fear is that the "source" property will just send over a
> String to the web service vs. the actual binary file.
> 
> Something along the lines appending to your example:
> 
> var args:Object = new Object();
> args.foo = new Object();
> foo.image = new Image();
> foo.image.source = "someDirectory/image.jpg";
> foo.video = new VideoDisplay();
> foo.video.source = "someDirectory/video.flv";
> foo.editor = new RichTextEditor();
> 
> foo.editor.htmlText = "<textformat leading='2'><p
> align='center'><b><font size='20'>HTML Formatted
> Text</font></b></p></textformat><br><textformat leading='2'><p
> align='left'><font face='_sans' size='12' color='#000000'>This
> paragraph contains <b>bold</b>, <i>italic</i>, <u>underlined</u>, and
> <b><i><u>bold italic underlined
> </u></i></b>text.</font></p></textformat><br><p><u><font face='arial'
> size='14' color='#ff0000'>This a red underlined 14-point arial font
> with no alignment set.</font></u></p><p align='right'><font
> face='verdana' size='12' color='#006666'><b>This a teal bold 12-pt.
> Verdana font with alignment set to right.</b></font></p>";
> 
> Thanks again!
> 
> Bob I.
> 
> --- In [email protected], "ben.clinkinbeard"
> <ben.clinkinbeard@> wrote:
> >
> > Hi Bob,
> > 
> > Flex should handle the serialization of your objects into xml, you
> > just need to make sure they're named correctly.
> > 
> > var args:Object = new Object();
> > args.foo = new Object();
> > foo.bar = "someString";
> > foo.count = 10;
> > myWsOp.arguments = args;
> > myWsOp.send();
> > 
> > should automagically send
> > 
> > <foo>
> >    <bar>someString</bar>
> >    <count>10</count>
> > </foo>
> > 
> > to your WebService's operation.
> > 
> > HTH,
> > Ben
> > 
> > 
> > 
> > --- In [email protected], "bobignacio" <bobignacio@> wrote:
> > >
> > > --- In [email protected], Leo <leonardo.moreno@> wrote:
> > > 
> > > >> 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)
> > > 
> > > Hi Leo,
> > > 
> > > I have recently been playing with the flex WebService
stuff...How did
> > > you send a complex structure _from_ flex to your Web Service?
> > > 
> > > Thanks,
> > > 
> > > Bob
> > >
> >
>





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

Reply via email to