cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Goetzmann Bertrand" <>
Subject Hosting a web service in Cocoon with Axis block (RE: Simple question on Cocoon and Web Service)
Date Wed, 08 Feb 2006 12:05:27 GMT

Finally it's not difficult and you must look at axis block.

I post an article here on my web site on this subject, in french (

With the use of the axis block, here the following steps if you want expose a Java class names
"Test" :

- Verify that the axis block is included

- Modify cocoon.xconf 

Find the following XML element

<component class="org.apache.cocoon.components.axis.SoapServerImpl" logger="core.source.soapserver"

You have the sub-element "managed-services" that lists all the services deployed ; add a new
descriptor element pointing to your own DeploymentDescriptor.wsdd file.

An example of a such file :

<deployment xmlns="" 

    <service name="Test" provider="java:RPC"> 
        <parameter name="className" value="Test"/> 
        <parameter name="allowedMethods" value="echo"/> 


Here we have a class named Test with the method "echo" exposed. The class file is in WEB-INF\classes.

- You must restart the cocoon instance

- You can list all the web services with the URL :


if your Cocoon installation has the xsp block

(change localhost et port number according to your configuration)

- If you want the WSDL document of your service, you can use the tool Java2WSDL (from Apache

- If you want to invoke the "Test" service, use the URL 


It works because the example sitemap has the entry

<map:match pattern="rpcrouter"> 
    <map:read type="soap-rpc" mime-type="text/xml"> 

Have a look at the soap-rpc reader.

Hope this helps you.

Bertrand Goetzmann.

-----Message d'origine-----
De : Peter Neu [] 
Envoyé : mercredi 8 février 2006 12:42
À : Goetzmann Bertrand
Objet : AW: Simple question on Cocoon and Web Service

Hello Bertrand,

I want to do the same thing with Cocoon but I have the same problem with
finding documentation. How did you solve the problem with the web service


-----Ursprüngliche Nachricht-----
Von: Goetzmann Bertrand [] 
Gesendet: Freitag, 20. Januar 2006 16:36
Betreff: RE: Simple question on Cocoon and Web Service

Thank you for this information !

Do you know where documentation can be found for the use of the axis block ?

Best regards. 

-----Message d'origine-----
De : [] De la part de
Giacomo Pati
Envoyé : vendredi 20 janvier 2006 10:13
À :
Objet : Re: Simple question on Cocoon and Web Service

Hash: SHA1

And there are the Apache Axis integration samples in

On Fri, 20 Jan 2006, JanGeek wrote:

> Date: Fri, 20 Jan 2006 09:55:46 +0100
> From: JanGeek <>
> Reply-To:
> To:
> Subject: Re: Simple question on Cocoon and Web Service
> Hi Bertrand,
> you may have a look at the wiki-page:
> On Friday 20 January 2006 09:20, Goetzmann Bertrand wrote:
>> Hi again,
>> I know there is a way to use Cocoon as a SOAP client to invoke a web
> service, but what about implementing a web service with Cocoon ? Is it 
> out of the scope of Cocoon ?
>> Thank you.
>> "As Java implies platform independence, and XML implies language 
>> independence, JXTA implies network independence."
>> B e r t r a n d   G o e t z m a n n
>> - - - - - - - - - - - - - - - - - - - - - Sun Certified Developer for 
>> the Java 2 Platform Sun Certified Enterprise Architect for J2EE 
>> Technology
>> <!-- O B J E C T  - E V E R Y W H E R E, sur Apache Cocoon --> 
>> <site_web href=" "/>
>> LaSer-Symag
>> Tél. 04 92 91 34 00

- --
Giacomo Pati
Otego AG, Switzerland - Orixo, the XML business
alliance - -----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)


To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message