@Test
public void testRPCInHeader() throws Exception {
URL wsdl = getClass().getResource("/wsdl/soapheader_rpc.wsdl");
assertNotNull(wsdl);
SOAPRPCHeaderService service = new SOAPRPCHeaderService(
wsdl,
new QName(
"http://apache.org/header_test/rpc",
"SOAPRPCHeaderService"));
assertNotNull(service);
Dispatch<SOAPMessage> dispatch = service
.createDispatch(new QName("http://apache.org/header_test/rpc", "SoapRPCHeaderPort"),
javax.xml.soap.SOAPMessage.class, Service.Mode.MESSAGE);
MessageFactory factory = MessageFactory.newInstance();
InputStream is = getClass().getClassLoader()