[Catalyst] Dispatching in Catalyst::Controller::SOAP::DocumentLiteralWrapped

Zbigniew Lukasiak zzbbyy at gmail.com
Fri Nov 28 15:04:34 GMT 2008

On Fri, Nov 28, 2008 at 3:34 PM, Ian Sillitoe <ian at sillit.com> wrote:
> I'm also new to this so any opinion is offered very much on a FWIW basis. I
> pretty much had this conversation the other day with ruoso on #catalyst - I
> don't have a copy of the logs but I'll provide a summary as I understood it.
> The document you pointed to (same document as I pointed to) is a good
> description of the different styles of WSDL. However, I was reminded that,
> regarding DocumentLiteralWrapped, this doc is really just an opinion since
> MS have provided no official specification for it (this is mentioned in the
> "Where is doc/lit wrapped defined?" section).

Yeah - but if we look at it formally: since there is no official
definition - then we should treat it as standard Document/Literal.
And, I can be completely mistaken here as I don't know the full
semantics of WSDL, but I have the hypothesis that this is possible
using the trick of treating the dispatching as an internal affair of
the server (and remembering that you can always uncurry a curried
function).  In other words,  we can pretend to have just one operation
of type:

( InternalOperation, Parameters ) -> Output

and treat the the dispatching to the InternalOperations as a part of
the algorithm of this one official operation.

But if we do that - then we cannot rely on anything outside of the
Document/Literal specs (i.e. on the SOAPAction header).

> I certainly agree that it would be good to have C::C::S::DLW dispatching
> similar to RPC/Literal (name of the first child element) as that was my
> understanding of how it should work. Perhaps at least to allow this to be
> the default if no SOAPAction was explicitly provided.
> I could be wrong, but I also got the impression that the developers have
> already invested a fair amount of time providing this and maybe don't have
> tons of spare time for further development (especially supporting a style of
> WSDL that they clearly aren't very impressed by :). Basically that
> suggestions/fixes are probably best accompanied by suggested patches.

Yeah - I just hoped to first validate my understanding, before sending
any patches.

Zbigniew Lukasiak

More information about the Catalyst mailing list