axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stijn Christiaens <stijn.christia...@vub.ac.be>
Subject Re: WSDD file
Date Fri, 13 Jan 2006 11:02:06 GMT
Hello Cyrille,

thanks for the tip. I will try it at once.

Ciao,

Stijn

On Thu, 2006-01-12 at 18:38 +0100, Cyrille Le Clerc wrote:
> Hello Stijn,
> 
> I is not a special trick, Axis has been designed to plug other
> services factories.
> 
> * modify the wsdd :
>   -> set the "provider" attribute to "Handler"
>   -> add a child element <parameter name="handlerClass"
> value="com.mycompany.MyRPCProvider"/>
> * code your own factory (ie "MyRPCProvider.java"). You should subclass
> RPCProvider.
> 
> Sample of wsdd (extracted from nanowar's AXIS-README.txt, see
> paragraph below)  :
> <service name="MyService" provider="Handler">
>   <parameter name="handlerClass"
> value="org.nanocontainer.nanowar.axis.NanoRPCProvider"/>
>   <parameter name="className" value="com.company.MyService"/>
>   <parameter name="allowedMethods" value="*"/>
> </service>
> 
> PicoContainer can be used to instantiate your services thanks to the
> NanoWar project. This gives a good sample to plug your own factory if
> PicoContainer does not fit your needs.
> - how to modify your wsdd :
> http://svn.picocontainer.codehaus.org/java/nanocontainer-nanowar/trunk/nanowar/AXIS-README.txt?rev=1993&view=markup
> - how to code your axis services factory :
> http://svn.picocontainer.codehaus.org/java/nanocontainer-nanowar/trunk/nanowar/src/java/org/nanocontainer/nanowar/axis/NanoRPCProvider.java?rev=1993&view=markup
> 
> Hope this helps,
> 
> Cyrille
> 
> --
> Cyrille Le Clerc
> cleclerc@pobox.com
> cyrille.leclerc@fr.ibm.com
> 
> On 1/12/06, Stijn Christiaens <stijn.christiaens@vub.ac.be> wrote:
> > Hello everybody,
> >
> > is there any way to do a special trick and let Axis not instantiate a
> > webservice object through the no-argument constructor but for instance
> > through a Factory or factory method?
> >
> > Thanks in advance,
> >
> > Ciao,
> >
> > Stijn
> >
> >
> 


Mime
View raw message