assertNotNull(hdrBdyElmt);
}
/** Make sure hello world request parses correctly. */
public void testHelloWorldRequest() throws Exception {
SoapMessageConverter portmaper1 = new SoapMessageConverter(wsdlHW, new QName(wsdlHW
.getTargetNamespace(), "HelloService"), "HelloPort");
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/>");
MessageImpl odeMsg = new MessageImpl(new MessageDAOImpl(null));
odeMsg.setMessage(msg);
portmaper1.parseSoapRequest(odeMsg, se, opHello);
System.out.println(DOMUtils.domToString(msg));
}