Dave,

That was it! I deleted the "features" setting of the WSCompile pointing to 
"rpcliteral", so the WSDD and WSDL were built using RPC/Encoded and it worked 
wonderfully.

Thank you very much for your tip and your time!
---Pablo Apanasionek


-----Mensaje original-----
De: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] En nombre de Dave Wolf
Enviado el: Viernes, 10 de Febrero de 2006 18:44
Para: flexcoders@yahoogroups.com
Asunto: [flexcoders] Re: About Webservices and XML request format

Pablo,

You're right, AXIS and flex have both the serializers and deserializers to 
handle this.  You dont need to go sending actual XML!

I looked over web services code from a couple of projects and from what I found 
looking quickly I only say examples of returning an array not sending one.  But 
I dont think that's in play here.  I think there is an AXIS configuration 
issue.  We know this works propertly.  We also know that you will have much 
more luck in Flex 1.5 if you are using RPC/Encoded style rather then 
Document/Literal style for the service itself.

Can I see your WSDD?  THe one other issue we did have that was specific to 
arrays was the configuration of the bean serializer in the WSDD for Axis.  For 
instance we found this setup worked well.

  <service name="Assessments" provider="java:RPC" style="rpc"
use="encoded">
    <parameter name="className"
value="com.lifeoptions.assessment.AssessmentsImpl"/>
    <parameter name="allowedMethods" value="*"/>
    <parameter name="wsdlServicePort" value="Assessments"/>
    <beanMapping qname="myNS:Assessments"
xmlns:myNS="urn:AssessmentsImpl"
languageSpecificType="java:com.lifeoptions.assessment.Assessments"/>
  </service>

Using the "shortcut" beatMapping was the key here.  Also again note the "style" 
and "use" attributes for the service.  

I can say with confidence that array indeed work.  

--
Dave Wolf
Cynergy Systems, Inc.
Macromedia Flex Alliance Partner
http://www.cynergysystems.com

Email:  [EMAIL PROTECTED]
Office: 866-CYNERGY



--- In flexcoders@yahoogroups.com, "Pablo Apanasionek"
<[EMAIL PROTECTED]> wrote:
>
> In this case, the webservice is defined to do all the "magic". But
it's expecting a VO instead of a string.
>  
> Does anyone have an example of a webservice (including wsdl and
mxml) sending an array of items to the server? This is killing me softly. ='(
>  
> ---Pablo Gustavo Apanasionek
> 
> ________________________________
> 
> De: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
En nombre de Jason Hawryluk
> Enviado el: Viernes, 10 de Febrero de 2006 18:01
> Para: flexcoders@yahoogroups.com
> Asunto: RE: [flexcoders] About Webservices and XML request format
> 
> 
> Ahh, Not sure about j2ee but in .net i had to send it as a string
then cast the result to an xml type in the web service (.net code). I also had 
to remove a little namespace stuff as well after casting but before saving to a 
file on the server for example.
> 
> jason
>  
>  -----Message d'origine-----
> De : flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] la part de Pablo Apanasionek
> Envoyé : vendredi 10 février 2006 21:48 À : flexcoders@yahoogroups.com 
> Objet : RE: [flexcoders] About Webservices and XML request format
> 
> 
> 
>       I'm trying to send XML to the WS, and the WS is of the J2EE/Axis kind.
>        
>       ---Pablo Apanasionek
> 
> ________________________________
> 
>       De: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
En nombre de Jason Hawryluk
>       Enviado el: Viernes, 10 de Febrero de 2006 17:43
>       Para: flexcoders@yahoogroups.com
>       Asunto: RE: [flexcoders] About Webservices and XML request format
>       
>       
>       Are you trying to send XML to the web service or receive the xml
from the web service to flex? Is the web service .net or what platform are you 
using?
> 
>               -----Message d'origine-----
>               De : flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] la part de Pablo Apanasionek
>               Envoyé : vendredi 10 février 2006 20:30
>               À : flexcoders@yahoogroups.com
>               Objet : [flexcoders] About Webservices and XML request format
>               
>               
>               Hi again!
>                
>               In my search for workarounds to my previous post "Array
serialization in Webservices", I'm trying to overcome that array-to-item thing 
by entering an XML (well-formed) as a parameter to the WebService.
>                
>               Does anyone have an example on this one?
>                
>               So far, I've done this:
>                
>               1) Changed the format of the request from "object" to "xml".
>               2) Mapped the object to XML (using some XMLTools.as I've found 
> on
one of the thousand sites I've looked so far).
>               3) Assigned the resulting XML to the request.
>                
>               This ends in:
>                
>               a) No result.
>               b) Fault because of XML opening tags translated to &lt;.
>                
>               If I use XML.parseXML in point 2, to "cast" the resulting string
to XML and then inspect it with Trace Panel, the XML is well-formed.
>                
>               Any help?
>                
>               Thanks again!
>               Pablo Apanasionek
> 
> 
> 
>       --
>       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
> Web site design development
<http://groups.yahoo.com/gads?t=ms&k=Web+site+design+development&w1=Web+site+design+development&w2=Computer+software+development&w3=Software+design+and+development&w4=Macromedia+flex&w5=Software+development+best+practice&c=5&s=166&.sig=L-4QTvxB_quFDtMyhrQaHQ>
        Computer software development
<http://groups.yahoo.com/gads?t=ms&k=Computer+software+development&w1=Web+site+design+development&w2=Computer+software+development&w3=Software+design+and+development&w4=Macromedia+flex&w5=Software+development+best+practice&c=5&s=166&.sig=lvQjSRfQDfWudJSe1lLjHw>
        Software design and development
<http://groups.yahoo.com/gads?t=ms&k=Software+design+and+development&w1=Web+site+design+development&w2=Computer+software+development&w3=Software+design+and+development&w4=Macromedia+flex&w5=Software+development+best+practice&c=5&s=166&.sig=1pMBCdo3DsJbuU9AEmO1oQ>
        
> Macromedia flex
<http://groups.yahoo.com/gads?t=ms&k=Macromedia+flex&w1=Web+site+design+development&w2=Computer+software+development&w3=Software+design+and+development&w4=Macromedia+flex&w5=Software+development+best+practice&c=5&s=166&.sig=OO6nPIrz7_EpZI36cYzBjw>
        Software development best practice
<http://groups.yahoo.com/gads?t=ms&k=Software+development+best+practice&w1=Web+site+design+development&w2=Computer+software+development&w3=Software+design+and+development&w4=Macromedia+flex&w5=Software+development+best+practice&c=5&s=166&.sig=f89quyyulIDsnABLD6IXIw>
        
> 
> ________________________________
> 
>       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/> . 
> 
> 
> ________________________________
>






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

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