[Catalyst] Soaping up Catalyst

Christopher H. Laco claco at chrislaco.com
Thu Aug 18 15:36:17 CEST 2005


I'm looking to bolt-on SOAP access into Handel. Under normal 
circumstances I could just glue Apache::SOAP, possibly a Handel::SOAP 
handler and the core modules together. For the sake of adding SOAP, that 
would probably do it.

But, what about SOAP inside of Catalyst app? Has anyone taken a crack at 
that yet? I was thinking that the first issue would be default views 
like most are using in the examples.

Let's assume that MpApp.pm has:

     sub end : Private {
         my ( $self, $c ) = @_;
         $c->forward('MyApp::V::TT');
     }

Is there a good way to override or skip that from within other 
controllers? This would certainly work:

     MyApp::C::SOAP

     sub process {
	my ($self, $c) = @_;

	$c->stash->{SOAP}++;
     };

Then in MyApp:

     sub end : Private {
         my ( $self, $c ) = @_;

	$c->stash->{SOAP} ?
         	$c->forward('MyApp::V::TT') :
		$c->forward('MyApp::V::SOAP');
     }


Or can detach handle that?
Uplimately, this might realte to the custom attributes question from 
yesterday.

MyApp.pm:

sub soapuri : SOAP {

};

which could automatically take care of mapping/parsing SOAP requests to 
the stash?

-=Chris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3178 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.rawmode.org/pipermail/catalyst/attachments/20050818/704b79fd/smime.bin


More information about the Catalyst mailing list