You can add dependencies on the necessary spring modules. We actually consume
webservices from within our Cocoon2.2 application.
I’m not sure exactly which of the below dependencies are needed anymore but I
will just list the ones we are using:
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<spring.version>2.5.1</spring.version>
<spring.ws.version>1.5.10</spring.ws.version>
</properties>
<!-- spring webservices -->
<dependency>
<groupId>org.springframework.ws</groupId>
<artifactId>spring-ws-core</artifactId>
<version>${spring.ws.version}</version>
</dependency>
<dependency>
<groupId>org.springframework.ws</groupId>
<artifactId>spring-oxm-tiger</artifactId>
<version>${spring.ws.version}</version>
</dependency>
<dependency>
<groupId>org.springframework.ws</groupId>
<artifactId>spring-oxm</artifactId>
<version>${spring.ws.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context-support</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-tx</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-web</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-aspects</artifactId>
<version>${spring.version}</version>
</dependency>
Robby
From: Francesco Chicchiriccò [mailto:[email protected]]
Sent: Monday, January 21, 2013 1:26 PM
To: [email protected]
Subject: Re: [C2.2] Provide or consume Webservices with Cocoon 2.2
On 21/01/2013 09:45, Matthias Müller wrote:
I thought that the spring integration is also part of Cocoon 2.2 !?
If Jos is referring to the cocoon-spring-configurator, I confirm that it is
included in C2.2 (and C3, of course).
Unfortunately, I don't know if there is any sample of this kind available.
If you succeed with this approach, please report.
Regards.
________________________________
Von: Jos Snellings
<[email protected]><mailto:[email protected]>
An: [email protected]<mailto:[email protected]>; Matthias Müller
<[email protected]><mailto:[email protected]>
Gesendet: 9:28 Montag, 21.Januar 2013
Betreff: Re: [C2.2] Provide or consume Webservices with Cocoon 2.2
Hi Matthias,
As a matter of fact, cocoon can host spring modules. You can plug in most every
module using the well-known IoC mechanism.
In a typical block you will be able to configure things in the
META-INF/cocoon/spring folder.
This is in my opinion one of the strong points of C3 over C2.2.
Cheers,
Jos
On Mon, Jan 21, 2013 at 8:59 AM, Matthias Müller
<[email protected]<mailto:[email protected]>> wrote:
I guess upgrading to Cocoon 3 means a lot of work. Please correct me, if I'm
wrong here.
I'm not to deep in cocoon development, so maybe I'm totally wrong with the
following idea:
There is a Cocoon spring integration. Does that mean that coccon can host
spring modules? Could I maybe use the a spring webservice here?
Regards,
Matthias
________________________________
Von: Francesco Chicchiriccò <[email protected]<mailto:[email protected]>>
An: [email protected]<mailto:[email protected]>
Gesendet: 12:32 Samstag, 19.Januar 2013
Betreff: Re: [C2.2] Provide or consume Webservices with Cocoon 2.2
On 17/01/2013 14:26, Matthias Müller wrote:
Hi there,
are there any tutorials / samples about implementing webservice support in
cocoon 2.2.
All the sources I found are based on Cocoon 2.1x, e.g.
http://wiki.apache.org/cocoon/WebServiceServer
Hi Matthias,
I don't think there is any different sample for C2.2; possibly, the wiki page
content mentioned above shouldn't be hard to upgrade to C2.2, but I cannot help
you in this field, unfortunately.
If you are interested in webservice with Cocoon, I would suggest Cocoon 3 (not
yet fully released but already proven stable) with a dedicated support for REST
[1].
Regards.
[1]
http://cocoon.apache.org//3.0/reference/html/webapps.html#webapps.rest<http://cocoon.apache.org/3.0/reference/html/webapps.html#webapps.rest>
--
Francesco Chicchiriccò
ASF Member, Apache Syncope PMC chair, Apache Cocoon PMC Member
http://people.apache.org/~ilgrosso/