Hi...
I have a class that is Serializable and I want to use it as a return type
for a web service method.
However, when I deploy that web service project, I get this exception:
com.sun.enterprise.deployment.backend.IASDeploymentException
What do I need to do to be able to use that class in my web service.
For example:
package com.localmatters.flexiq.collector;
import java.io.Serializable;
public class ResultMessage implements Serializable {
private byte[] message;
private byte[] signature;
public ResultMessage(byte[] message, byte[] signature) {
this.message = message;
this.signature = signature;
}
public byte[] getMessage() { return message; }
public void setMessage(byte[] message) { this.message = message; }
public byte[] getSignature() { return signature; }
public void setSignature(byte[] signature) { this.signature = signature;
}
}
@Stateless()
@WebService()
public class ConsumerWS {
@WebMethod()
public ResultMessage myMethod(@WebParam() String someProperty) {
// do something
ResultMessage rm = new ResultMessage(...);
return rm;
}
}