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 Oleg Lebedev <ol...@waterford.org> on 2004/07/29 22:08:38 UTC

Generating wsdl for interfaces

Greetings.
 
I am trying to figure out how to get wsdl2java to work with methods
which return interfaces.
I have an interface, which declares the following method which returns
IState interface:
public IState getState(); 

java2wsdl generates correct wsdl, but shows a warning saying:

    [axis-java2wsdl]  WARN [main] (Types.java:1193) - The class 
    org.waterford.sequencer.interfaces.engine.IState does not contain a
default constructor, 
    which is a requirement for a bean class.  The class cannot be
converted into an xml schema
    type.  An xml schema anyType will be used to define this class in
the wsdl file.

wsdl2java chokes and throws the following exception:

    [axis-wsdl2java] java.io.IOException: Type
{urn:datatypes:engine.interfaces.sequ
    encer.waterford.org}IState is referenced but not defined.

I have a State class, which implements IState interface. I wonder if
there is a way to trick java2wsdl or wsdl2java to use that class instead
of IState interface.
Thanks. 
  
************************************* 
This e-mail may contain privileged or confidential material intended for the named recipient only. 
If you are not the named recipient, delete this message and all attachments. 
Unauthorized reviewing, copying, printing, disclosing, or otherwise using information in this e-mail is prohibited. 
We reserve the right to monitor e-mail sent through our network.  
*************************************