You might have to wrap the array inside a wrapper object bean,
ArrayWrapper should be a complex type in the WSDL that encloses
'DocArray'. that would produce the following fava class. This is also
WS-I complient.

public class ArrayWrapper{
  MyArrType arr;
  publicArrayWrapper()...

get+set Arr()...

}
  

Regards,

PAtrick

On Apr 4, 2005 4:13 PM, Ryan Bell <[EMAIL PROTECTED]> wrote:
> Thanks, but my understanding is this isn't true when dealing with
> attachments since they have to be a separate part to be specified in the
> binding with mime (ws-i Attachment Profile 1.0 allows for multiple parts
> also).
> 
> Here's a comment from
> org.apache.axis.wsdl.SymbolTable.getParametersFromParts that's related:
>         // Determine if there's only one element.  For wrapped
>         // style, we normally only have 1 part which is an
>         // element.  But with MIME we could have any number of
>         // types along with that single element.  As long as
>         // there's only ONE element, and it's the same name as
>         // the operation, we can unwrap it.
> 
> I think my problem may be with axis's 'wrapped' style...
> 
> Ryan
> 
> On Mon, 2005-04-04 at 16:24 +0200, Florian Theurich wrote:
> > Hi Ryan,
> >
> >
> >
> > (Something is not working with the list for me right now, that's why I
> > contact you directly. You may post it to the list if you want).
> >
> >
> >
> > When using document/literal the inbound and outbound messages may only
> > contain one <wsdl:part>, so you should create an element that wraps
> > your string and the DocArray.
> >
> >
> >
> > Something like this:
> >
> >
> >
> > <complexType name="DocArray">
> >
> >      <sequence>
> >
> >       <element maxOccurs="unbounded" minOccurs="0" name="docs"
> >
> > type="xsd:hexBinary"/>
> >
> >        </sequence>
> >
> > </complexType>
> >
> >
> >
> > <element name="sendTest">
> >
> >     <complexType>
> >
> >      <sequence>
> >
> >       <element maxOccurs="1" minOccurs="1" name="test"
> > type="xsd:string"/>
> >
> >       <element maxOccurs="unbounded" minOccurs="0" name="docs"
> >
> > type="tns1:DocArray"/>
> >
> >       </sequence>
> >
> >     </complexType>
> >
> > </element>
> >
> >
> >
> > Hope that helps
> >
> > Cheers
> >
> > Florian
> >
> >
> >
> >
> >
> > --
> >
> > Florian Theurich
> >
> > X-CELL COMMUNICATIONS GmbH
> >
> > --------------------------
> >
> >
> >
> > Office Ratingen
> >
> > Broichhofstr. 13
> >
> > 40880 Ratingen
> >
> > Phone:  +49 (0)2102/55344-35
> >
> > Fax:    +49 (0)2102/55344-40
> >
> > --------------------------
> >
> >
> >
> > Office D�sseldorf
> >
> > Glockenstr. 33c
> >
> > 40476 D�sseldorf
> >
> > Phone:  +49 (0)211/58040-30
> >
> > Fax:    +49 (0)211/58040-31
> >
> > --------------------------
> >
> >
> >
> > web:    www.x-cell.com
> >
> > e-mail: [EMAIL PROTECTED]
> >
> > --------------------------
> >
> >
> >
> > X-CELL COMMUNICATIONS unterst�tzt Ihren Unternehmenserfolg durch
> > Konzeption, Realisierung und Betreuung von innovativen webbasierten
> > Kommunikationsl�sungen.
> >
> > X-CELL COMMUNICATIONS ensures the success of your company by
> > conceptual design, development and support of innovative web-based
> > solutions for optimization of communication processes.
> >
> >
> >
> >
> 
>

Reply via email to