You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@lenya.apache.org by Sachin <sa...@techblue.co.uk> on 2010/10/13 12:20:56 UTC

Developing webservice in cocoon

Hi All

I want to create a webservice in cocoon 2.1.11.

Can anybody please let me know if there is any tutorial or documentation 
available for this?

Regards
Sachin

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org


Re: Developing webservice in cocoon

Posted by Sachin <sa...@techblue.co.uk>.
Hi Florent

The example is successfully implemented. Actually it was based on old 
cocoon version 2.0.3 where I guess there was some problem with SQL 
transformer. Now I integrated the files to cocoon 2.1.11 and I can see 
that it takes defaultContentType parameter and it is working fine now.

Regards
Sachin



On Thursday 14 October 2010 01:56 AM, florent andré wrote:
> Hi Sachin,
>
> Are you sure that you send a proper xml file ? (cause of :>
> java.io.IOException: Required header ContentType is missing.)
>
> Can you explain a little bit more your context ? (file you send, match
> code,..)
>
> Cheers
>
> On 10/13/2010 02:08 PM, Sachin wrote:
>    
>> Hi Vik
>>
>> Thanks for link. However when I tried to run the webservice I got this
>> error in logs:
>>
>> ERROR   (2010-10-13) 16:34.15:321   [core.manager]
>> (/cocoon-soap/xmlservice) http-8380-Processor25/StreamGenerator:
>> StreamGenerator.generate()
>> java.io.IOException: Required header ContentType is missing.
>>      at
>> org.apache.cocoon.generation.StreamGenerator.generate(StreamGenerator.java:126)
>>
>>      at
>> org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEventPipeline.java:250)
>>
>>      at
>> org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingStreamPipeline.java:399)
>>
>>      at
>> org.apache.cocoon.www.sitemap_xmap.matchN10092(/home/sachin/installs/orig/tomcat5528/work/Catalina/localhost/cocoon-soap/cocoon-files/org/apache/cocoon/www/sitemap_xmap.java:954)
>>
>>      at
>> org.apache.cocoon.www.sitemap_xmap.process(/home/sachin/installs/orig/tomcat5528/work/Catalina/localhost/cocoon-soap/cocoon-files/org/apache/cocoon/www/sitemap_xmap.java:633)
>>
>>      at
>> org.apache.cocoon.www.sitemap_xmap.process(/home/sachin/installs/orig/tomcat5528/work/Catalina/localhost/cocoon-soap/cocoon-files/org/apache/cocoon/www/sitemap_xmap.java:560)
>>
>>      at org.apache.cocoon.sitemap.Handler.process(Handler.java:224)
>>      at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179)
>>      at
>> org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:154)
>>      at org.apache.cocoon.Cocoon.process(Cocoon.java:575)
>>      at
>> org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:999)
>>      at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
>>      at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
>>
>>      at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
>>
>>      at
>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
>>
>>      at
>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
>>
>>      at
>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
>>
>>      at
>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
>>
>>
>> Please suggest.
>>
>> Regards
>> Sachin
>>
>> On Wednesday 13 October 2010 03:57 PM, Vik Tara wrote:
>>      
>>> Try this:
>>> http://wiki.apache.org/cocoon/WebServiceServer?highlight=%28soap%29
>>>
>>> On 10/13/2010 11:20 AM, Sachin wrote:
>>>        
>>>> Hi All
>>>>
>>>> I want to create a webservice in cocoon 2.1.11.
>>>>
>>>> Can anybody please let me know if there is any tutorial or
>>>> documentation available for this?
>>>>
>>>> Regards
>>>> Sachin
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
>>>> For additional commands, e-mail: user-help@lenya.apache.org
>>>>
>>>>          
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
>>> For additional commands, e-mail: user-help@lenya.apache.org
>>>
>>>        
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
>> For additional commands, e-mail: user-help@lenya.apache.org
>>
>>      
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
> For additional commands, e-mail: user-help@lenya.apache.org
>
>    


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org


Re: Developing webservice in cocoon

Posted by florent andré <fl...@4sengines.com>.
Hi Sachin,

Are you sure that you send a proper xml file ? (cause of : >
java.io.IOException: Required header ContentType is missing.)

Can you explain a little bit more your context ? (file you send, match
code,..)

Cheers

On 10/13/2010 02:08 PM, Sachin wrote:
> Hi Vik
> 
> Thanks for link. However when I tried to run the webservice I got this
> error in logs:
> 
> ERROR   (2010-10-13) 16:34.15:321   [core.manager]
> (/cocoon-soap/xmlservice) http-8380-Processor25/StreamGenerator:
> StreamGenerator.generate()
> java.io.IOException: Required header ContentType is missing.
>     at
> org.apache.cocoon.generation.StreamGenerator.generate(StreamGenerator.java:126)
> 
>     at
> org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEventPipeline.java:250)
> 
>     at
> org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingStreamPipeline.java:399)
> 
>     at
> org.apache.cocoon.www.sitemap_xmap.matchN10092(/home/sachin/installs/orig/tomcat5528/work/Catalina/localhost/cocoon-soap/cocoon-files/org/apache/cocoon/www/sitemap_xmap.java:954)
> 
>     at
> org.apache.cocoon.www.sitemap_xmap.process(/home/sachin/installs/orig/tomcat5528/work/Catalina/localhost/cocoon-soap/cocoon-files/org/apache/cocoon/www/sitemap_xmap.java:633)
> 
>     at
> org.apache.cocoon.www.sitemap_xmap.process(/home/sachin/installs/orig/tomcat5528/work/Catalina/localhost/cocoon-soap/cocoon-files/org/apache/cocoon/www/sitemap_xmap.java:560)
> 
>     at org.apache.cocoon.sitemap.Handler.process(Handler.java:224)
>     at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179)
>     at
> org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:154)
>     at org.apache.cocoon.Cocoon.process(Cocoon.java:575)
>     at
> org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:999)
>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
>     at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
> 
>     at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
> 
>     at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
> 
>     at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
> 
>     at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
> 
>     at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
> 
> 
> Please suggest.
> 
> Regards
> Sachin
> 
> On Wednesday 13 October 2010 03:57 PM, Vik Tara wrote:
>> Try this:
>> http://wiki.apache.org/cocoon/WebServiceServer?highlight=%28soap%29
>>
>> On 10/13/2010 11:20 AM, Sachin wrote:
>>> Hi All
>>>
>>> I want to create a webservice in cocoon 2.1.11.
>>>
>>> Can anybody please let me know if there is any tutorial or
>>> documentation available for this?
>>>
>>> Regards
>>> Sachin
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
>>> For additional commands, e-mail: user-help@lenya.apache.org
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
>> For additional commands, e-mail: user-help@lenya.apache.org
>>
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
> For additional commands, e-mail: user-help@lenya.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org


Re: Developing webservice in cocoon

Posted by Sachin <sa...@techblue.co.uk>.
Hi Vik

Thanks for link. However when I tried to run the webservice I got this 
error in logs:

ERROR   (2010-10-13) 16:34.15:321   [core.manager] 
(/cocoon-soap/xmlservice) http-8380-Processor25/StreamGenerator: 
StreamGenerator.generate()
java.io.IOException: Required header ContentType is missing.
     at 
org.apache.cocoon.generation.StreamGenerator.generate(StreamGenerator.java:126)
     at 
org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEventPipeline.java:250)
     at 
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingStreamPipeline.java:399)
     at 
org.apache.cocoon.www.sitemap_xmap.matchN10092(/home/sachin/installs/orig/tomcat5528/work/Catalina/localhost/cocoon-soap/cocoon-files/org/apache/cocoon/www/sitemap_xmap.java:954)
     at 
org.apache.cocoon.www.sitemap_xmap.process(/home/sachin/installs/orig/tomcat5528/work/Catalina/localhost/cocoon-soap/cocoon-files/org/apache/cocoon/www/sitemap_xmap.java:633)
     at 
org.apache.cocoon.www.sitemap_xmap.process(/home/sachin/installs/orig/tomcat5528/work/Catalina/localhost/cocoon-soap/cocoon-files/org/apache/cocoon/www/sitemap_xmap.java:560)
     at org.apache.cocoon.sitemap.Handler.process(Handler.java:224)
     at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179)
     at 
org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:154)
     at org.apache.cocoon.Cocoon.process(Cocoon.java:575)
     at 
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:999)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
     at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
     at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
     at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
     at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
     at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
     at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)

Please suggest.

Regards
Sachin

On Wednesday 13 October 2010 03:57 PM, Vik Tara wrote:
> Try this:
> http://wiki.apache.org/cocoon/WebServiceServer?highlight=%28soap%29
>
> On 10/13/2010 11:20 AM, Sachin wrote:
>> Hi All
>>
>> I want to create a webservice in cocoon 2.1.11.
>>
>> Can anybody please let me know if there is any tutorial or 
>> documentation available for this?
>>
>> Regards
>> Sachin
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
>> For additional commands, e-mail: user-help@lenya.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
> For additional commands, e-mail: user-help@lenya.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org


Re: Developing webservice in cocoon

Posted by Vik Tara <vi...@propco.co.uk>.
Try this:
http://wiki.apache.org/cocoon/WebServiceServer?highlight=%28soap%29

On 10/13/2010 11:20 AM, Sachin wrote:
> Hi All
>
> I want to create a webservice in cocoon 2.1.11.
>
> Can anybody please let me know if there is any tutorial or 
> documentation available for this?
>
> Regards
> Sachin
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
> For additional commands, e-mail: user-help@lenya.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org