----- Original Message ----- From: "Karsten Düsterloh" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, January 14, 2003 00:43 Subject: Re: WSDL of java.* types
> Und Steve Loughran aber hob an zu schreiben: > >>> > public class test > >>> > { > >>> > public test() {} > >>> > public void Func(java.lang.Math m) {} > >>> > } > > Actually, java.lang.Math was just an example for a whole set of classes > from java.lang.*, java.io.* etc. which will fail to get a wsdl created - > my current "main blocker" is java.lang.Exception. 1. Read the JAX-RPC stuff; you need to be using Axis1.1b to stand a chance of this working. 2. Try throwing subclasses of java.rmi.RemoteException 3. I just throw AxisFaults in my code > > >>> What do you expect when a perl program calls this? Or a C > >>> application? Or > >>> anything other than Java? Or even a different version of Java > >>> from yours? > > At least I expect Axis / java2wsdl to create a valid wsdl. well, it is trying to stop you sending stuff over the wire that may make no sense at the far end. > > > has no fields, has a private constructor ( I think), and is not marked > > Serializable. > > Exception has no fields, but a public constructor, and is serializable. > Nevertheless, wsdl creation fails. because there is no type definition for it. Also I'm assuming you want to throw and catch these, rather than just return them? That makes things more complex . > True, but: > java2wsdl throws a warning in the above cases, that (especially for > java.* and javax.*) a xml schema anyType will be created instead. When I > try to create a wrapped wsdl (via -y wrapped), the wsdl contains (for > your example) <element name="in0" type="tns2:JFrame"/> and <element > name="getPaneReturn" type="tns2:CellRendererPane"/> with tns2 undefined > instead of xsd:anyType. Is this a bug? probably.