Abstract Types and the Command Pattern over SOAP?
- If you are using a web services framework that generates it's wsdl from
the method signatures of the exposed methods from the web service is it
still possible to successfully use the command pattern?
Specifically if the signature of the command pattern is one method
where everything is represented as abstract types including the Result
type and the general idea is that each command has it's own set of
concrete CommandParameters and each result is a concrete Result where
there's a one to one mapping from a command to it's associated
concreate result type. Is it still possible for the serialization and
deserialization to work whereby it knows to create the concrete types
The WSDL is generated from the method signatures ie. abstract types but
that doesn't necessarily define the type created upon deserialization
My feeling is that webservices work best when you use simple types and
therefore wide interfaces and a method for each command ie. multiple
entry points into the exposed web service instead of one wrapping all
via a dispatch type mechanism.