Hi, I'm trying to understand the examples, and I've generated 2 dummy classes:
***************************************************************
package faults.impl;
public class Dummy
{
public
String sayHello(String hello) throws DummyFault
{
if (hello.equals("hello!")) return "hi there!";
else
{
DummyFault fault = new DummyFault();
fault.setInfo("bad maners!");
throw fault;
}
}
}
***********************************************************************
package faults.impl;
import java.rmi.RemoteException;
public class DummyFault extends RemoteException implements java.io.Serializable
{
private java.lang.String info;
public DummyFault() {
}
public DummyFault(
java.lang.String info) {
this.info = info;
}
public java.lang.String getInfo() {
return info;
}
public void setInfo(java.lang.String info) {
this.info = info;
}
}
********************************************************************
As you can see it's the same as the example, but when trying to buid the wsdl (C:\eclipse2.1\eclipse\workspace\Compile>
java org.apache.axis.wsdl.Java2WSDL -o dummy.wsdl -l"http://localhost:8080/axis/services/Dummy" -n"urn
ummy" -p"urn
ummy" "faults" faults.impl.Dummy) I get an :
- The class java.lang.Throwable is defined in a java or javax package and cannot be converted into an xml schema type. An xml schema anyType will be used to define this class in the wsdl file.
Do I have to buid manually my wsdl & wsdd files? (Supose superduper developers with a lot of time do it the hard way!)