Hello all,

I have a bunch of objects and exceptions to expose from my webservice and writting the wsdd start to be very teadious.

I was wondering if anybody of you knows a tool that allows to generate automatically the set of <typeMapping> and <beanMapping> from a java package containing the object/exceptions I want to expose.

I would imagine it to take in input :
- a java package (i.e com.domain.myservice.rpc.datatypes.faults)
- a corresponding XML namespace (i.e urn:faults.datatypes.rpc.myservice.domain.com)
- a qname (i.e. MyServiceFault)
- a serializer (i.e. org.apache.axis.encoding.ser.BeanSerializerFactory)
- a deserializer (i.e. org.apache.axis.encoding.ser.BeanDeserializerFactory)
- the encoding style (i.e. http://schemas.xmlsoap.org/soap/encoding/)
- typeMapping or beanMapping?

Then I would get the set of <typeMapping> for the classes defined in my package as:

<typeMapping
      xmlns:sableNS="urn:faults.datatypes.rpc.myservice.domain.com"
      qname="sableNS:MyServiceFault"
      type="java:com.domain.myservice.rpc.datatypes.faults.MyServiceException"
      serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
      deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
      encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";
/>

and also the same kind of thing if I asked to generate <beanMapping> instead.

Is there any free/commercial tools for that?
Has anybody already developed such a tool? If yes I might be able to provide some 
contribution for developing it.

Thanks in advance for any hints.

Cheers,
Patrick.



Reply via email to