You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Albert López <al...@gmail.com> on 2005/11/14 14:41:39 UTC
Only one class and instance for several PortTypes
Hello,
I would like to have different portTypes but implemented only using a class.
When I use wsdl2java, each portType is mapped in a different class and I
would like it was just a class. It would be like a class that implement
several interfaces. Moreover I would like that axis only creates an instance
(object) for all the portTypes. Using and advice from Ron Reynolds (at the
bottom of the mail) Im able to map all the portTypes in a class but it
creates an object for each portType.
Thank you for your time
Best regards
Albert
Rons advice:
class Impl implements Service1, Service2, ...
and then use that class's name thus:
<deployment...>
<service name="Service1"...>
<parameter name="className" value="my.big.ws.Impl"/>
</service>
<service name="Service2">
<parameter name="className" value="my.big.ws.Impl"/>
</service>