0 Replies Latest reply on Sep 24, 2007 8:40 AM by Vinicius Carvalho

    Using inheiritance with WSDL

    Vinicius Carvalho Apprentice

      Hello there! Although this is not related specific to JBossWS, since I'm using it as my Webservice stack, I was wondering if I could get some assistance here.

      I'd like to know if I can get inheritance using WSDL, let me try to explain:

      Suppose I have a complexType of Command:

      <xsd:complexType name="command">
       <xsd:element name="id" type="xsd:int"/>

      Well, that would be my base entry point for my WSLD operation: executeCommand.

      Now, application should be enabled to grow by having new types of commands:

      <xsd:complexType name="proxyCommand">
      <xsd:extension base="command">

      Since, the message sent from the client will be different than the one expected by the broker (even they share same ancestor). I'm wondering if this strategy will work. My main concern is if the client use some kind of wsld2java generation tool, he will have a simple command that do not represent the real command needed to be executed.

      One approach I found is to declare the command as an element type, so It could receive any XML, but this loose coupled message is not what I'd like to have.

      Any ideas?