SOAPService target = new SOAPService(new RPCProvider());
target.setOption(JavaProvider.OPTION_CLASSNAME, "test.encoding.TestBody");
provider.deployService(new QName(null,namespace), target);
// setup
AxisEngine engine = new AxisServer(provider);
engine.init();
// create a message in context
MessageContext msgContext = new MessageContext(engine);
Message message = new Message(request);
message.setMessageContext(msgContext);