I would make T ... T3 into java beans (private members with
corresponding public getters and setters).  If you can't do that, wrap
them with classes that are.  Axis will have a hard time with your
classes becuase they are public instance variables.

You could write your own serializers, but that would be lots of work.

Very compelx things can genrally be done with ease if you stick with
these conventions.

Ben Tomasini



On Tue, 2002-12-10 at 22:17, Dongsheng Song wrote:
> I use a very complex type for soap, Please Help me modify my deploy.wsdd file:
> 
> <deployment xmlns="http://xml.apache.org/axis/wsdd/";
>             xmlns:java="http://xml.apache.org/axis/wsdd/providers/java";>
> 
> <service name="EnterUp" provider="java:RPC">
> 
>   <parameter name="className" value="EnterUp"/>
>   <parameter name="allowedMethods" value="*"/>
> 
>   <typeMapping
>         xmlns:ns="http://soapinterop.org/xsd";
>         qname="ns:T"
>         type="java:T"
>         serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
>         deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
>         encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";
>       />
> </service>
> 
> </deployment>
> 
> public class EnterUp
> {
>   public String register(T info)
>   {
>   }
> }
> 
> public class T implements java.io.Serializable{
>   public T2 fd;
>   public T3[] fd2; 
> }
> 
> public class T2 implements java.io.Serializable{
>   public String fd;
>   public String fd2;
> }
> 
> public class T3 implements java.io.Serializable{
>   public String fd;
>   public String fd2;
> }
> 
> furthermore, is ther a java2wsdd tool ?


Reply via email to