WS Provider SAX Exception Bad types

hi,

i’ve created a web service provider, which returns a complex data type as return value of his web methods. This is the code of the return type:

public class Result {

private String id;

private String message;

public Result() {

	

}

public Result(String id, String message) {

	this.id = id;

	this.message = message;

}

public String getId() {

	return id;

}

public void setId(String id) {

	this.id = id;

}

public String getMessage() {

	return message;

}

public void setMessage(String message) {

	this.message = message;

}

}

in the webmethod i return an result instance:

public Result sendMail(…) {

...

return new Result("ok", "mail was sent");

}

but i always get the following error message on the client:

WebServiceEngineFault

faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.generalException

faultSubcode:

faultString: org.xml.sax.SAXException: Bad types (class java.lang.String -> class at.uniqa.ln.services.mailing.Result)

faultActor:

faultNode:

faultDetail:

org.xml.sax.SAXException: Bad types (class java.lang.String → class at.uniqa.ln.services.mailing.Result)

at lotus.domino.axis.InternalFault.makeFault(Unknown Source)

at lotus.domino.axis.client.Call.invoke(Unknown Source)

at lotus.domino.axis.client.Call.invoke(Unknown Source)

at lotus.domino.axis.client.Call.invoke(Unknown Source)

at lotus.domino.websvc.client.Call.invoke(Unknown Source)

at at.uniqa.ln.services.mailing.DominoSoapBindingStub.sendMail(DominoSoapBindingStub.java:11)

at JavaAgent.NotesMain(Unknown Source)

at lotus.domino.AgentBase.runNotes(Unknown Source)

at lotus.domino.NotesThread.run(Unknown Source)

Caused by: org.xml.sax.SAXException: Bad types (class java.lang.String → class at.uniqa.ln.services.mailing.Result)

at lotus.domino.axis.message.RPCHandler.onStartChild(Unknown Source)

at lotus.domino.axis.encoding.DeserializationContextImpl.startElement(Unknown Source)

at lotus.domino.axis.message.SAX2EventRecorder.replay(Unknown Source)

at lotus.domino.axis.message.MessageElement.publishToHandler(Unknown Source)

at lotus.domino.axis.message.RPCElement.deserialize(Unknown Source)

at lotus.domino.axis.message.RPCElement.getParams(Unknown Source)

... 8 more

The client is a domino web service consumer.

Please suggest!

Best regards

Mario