[jboss-user] [JBossWS] - Using inheiritance with WSDL
do-not-reply at jboss.com
Mon Sep 24 08:40:49 EDT 2007
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.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4087880#4087880
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4087880
More information about the jboss-user