"There is very little reason for folks to quibble over programming models when the choice is rpc/enc or rpc/lit, but the difference between doc and rpc is clear, it's the choice between send(document) vs someOperation(parameters[]). The programming model does matter." [snellspace]
I disagree there's a difference between doc and rpc. Your comment shows that you're paying too much attention to the fact that that WSDL portTypes have an element call <operation> with a name. Let's rename that to "<interaction>" with an optional name for now. The reason the name was put in was so that you could refer to it later for bindings. However, there was NEVER any intent that the name would actually show up in the actual wire message. So, again we're down to "how do you want to program to that service?" Some like to program with XML directly - so then generate a send(org.w3c.dom.Document) method. If you want to deal with language objects, map that schema to a language type and generate a method that has that as an argument. What's the difference between the two? None, I maintain.
Note that only the SOAP binding of WSDL distinguishes between RPC vs. Document. That's partly the reason that I think the WSDL 1.1 SOAP binding is quite broken! (I'm ignoring the "parameterOrder" crap thing that was an SDLism that crept into WSDL; I'm hoping WSDL 1.2 will just drop that totally.)
9:37:04 AM
|