I have a web service that should (for one method) return an object which
conforms to the JavaBeans standard. However, I would like to have an
interface for the class, and have the interface as the return type. But then
Java2WSLD complains that "The class .... 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."

That is:
interface MyInterface with getter and setter
class MyInterfaceImpl with getter, setter and default constructor
service that should return instance of MyInterface


  Mattias Jiderhamn
  Expert Systems

  [EMAIL PROTECTED]
  http://www.expertsystem.se

Reply via email to