protected void handleBody(MessageExchange exchange, XmlObject body, XMLStreamWriter out) throws Exception {
invokeBody = body;
}
});
SoapService service = new SoapService(registry);
service.addPolicy(new AddressingPolicy());
StringWriter buffer = new StringWriter();
service.invoke(new InputStreamReader(getClass().getResourceAsStream("notify.xml")), buffer);
String text = buffer.toString();
System.out.println("Received response");
System.out.println(text);