You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by gk...@apache.org on 2007/05/07 19:19:09 UTC
svn commit: r535933 -
/cocoon/trunk/core/cocoon-servlet-service/cocoon-servlet-service-sample/src/main/resources/COB-INF/test1/sitemap.xmap
Author: gkossakowski
Date: Mon May 7 10:19:07 2007
New Revision: 535933
URL: http://svn.apache.org/viewvc?view=rev&rev=535933
Log:
COCOON-2050: Provided basic example of service call made by serializer.
Modified:
cocoon/trunk/core/cocoon-servlet-service/cocoon-servlet-service-sample/src/main/resources/COB-INF/test1/sitemap.xmap
Modified: cocoon/trunk/core/cocoon-servlet-service/cocoon-servlet-service-sample/src/main/resources/COB-INF/test1/sitemap.xmap
URL: http://svn.apache.org/viewvc/cocoon/trunk/core/cocoon-servlet-service/cocoon-servlet-service-sample/src/main/resources/COB-INF/test1/sitemap.xmap?view=diff&rev=535933&r1=535932&r2=535933
==============================================================================
--- cocoon/trunk/core/cocoon-servlet-service/cocoon-servlet-service-sample/src/main/resources/COB-INF/test1/sitemap.xmap (original)
+++ cocoon/trunk/core/cocoon-servlet-service/cocoon-servlet-service-sample/src/main/resources/COB-INF/test1/sitemap.xmap Mon May 7 10:19:07 2007
@@ -58,13 +58,26 @@
servletService transformer makes a HTTP POST request on servlet:test2:/basic-service.
Transformer posts content of the incoming SAX stream (here it's just content of test.xml file)
and returns to the pipeline result of service call.
- -->
+ -->
<map:match pattern="test6">
<map:generate src="test.xml"/>
<map:transform type="servletService">
<map:parameter name="service" value="servlet:test2:/basic-service?caller=transformer"/>
</map:transform>
<map:serialize type="xml"/>
+ </map:match>
+
+ <!-- This is a test of basic servlet services functionality
+ servletService serializer makes a HTTP POST request on servlet:test2:/basic-service.
+ Serializer posts content of the incoming SAX stream (here it's just content of test.xml file)
+ and returns as output of serialized the output obtained from servlet service call.
+ -->
+ <map:match pattern="test7">
+ <map:generate src="test.xml"/>
+ <!-- FIXME: Currently serialized does not return any mime type so it must be set in sitemap! -->
+ <map:serialize type="servletService" mime-type="text/xml">
+ <map:parameter name="service" value="servlet:test2:/basic-service?caller=serializer"/>
+ </map:serialize>
</map:match>
<map:match pattern="sub/**">