You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by "Soti, Dheeraj" <ds...@harris.com> on 2005/03/08 22:37:07 UTC

FW: Should I specify the java interfaces in wsdl also and how to spec ify multiple inheritance

Forwarding it to user list.

-----Original Message-----
From: Soti, Dheeraj [mailto:dsoti@harris.com] 
Sent: Tuesday, March 08, 2005 1:01 PM
To: 'axis-dev@ws.apache.org'
Subject: Should I specify the java interfaces in wsdl also and how to spec ify
multiple inheritance


Hi,

I am new to webservices and I am following the approach of writing the wsdl
first. I have a method in my service like:

    public boolean addContent(Content content) {
        ..........
        ..........
    }

"Content" is an interface that extends another interface "MyObject". There is
class "ContentImpl" that implements Content and it has various children like
"ContentType1" "ContentType2".

Question-1:
-----------

Shall I declare the interfaces also in my wsdl as complex types or just the
implementations because that is what the final type of parameter would be. Right
now my wsdl looks like as shown below. Is this correct?
    <complexType abstract="true" name="MyObject"/>
    <complexType abstract="true" name="Content">
        <extension base="impl:MyObject"/>
    </complexType>
    <complexType name="ContentImpl">
        <extension base="impl:Content"/>
            <sequence>
                ....
                ....
            <sequence>
        </extension>
    </complexType>

Question2:
---------
How do I specify multiple inheritance? E.g. "ContentType1" extends from
"ContentImpl" and implements "Type1Contents".

Thanks

Dheeraj Soti