views:

118

answers:

0

Does anyone know how to generate an axis webservice with castor serializer / deserializer?

Current situation:

  • axis webservice has to be build from wsdl with xsd and castor serialization
  • build process has to be automated with an ant script
  • the standard way is to create webservice sources with wsdl2java and then replace the pojos with the pojos createt with castor

Problem:

  • the package structure createt by castor doesn't match the package structure of wsdl2java
  • castor creates pojos for smipleTypes in an subpackage called types

Current workarround:

  • create wsdl2java service
  • replace the pojos with these createt by castor
  • move the pojos in subpackage types to main package (refactoring in eclipse)
  • modify deploy.wsdd to use castor serializer / deserializer

How can i modify the deploy.wsdd to match the castor package structure or is there a way to let the deploy.wsdd to be created with castor, so that no manual modification of castor package structure and deploy.wsdd is needed?

And second, is it possible to do this by an ant script?