assertTrue(retValue instanceof GreetMeResponse);
assertEquals("TestSOAPOutputPMessage", ((GreetMeResponse)retValue).getResponseType());
}
public void testReadRPC() throws Exception {
JAXBDataReaderFactory rf = getTestReaderFactory(MyComplexStruct.class);
QName[] tags = {new QName("http://apache.org/hello_world_rpclit", "sendReceiveData")};
reader = getTestReader("../resources/greetMeRpcLitReq.xml");
assertNotNull(reader);
XMLStreamReader localReader = getTestFilteredReader(reader, tags);
DataReader<XMLStreamReader> dr = rf.createReader(XMLStreamReader.class);
assertNotNull(dr);
Object val = dr.read(new QName("http://apache.org/hello_world_rpclit", "in"),
localReader,
MyComplexStruct.class);
assertNotNull(val);