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

Robby Pelssers <[email protected]>
Newsgroups gmane.text.xml.cocoon.user
Message-ID <A5838A1302A3AC48B4A90FAD790B51AB09F97693@AMXPRD0410MB366.eurprd04.prod.outlook.com>
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>
                <groupId>com.nxp.spider2</groupId>
                <artifactId>jobmonitorClient</artifactId>
                <version>1.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:[email protected]]
Sent: Tuesday, January 22, 2013 11:32 AM
To: [email protected]
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 <[email protected]<mailto:[email protected]>>
An: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>>
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:[email protected]]
Sent: Monday, January 21, 2013 2:14 PM
To: [email protected]<mailto:[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.