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:23:08 UTC

Arrays of User-Defined types

Please can someone explain the following to me?  The 
\samples\faults\deploy.wsdd defines a mapping for the Employee type:
<typeMapping
        xmlns:ns="http://faults.samples"
        qname="ns:Employee"
        type="java:samples.faults.Employee"
        serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
      deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
        encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"   />
which I can understand - the Employee class is a bean type.

What I find difficult to understand is the related mapping for an array 
of  Employees:
<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/" />
Why is the namespace given as the service endpoint, rather than the 
class given in the other typeMapping? And why is "_tns1_" given as part 
of the qname? Is there no need for the bean mapping here?

Thanks!

Madeleine