assertNotNull(hdr);
}
/** Make sure hello world request parses correctly. */
public void testHelloWorldRequest() throws Exception {
SoapMessageConverter portmaper1 = new SoapMessageConverter(wsdlHW, new QName(wsdlHW
.getTargetNamespace(), "HelloService"), "HelloPort", false);
XMLStreamReader sr = XMLInputFactory.newInstance().createXMLStreamReader(
getClass().getResourceAsStream("/HelloWorldRequest.soap"));
StAXSOAPModelBuilder builder = OMXMLBuilderFactory.createStAXSOAPModelBuilder(new SOAP11Factory(), sr);
SOAPEnvelope se = builder.getSOAPEnvelope();
Element msg = DOMUtils.stringToDOM("<message/>");
portmaper1.parseSoapRequest(msg, se, opHello);
System.out.println(DOMUtils.domToString(msg));
}