Re: [C2.2] Provide or consume Webservices with Cocoon 2.2

2013-01-22 Thread Matthias Müller
Thanks for the provided link, Robby. Now it would be interesting to see how you 
consume your movie webservice within a 
cocoon 2.2 pipeline. Do you call the webservice within a sitemap using a custom 
generator? Or via flow script?

Matthias




 Von: Robby Pelssers robby.pelss...@nxp.com
An: users@cocoon.apache.org users@cocoon.apache.org 
Gesendet: 20:40 Montag, 21.Januar 2013
Betreff: RE: [C2.2] Provide or consume Webservices with Cocoon 2.2
 

 
Not sure if that was addressed to me.  I did blog about how to use Spring-ws in 
the past.  It’s not really cocoon related but you might as well consume or 
provide a webservice with Cocoon. It might be a bit outdated already but I 
guess it won’t hurt you to go over it quickly:
 
http://robbypelssers.blogspot.nl/2010/10/building-webservices-with-spring-ws-and.html
 
 
 
From:gelo1234 [mailto:gelo1...@gmail.com] 
Sent: Monday, January 21, 2013 2:14 PM
To: users@cocoon.apache.org
Subject: Re: [C2.2] Provide or consume Webservices with Cocoon 2.2
 
Can you provide some examples of such configuration and Web Services logic here 
? Spring Web Services + cocoon 3.0 ? 
Greetings,
Greg

RE: [C2.2] Provide or consume Webservices with Cocoon 2.2

2013-01-22 Thread Robby Pelssers
So our setup is like this:

We have a separate project which represents the webservice client…

http://robbypelssers.blogspot.nl/2010/10/building-webservices-with-spring-ws_3532.html

So basically we only needed to declare a maven dependency on this project.  So 
far easy to understand I hope.
dependency
groupIdcom.nxp.spider2/groupId
artifactIdjobmonitorClient/artifactId
version1.1.11/version
/dependency

So in the spring application context of our Cocoon [2.2] app  we configured the 
client like below:

  !-- jobmonitorClient --
  oxm:jaxb2-marshaller id=jaxb2marshaller 
contextPath=com.nxp.spider2.jobmonitorClient.webservice.domain/

  bean id=webServiceTemplate 
class=org.springframework.ws.client.core.WebServiceTemplate
property name=marshaller ref=jaxb2marshaller/
property name=unmarshaller ref=jaxb2marshaller/
property name=defaultUri value=${logmonitor.EPR}/
  /bean

  bean id=jobMonitorClient 
class=com.nxp.spider2.webservice.client.JobMonitorClientImpl
property name=webServiceTemplate ref=webServiceTemplate/
  /bean



Now it becomes interesting ;-)   But I’m just going to redirect again to my 
blog.  We consumed the webservice from transforming custom tags which were 
transformed using XSLT extensions … Just read this page and it will become 
clear…

http://robbypelssers.blogspot.nl/2011/09/power-of-apache-cocoon-xquery-and-xslt.html

Let me know if it’s too vague… willing to answer questions.

Robby



From: Matthias Müller [mailto:pym...@yahoo.de]
Sent: Tuesday, January 22, 2013 11:32 AM
To: users@cocoon.apache.org
Subject: Re: [C2.2] Provide or consume Webservices with Cocoon 2.2

Thanks for the provided link, Robby. Now it would be interesting to see how you 
consume your movie webservice within a cocoon 2.2 pipeline. Do you call the 
webservice within a sitemap using a custom generator? Or via flow script?

Matthias


Von: Robby Pelssers robby.pelss...@nxp.commailto:robby.pelss...@nxp.com
An: users@cocoon.apache.orgmailto:users@cocoon.apache.org 
users@cocoon.apache.orgmailto:users@cocoon.apache.org
Gesendet: 20:40 Montag, 21.Januar 2013
Betreff: RE: [C2.2] Provide or consume Webservices with Cocoon 2.2

Not sure if that was addressed to me.  I did blog about how to use Spring-ws in 
the past.  It’s not really cocoon related but you might as well consume or 
provide a webservice with Cocoon. It might be a bit outdated already but I 
guess it won’t hurt you to go over it quickly:

http://robbypelssers.blogspot.nl/2010/10/building-webservices-with-spring-ws-and.html



From: gelo1234 [mailto:gelo1...@gmail.com]
Sent: Monday, January 21, 2013 2:14 PM
To: users@cocoon.apache.orgmailto:users@cocoon.apache.org
Subject: Re: [C2.2] Provide or consume Webservices with Cocoon 2.2

Can you provide some examples of such configuration and Web Services logic here 
? Spring Web Services + cocoon 3.0 ?
Greetings,
Greg



Re: [C2.2] Provide or consume Webservices with Cocoon 2.2

2013-01-21 Thread Matthias Müller
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ò ilgro...@apache.org
An: users@cocoon.apache.org 
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

-- 
Francesco Chicchiriccò ASF Member, Apache Syncope PMC chair, Apache Cocoon PMC 
Member http://people.apache.org/~ilgrosso/ 

Re: [C2.2] Provide or consume Webservices with Cocoon 2.2

2013-01-21 Thread Jos Snellings
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 pym...@yahoo.de 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ò ilgro...@apache.org
 *An:* users@cocoon.apache.org
 *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

 --
 Francesco Chicchiriccò

 ASF Member, Apache Syncope PMC chair, Apache Cocoon PMC 
 Memberhttp://people.apache.org/~ilgrosso/






-- 
All generous minds have a horror of what are commonly called Facts. They
are the brute beasts of the intellectual domain.
-- Thomas Hobbes
 http://www.brainyquote.com/quotes/quotes/t/thomashobb118630.html


Re: [C2.2] Provide or consume Webservices with Cocoon 2.2

2013-01-21 Thread Matthias Müller
I thought that the spring integration is also part of Cocoon 2.2 !?





 Von: Jos Snellings jos.snelli...@upperware.biz
An: users@cocoon.apache.org; Matthias Müller pym...@yahoo.de 
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 pym...@yahoo.de 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ò ilgro...@apache.org
An: users@cocoon.apache.org 
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

-- 
Francesco Chicchiriccò ASF Member, Apache Syncope PMC chair, Apache Cocoon PMC 
Member http://people.apache.org/~ilgrosso/ 




-- 
All generous minds have a horror of what are commonly called Facts. They are 
the brute beasts of the intellectual domain. 
-- Thomas Hobbes

Re: [C2.2] Provide or consume Webservices with Cocoon 2.2

2013-01-21 Thread Francesco Chicchiriccò

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 jos.snelli...@upperware.biz
*An:* users@cocoon.apache.org; Matthias Müller pym...@yahoo.de
*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 pym...@yahoo.de 
mailto:pym...@yahoo.de 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ò ilgro...@apache.org
mailto:ilgro...@apache.org
*An:* users@cocoon.apache.org mailto:users@cocoon.apache.org
*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


--
Francesco Chicchiriccò

ASF Member, Apache Syncope PMC chair, Apache Cocoon PMC Member
http://people.apache.org/~ilgrosso/



Re: [C2.2] Provide or consume Webservices with Cocoon 2.2

2013-01-21 Thread Jos Snellings
I was not referring to cocoon-spring-configurator explicitly. In my
application, I have configured extra run time dependencies
via spring. The configuration files are gracefully picked up. But this is
cocoon-3. I have no experience with c 2.2.

However, it is not difficult to give it a try
Jos


On Mon, Jan 21, 2013 at 1:26 PM, Francesco Chicchiriccò ilgro...@apache.org
 wrote:

  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 
 jos.snelli...@upperware.bizjos.snelli...@upperware.biz
 *An:* users@cocoon.apache.org; Matthias Müller 
 pym...@yahoo.depym...@yahoo.de
 *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 pym...@yahoo.de 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ò ilgro...@apache.org
 *An:* users@cocoon.apache.org
 *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

 --
 Francesco Chicchiriccò

 ASF Member, Apache Syncope PMC chair, Apache Cocoon PMC 
 Memberhttp://people.apache.org/~ilgrosso/




-- 
All generous minds have a horror of what are commonly called Facts. They
are the brute beasts of the intellectual domain.
-- Thomas Hobbes
 http://www.brainyquote.com/quotes/quotes/t/thomashobb118630.html


RE: [C2.2] Provide or consume Webservices with Cocoon 2.2

2013-01-21 Thread Robby Pelssers
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.sourceEncodingUTF-8/project.build.sourceEncoding
spring.version2.5.1/spring.version
spring.ws.version1.5.10/spring.ws.version
/properties

!-- spring webservices --
dependency
groupIdorg.springframework.ws/groupId
artifactIdspring-ws-core/artifactId
version${spring.ws.version}/version
/dependency
dependency
groupIdorg.springframework.ws/groupId
artifactIdspring-oxm-tiger/artifactId
version${spring.ws.version}/version
/dependency
dependency
groupIdorg.springframework.ws/groupId
artifactIdspring-oxm/artifactId
version${spring.ws.version}/version
/dependency
dependency
groupIdorg.springframework/groupId
artifactIdspring-context-support/artifactId
version${spring.version}/version
/dependency
dependency
groupIdorg.springframework/groupId
artifactIdspring-tx/artifactId
version${spring.version}/version
/dependency
dependency
groupIdorg.springframework/groupId
artifactIdspring-web/artifactId
version${spring.version}/version
/dependency
dependency
groupIdorg.springframework/groupId
artifactIdspring-aspects/artifactId
version${spring.version}/version
/dependency

Robby

From: Francesco Chicchiriccò [mailto:ilgro...@apache.org]
Sent: Monday, January 21, 2013 1:26 PM
To: users@cocoon.apache.org
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 
jos.snelli...@upperware.bizmailto:jos.snelli...@upperware.biz
An: users@cocoon.apache.orgmailto:users@cocoon.apache.org; Matthias Müller 
pym...@yahoo.demailto:pym...@yahoo.de
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 
pym...@yahoo.demailto:pym...@yahoo.de 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ò ilgro...@apache.orgmailto:ilgro...@apache.org
An: users@cocoon.apache.orgmailto:users@cocoon.apache.org
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.resthttp://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/


RE: [C2.2] Provide or consume Webservices with Cocoon 2.2

2013-01-21 Thread Robby Pelssers
Not sure if that was addressed to me.  I did blog about how to use Spring-ws in 
the past.  It’s not really cocoon related but you might as well consume or 
provide a webservice with Cocoon. It might be a bit outdated already but I 
guess it won’t hurt you to go over it quickly:

http://robbypelssers.blogspot.nl/2010/10/building-webservices-with-spring-ws-and.html



From: gelo1234 [mailto:gelo1...@gmail.com]
Sent: Monday, January 21, 2013 2:14 PM
To: users@cocoon.apache.org
Subject: Re: [C2.2] Provide or consume Webservices with Cocoon 2.2

Can you provide some examples of such configuration and Web Services logic here 
? Spring Web Services + cocoon 3.0 ?
Greetings,
Greg


Re: [C2.2] Provide or consume Webservices with Cocoon 2.2

2013-01-19 Thread Francesco Chicchiriccò

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

--
Francesco Chicchiriccò

ASF Member, Apache Syncope PMC chair, Apache Cocoon PMC Member
http://people.apache.org/~ilgrosso/