You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Lajos Moczar <lm...@galatea.com> on 2002/09/09 16:42:29 UTC

How do SOAP services work in 2.1?

Quick question - I've tested out the hello.service example (in the 
samples/hello-world subproject from 2.1) from my SOAP client, and 
received back the expected XML content in the SOAP response. Then I 
created my own 'service', by simply having my own pipeline spit out XML. 
My question is: how does Cocoon know to encapsulate the response in 
SOAP? I've searched the source code and can't see where the logic is.

Any clues appreciated.

Regards,

Lajos
-- 
galatea.com
Cocoon training, consulting & support



---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>


Re: How do SOAP services work in 2.1?

Posted by Marcus Crafter <cr...@fztig938.bank.dresdner.net>.
Hi Lajos,

On Mon, Sep 09, 2002 at 08:42:29AM -0600, Lajos Moczar wrote:
> Quick question - I've tested out the hello.service example (in the 
> samples/hello-world subproject from 2.1) from my SOAP client, and 
> received back the expected XML content in the SOAP response. Then I 
> created my own 'service', by simply having my own pipeline spit out XML. 
> My question is: how does Cocoon know to encapsulate the response in 
> SOAP? I've searched the source code and can't see where the logic is.

	The hello.service is actually a REST style web service, and not a
	SOAP style web service.
	
	For SOAP services (ie. responses encapsulated within a soap
	envelope), have a look at the AxisRPCReader that's committed in
	scratchpad. It allows you to serve SOAP requests from your cocoon
	application.
	
	Hope that helps. :)
	
	Cheers,
	
	Marcus
	
-- 
        .....
     ,,$$$$$$$$$,      Marcus Crafter
    ;$'      '$$$$:    Computer Systems Engineer
    $:         $$$$:   ManageSoft GmbH
     $       o_)$$$:   82-84 Mainzer Landstrasse
     ;$,    _/\ &&:'   60327 Frankfurt Germany
       '     /( &&&
           \_&&&&'
          &&&&.
    &&&&&&&:

---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>