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 Mick Knutson <mi...@hotmail.com> on 2005/06/26 20:37:23 UTC

want to put interface declaration for my scheme objects into wsdl?

I want to be able to define a standard set of interfaces for all my scheme 
classes.
Can I somehow add an "implements=MySchemeInterface" in the complext types 
such as with:

   <xsd:complexType name="consumerActivityType" 
implements="com.baselogic.MySchemeInterface">
    <xsd:sequence>
     <xsd:element minOccurs="0" name="lastPinChangeDate" type="xsd:string"/>
     <xsd:element minOccurs="0" name="lastPersonalCodeChangeDate" 
type="xsd:string"/>
    </xsd:sequence>
   </xsd:complexType>




Thank You
Mick Knutson

Sr. Java/J2EE Consultant
BASE logic, inc.
(415) 648-1804 (S.F., CA)
http://www.BASELogic.com

HP Consulting Services (Walnut Creek, CA)



Re: want to put interface declaration for my scheme objects into wsdl?

Posted by Anne Thomas Manes <at...@gmail.com>.
Mick,

Schema elements and types aren't objects or classes, so they don't
implement interfaces.

You can define an abstract type, and then you extend that type by
extension or by restriction. Using abstract types is pretty much
guaranteed to cause you interoperability problems, though, so you
shouldn't do it.

Here's a hint: XML is not object oriented. Don't try to apply OO concepts. 

Anne

On 6/26/05, Mick Knutson <mi...@hotmail.com> wrote:
> I want to be able to define a standard set of interfaces for all my scheme
> classes.
> Can I somehow add an "implements=MySchemeInterface" in the complext types
> such as with:
> 
>    <xsd:complexType name="consumerActivityType"
> implements="com.baselogic.MySchemeInterface">
>     <xsd:sequence>
>      <xsd:element minOccurs="0" name="lastPinChangeDate" type="xsd:string"/>
>      <xsd:element minOccurs="0" name="lastPersonalCodeChangeDate"
> type="xsd:string"/>
>     </xsd:sequence>
>    </xsd:complexType>
> 
> 
> 
> 
> Thank You
> Mick Knutson
> 
> Sr. Java/J2EE Consultant
> BASE logic, inc.
> (415) 648-1804 (S.F., CA)
> http://www.BASELogic.com
> 
> HP Consulting Services (Walnut Creek, CA)
> 
> 
>

RE: want to put interface declaration for my scheme objects into wsdl?

Posted by Mick Knutson <mi...@hotmail.com>.
Can anyone please help me with this?

I get this generated:

public class ConsumerType  implements java.io.Serializable {

But I need wsdl2java to generate this:
public class ConsumerType  implements com.baselogic.consumer.IConsumer, 
java.io.Serializable {




>From: "Mick Knutson" <mi...@hotmail.com>
>Reply-To: axis-user@ws.apache.org
>To: axis-user@ws.apache.org
>Subject: want to put interface declaration for my scheme objects into wsdl?
>Date: Sun, 26 Jun 2005 11:37:23 -0700
>
>I want to be able to define a standard set of interfaces for all my scheme 
>classes.
>Can I somehow add an "implements=MySchemeInterface" in the complext types 
>such as with:
>
>   <xsd:complexType name="consumerActivityType" 
>implements="com.baselogic.MySchemeInterface">
>    <xsd:sequence>
>     <xsd:element minOccurs="0" name="lastPinChangeDate" 
>type="xsd:string"/>
>     <xsd:element minOccurs="0" name="lastPersonalCodeChangeDate" 
>type="xsd:string"/>
>    </xsd:sequence>
>   </xsd:complexType>
>
>
>
>
>Thank You
>Mick Knutson
>
>Sr. Java/J2EE Consultant
>BASE logic, inc.
>(415) 648-1804 (S.F., CA)
>http://www.BASELogic.com
>
>HP Consulting Services (Walnut Creek, CA)
>
>


Thank You
Mick Knutson

Sr. Java/J2EE Consultant
BASE logic, inc.
(415) 648-1804 (S.F., CA)
http://www.BASELogic.com

HP Consulting Services (Walnut Creek, CA)



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


RE: want to put interface declaration for my scheme objects into wsdl?

Posted by Mick Knutson <mi...@hotmail.com>.
Can anyone please help me with this?

I get this generated:

public class ConsumerType  implements java.io.Serializable {

But I need wsdl2java to generate this:
public class ConsumerType  implements com.baselogic.consumer.IConsumer, 
java.io.Serializable {




>From: "Mick Knutson" <mi...@hotmail.com>
>Reply-To: axis-user@ws.apache.org
>To: axis-user@ws.apache.org
>Subject: want to put interface declaration for my scheme objects into wsdl?
>Date: Sun, 26 Jun 2005 11:37:23 -0700
>
>I want to be able to define a standard set of interfaces for all my scheme 
>classes.
>Can I somehow add an "implements=MySchemeInterface" in the complext types 
>such as with:
>
>   <xsd:complexType name="consumerActivityType" 
>implements="com.baselogic.MySchemeInterface">
>    <xsd:sequence>
>     <xsd:element minOccurs="0" name="lastPinChangeDate" 
>type="xsd:string"/>
>     <xsd:element minOccurs="0" name="lastPersonalCodeChangeDate" 
>type="xsd:string"/>
>    </xsd:sequence>
>   </xsd:complexType>
>
>
>
>
>Thank You
>Mick Knutson
>
>Sr. Java/J2EE Consultant
>BASE logic, inc.
>(415) 648-1804 (S.F., CA)
>http://www.BASELogic.com
>
>HP Consulting Services (Walnut Creek, CA)
>
>


Thank You
Mick Knutson

Sr. Java/J2EE Consultant
BASE logic, inc.
(415) 648-1804 (S.F., CA)
http://www.BASELogic.com

HP Consulting Services (Walnut Creek, CA)