You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by Mark Church <mc...@www.IN.gov> on 2003/08/19 00:06:10 UTC

Adding Serializers when the --all flag is specified

Recently started to try and use Axis again after a several month hiatus. 
 Things are much improved since the 1_0 release I last tried to use. 
 Got everything working without much trouble.  However, when I tried to 
used wsdl2java with the --all flag I was surprised to find that the code 
that was generated included all of the complex types in my wsdl file but 
the SoapBindingStub did not register the serializers for all these 
types. Specifically, I have defined a Vector that should contain Item 
objects.  The Item class was generated but the code to register the 
serializer was not.  This didn't seem like the right behavior especially 
with the --all flag set.

I'm not sure if this is a perfect solution but I added some code to 
JavaStubGenerator.java so that when --all is specified all DefinedTypes 
in the symbol table are sure to be included.  Does this make any sense 
at all or does the --all flag mean something different?  Please let me 
know what you think.

Thanks,
Mark Church

Re: Adding Serializers when the --all flag is specified

Posted by Chris Haddad <ha...@apache.org>.
Mark -

+1 on your suggested change.  please open a bugzilla report and attach
the patch.

/Chris

On Mon, 18 Aug 2003, Mark Church wrote:

> Recently started to try and use Axis again after a several month hiatus.
>  Things are much improved since the 1_0 release I last tried to use.
>  Got everything working without much trouble.  However, when I tried to
> used wsdl2java with the --all flag I was surprised to find that the code
> that was generated included all of the complex types in my wsdl file but
> the SoapBindingStub did not register the serializers for all these
> types. Specifically, I have defined a Vector that should contain Item
> objects.  The Item class was generated but the code to register the
> serializer was not.  This didn't seem like the right behavior especially
> with the --all flag set.
>
> I'm not sure if this is a perfect solution but I added some code to
> JavaStubGenerator.java so that when --all is specified all DefinedTypes
> in the symbol table are sure to be included.  Does this make any sense
> at all or does the --all flag mean something different?  Please let me
> know what you think.
>
> Thanks,
> Mark Church
>