It looks as if wsdl2java doesn't support this.  I took a look at JavaStubWriter 
and it doesn't support writing out any custom mappings.  

It does, however, write out bean mappings for me which seems strange since I 
have to explicitly list all bean mappings in my server-config.wsdd (it would be 
nice if the bean ser/deser would be the default!). 

I was able to successfully use a client-config.wsdd file in the root of my 
client jar file for the type mappings.  I have all the mappings in one file 
that is copied into both my client-config.wsdd and server-config.wsdd files as 
part of my build.

-Ryan

-----Original Message-----
From: Ryan Norris [mailto:[EMAIL PROTECTED] 
Sent: Friday, May 26, 2006 10:13 AM
To: [email protected]
Subject: How do I get wsdl2java to include code in generated stub for custom 
serializers/deserializers?


> I have written a custom serializer and deserializer and I would like the stub 
> that is generated from wsdl2java to register them for one of my objects.  The 
> generated stub's constructor contains code that registers Axis' serializers 
> and deserializers, however, I can't figure out how to get the task to 
> generate code for my custom serializer/deserializer.   Can someone help me 
> figure out if this is possible, and if so how I might be able to do it?
> 
> I can specify my custom mappings with the java2wsdl task using the 
> <complextype>.  For ex:
> 
> <complextype classname="my.thingy.MyThingy" 
> namespace="http://thingy.my"; serializer="my.ser.MySerializerFactory" 
> deserializer="my.ser.MyDeserializerFactory"/>
> 
> I don't see an equivalent for wsdl2java.
> 
> I am using Axis 1.2.1 and the ant tasks to generate the stubs.
> 
> Thanks,
> -Ryan
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to