I am new to JAX-RPC. I tried creating a simple Java bean in RAD 7.0, and went through the options to create a JAX-RPC webservice. My method is as below.
public byte[] getData(byte[] argument) {
<Customclass> proxy = new <Customclass>();
List outputList = new ArrayList();
try {
// Call a method on proxy
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
byte[] output = getBytesFromObject(outputList);
return output;
}
1) This works fine when called from a client, if i do not import any dependent classes. 2) However, when i import a dependent class (Customclass shown above), i get to see the below exception.
[9/12/09 9:59:00:182 IST] 00000026 UserException E WSWS3228E: Error: Exception: WebServicesFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.generalException
faultString: java.lang.NoClassDefFoundError: <Customclass>
faultActor: null
faultDetail:
java.lang.NoClassDefFoundError:
Packaging - the above method resides in an application(ear) which has all the necessary classes included as jar files within the ear. The above method is invoked from a client - JAX-RPC client.
Would appreciate if someone could guide me on this.