Loading ...
Sorry, an error occurred while loading the content.

Abstract Types and the Command Pattern over SOAP?

Expand Messages
  • Robert Nicholson
    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
    Message 1 of 1 , Dec 14, 2004
    • 0 Attachment
      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
      at runtime?

      The WSDL is generated from the method signatures ie. abstract types but
      that doesn't necessarily define the type created upon deserialization
      does it?

      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.
    Your message has been successfully submitted and would be delivered to recipients shortly.