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 Stijn Christiaens <st...@vub.ac.be> on 2006/01/12 17:48:14 UTC

WSDD file

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


Re: WSDD file

Posted by Cyrille Le Clerc <cy...@pobox.com>.
   Hello Stijn,

   I didn't find any information about hivemind-axis integration on
hivemind web site (wiki + jira + mailing list). It seems that nobody
has been working on this yet.

   You may suggest this integration on hivemind-user mailing list.

   Cyrille

--
Cyrille Le Clerc
cyrille.leclerc@pobox.com
cyrille.leclerc@fr.ibm.com

On 1/16/06, Stijn Christiaens <st...@vub.ac.be> wrote:
> Sure, no problem. Is there any address you can point me to?
>
> On Fri, 2006-01-13 at 14:33 +0100, Cyrille Le Clerc wrote:
> > You could contribute to the Hivemind-Axis integration :-)
> >
> > Cyrille
> >
> > --
> > Cyrille Le Clerc
> > cleclerc@pobox.com
> > cyrille.leclerc@fr.ibm.com
> >
> > On 1/13/06, Stijn Christiaens <st...@vub.ac.be> wrote:
> > > Hello again Cyrille,
> > >
> > > your advice worked like a charm. Although I did not use the
> > > pico/nanocontainer as this is a Tapestry project and thus also a
> > > Hivemind one.
> > >
> > > Thanks!
> > >
> > > 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 <st...@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
> > > > >
> > > > >
> > > >
> > >
> > >
> >
>
>

Re: WSDD file

Posted by Stijn Christiaens <st...@vub.ac.be>.
Sure, no problem. Is there any address you can point me to?

On Fri, 2006-01-13 at 14:33 +0100, Cyrille Le Clerc wrote:
> You could contribute to the Hivemind-Axis integration :-)
> 
> Cyrille
> 
> --
> Cyrille Le Clerc
> cleclerc@pobox.com
> cyrille.leclerc@fr.ibm.com
> 
> On 1/13/06, Stijn Christiaens <st...@vub.ac.be> wrote:
> > Hello again Cyrille,
> >
> > your advice worked like a charm. Although I did not use the
> > pico/nanocontainer as this is a Tapestry project and thus also a
> > Hivemind one.
> >
> > Thanks!
> >
> > 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 <st...@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
> > > >
> > > >
> > >
> >
> >
> 


Re: WSDD file

Posted by Cyrille Le Clerc <cl...@pobox.com>.
You could contribute to the Hivemind-Axis integration :-)

Cyrille

--
Cyrille Le Clerc
cleclerc@pobox.com
cyrille.leclerc@fr.ibm.com

On 1/13/06, Stijn Christiaens <st...@vub.ac.be> wrote:
> Hello again Cyrille,
>
> your advice worked like a charm. Although I did not use the
> pico/nanocontainer as this is a Tapestry project and thus also a
> Hivemind one.
>
> Thanks!
>
> 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 <st...@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
> > >
> > >
> >
>
>

Re: WSDD file

Posted by Stijn Christiaens <st...@vub.ac.be>.
Hello again Cyrille,

your advice worked like a charm. Although I did not use the
pico/nanocontainer as this is a Tapestry project and thus also a
Hivemind one.

Thanks!

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 <st...@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
> >
> >
> 


Re: WSDD file

Posted by Stijn Christiaens <st...@vub.ac.be>.
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 <st...@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
> >
> >
> 


Re: WSDD file

Posted by Cyrille Le Clerc <cl...@pobox.com>.
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 <st...@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
>
>