Hi Brent,
I am in a similar situation, I have some simple SOAP methods, which are currently handled in a separate AXIS webapp, that I am moving into Cocoon.



So far I have been successful at reading a soap request using the flowing flow


Get the SOAP request into the stream, using the stream generator,
I pass the SOAP request into transformer which converts it into a SQL transformer query,
Run it through the SQL transformer,
Get the results and build a SOAP response (an array of strings) and return it to the client.



<map:match pattern="getModel"> <map:generate type="stream"/> <map:transform type="xslt" src="toQueryModel.xsl"/> <map:transform type="sql"> <map:parameter name="use-connection" value="PrimaryReadDatabase"/> <map:parameter name="show-nr-of-rows" value="true"/> <map:parameter name="clob-encoding" value="UTF-8"/> </map:transform> <map:transform type="xslt" src="fromQueryModel.xsl"/> <map:serialize type="xml"/> </map:match>


The next thing I am working on is how to handle a SOAP message with attachments. It looks doable, but I have just started working with Cocoon upload file stuff.


Hope this helps,
Scott





Brent Johnson wrote:

Has anyone implemented a SOAP server with (or alongside) Cocoon?  I
was looking into Apache's SOAP implementation and it requires an app
server.  Since my WebGate app already uses an internal Jetty server..
it looks like I have 2 options:

1)  Figure out how to get Servlets working alongside Cocoon and use
Apache's SOAP implementation.

2)  I could just use Cocoon right?  Create my own template match that
accepts POSTs and responds with valid SOAP responses.

Just looking for a little insight here..

Thanks,

- Brent

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]








---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to