(I'm using the binary distribution of AXIS beta 2, fyi.)

It seems that the XSDL->Java stub code doesn't handle deserializing 
primitive types when an Object is expected.  This is illustrated by the 
following:

---MyExample.jws---
public class MyExample {
  public Object showProblem() { return new Integer(12); }
}

---MyExampleClient.java---
public class MyExampleClient {
  public static void main(String[] args) throws Exception {
    localhost.MyExample e = new 
localhost.MyExampleServiceLocator().getMyExample();
    System.out.println("THIS WORKED: " + e.showProblem());
  }
}

The WSDL shows the return type as xsd:anyType and the 
localhost.MyExample interface does return an Object but I get 
"org.xml.sax.SAXException: Bad types (int -> class java.lang.Object)" 
when I run the client code.  Further details can be given if necessary.

Reply via email to