You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Madeleine Wright <m....@ru.ac.za> on 2005/03/28 02:49:52 UTC

Arrays of User-Defined Types(2)

I've discovered that the type-mapping for an array of a user-defined 
type mentioned in my earlier posting:
<typeMapping
        xmlns:ns="http://localhost:8080/ch09/services/Employee"
        qname="ns:ArrayOf_tns1_Employee"
        type="java:samples.faults.Employee[]"
        serializer="org.apache.axis.encoding.ser.ArraySerializerFactory"
     deserializer="org.apache.axis.encoding.ser.ArrayDeserializerFactory"
        encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"  />
is passed through to the generated WSDL as an array only when the 
default styles (RPC/enc)is set.  If the default styles are 
document/literal there is no mention of an array in the generated wsdl. 
  Please can someone suggest what should go into the wsdd file to make 
it array-aware?

Thanks.


Re: Arrays of User-Defined Types(2)

Posted by Madeleine Wright <m....@ru.ac.za>.
Thanks. That helps  Then it's working as it should - it does say that.

Madeleine

Anne Thomas Manes wrote:
> You should use the wsdl:array structure only when using rpc/encoding.
> Therefore Axis is working properly.
> 
> When using any form of literal encoding (rpc, wrapped, or document)
> then an array should be mapped to an element with
> maxOccurs="unbounded".
> 
> Anne
> 
> 
> On Mon, 28 Mar 2005 02:49:52 +0200, Madeleine Wright <m....@ru.ac.za> wrote:
> 
>>I've discovered that the type-mapping for an array of a user-defined
>>type mentioned in my earlier posting:
>><typeMapping
>>        xmlns:ns="http://localhost:8080/ch09/services/Employee"
>>        qname="ns:ArrayOf_tns1_Employee"
>>        type="java:samples.faults.Employee[]"
>>        serializer="org.apache.axis.encoding.ser.ArraySerializerFactory"
>>     deserializer="org.apache.axis.encoding.ser.ArrayDeserializerFactory"
>>        encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"  />
>>is passed through to the generated WSDL as an array only when the
>>default styles (RPC/enc)is set.  If the default styles are
>>document/literal there is no mention of an array in the generated wsdl.
>>  Please can someone suggest what should go into the wsdd file to make
>>it array-aware?
>>
>>Thanks.
>>
>>
> 
> 


Re: Arrays of User-Defined Types(2)

Posted by Anne Thomas Manes <at...@gmail.com>.
You should use the wsdl:array structure only when using rpc/encoding.
Therefore Axis is working properly.

When using any form of literal encoding (rpc, wrapped, or document)
then an array should be mapped to an element with
maxOccurs="unbounded".

Anne


On Mon, 28 Mar 2005 02:49:52 +0200, Madeleine Wright <m....@ru.ac.za> wrote:
> I've discovered that the type-mapping for an array of a user-defined
> type mentioned in my earlier posting:
> <typeMapping
>         xmlns:ns="http://localhost:8080/ch09/services/Employee"
>         qname="ns:ArrayOf_tns1_Employee"
>         type="java:samples.faults.Employee[]"
>         serializer="org.apache.axis.encoding.ser.ArraySerializerFactory"
>      deserializer="org.apache.axis.encoding.ser.ArrayDeserializerFactory"
>         encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"  />
> is passed through to the generated WSDL as an array only when the
> default styles (RPC/enc)is set.  If the default styles are
> document/literal there is no mention of an array in the generated wsdl.
>   Please can someone suggest what should go into the wsdd file to make
> it array-aware?
> 
> Thanks.
> 
>