Anton,
You can also use soap actions in XSP, like this:
<?xml version="1.0" encoding="UTF-8"?>
<xsp:page language="java" xmlns:xsp="http://apache.org/xsp"
xmlns:xsp-request="http://apache.org/xsp/request/2.0"
xmlns:soap="http://apache.org/xsp/soap/3.0">
<search-results>
<soap:call url="${cocoon.parameters.url}"
method="http://your.webservice.domain/somemethod"
xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/1999/XMLSchema">
<your-message-content/>
</soap:call>
</search-results>
</xsp:page>
In your sitemap all you have to do is
<map:generate src="cocoon:/zoek.xsp" type="serverpages"/>
where serverpages is the transformer
org.apache.cocoon.generation.ServerPagesGenerator. For more info, see
the XSP block in cocoon 2.1.8 / 9 under samples/soap!
hope this helps, regards,
Dennis Dam
Antony Grinyer wrote:
Hi,
In the sitemap, how do you pass the XML produced from a transformer
onto an external web service:
<map:match pattern="create_order">
<map:generate src="myorder.xml"/>
<map:transform src="format_order.xslt"/>
SEND TO WEBSERVICE HERE!
</map:match>
Many thanks in advance,
Ant
--
Hippo
Oosteinde 11
1017WT Amsterdam
The Netherlands
Tel +31 (0)20 5224466
-------------------------------------------------------------
[EMAIL PROTECTED] / http://www.hippo.nl
--------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]