Hi,
I am having problem while calling POJO Web Service method -
I have my Data classes defined as
-------------------------------
public class Message{
protected String msgId;
//getter/setter method
}
public class SubMessage{
private String msgDescription;
//getter/setter method
}
My Web service is defined as -
------------------------------
public class MessageProcessor{
public Object processMessage(Message msg){
//do processing
return 0;
}
}
Iam invoking this service method using RPC Client, my invoking methos is -
--------------------------------------------------------------------------
public Object invokeService(){
Message msg = SubMessage();
msg.setMessageId("XYZ");
msg.setMessageDescription("XYZ Description");
RPCServiceClient serviceClient = new RPCServiceClient();
Options options = serviceClient.getOptions();
options.setTo(targetEPR);
QName invoke = new QName("http://superconnector.panoptica.com/xsd",
"invoke");
Object[] args = new Object[] {request};
Class[] returnTypes = new Class[] { Integer.class };
Object[] response = serviceClient.invokeBlocking(invoke, args,
returnTypes);
String result = (String) response[0];
}
But when i invoke the service, i get "msg" argument as "null" inside the
web service method i.e. inside processMessage(Message msg), msg is "null".
I have deployed this web service by specifying only message class inside
service.xml.
Am i missing something like configuration or something else?
Thanks,
Ajay
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]