Here's the configuration in the sitemap:
<map:match pattern="*.post">
<!-- generate XML from the form data -->
<map:generate type="serverpages" src="form-result.xsp"/>
<!-- Process the form into a app-specific format -->
<map:transform src="{1}.post2xml.xsl"/>
<!-- Handle any web service specifics -->
<map:transform src="{1}.pre-service.xsl"/>
<!-- Talk to the web service. This is a custom CDE component that was
built to allow Cocoon to serialize the content in the pipeline to
a web service connection and the parse the response. -->
<map:transform type="webservice">
<map:parameter name="url" value="http://localhost:8080/webservice/event.service"/>
</map:transform>
<!-- Here we have the response from the web service in the pipeline. -->
<!-- Decode the response -->
<map:transform src="{1}.post-service.xsl"/>
<!-- Format the result for the browser -->
<map:transform src="{1}.final.xsl"/>
<!-- Serialize to the waiting browser connection.-->
<map:serialize type="xhtml"/>
</map:match>