SOAPService3 service3 = new SOAPService3(wsdlURL, serviceName3);
InputStream is3 = Client.class.getResourceAsStream("GreetMeDocLiteralReq3.xml");
SOAPMessage soapReq3 = MessageFactory.newInstance().createMessage(null, is3);
DOMSource domReqPayload = new DOMSource(soapReq3.getSOAPBody().extractContentAsDocument());
Dispatch<DOMSource> dispDOMSrcPayload = service3.createDispatch(portName3,
DOMSource.class, Mode.PAYLOAD);
System.out.println("Invoking server through Dispatch interface using DOMSource in PAYLOAD Mode");
DOMSource domRespPayload = dispDOMSrcPayload.invoke(domReqPayload);
System.out.println("Response from server: "
+ domRespPayload.getNode().getFirstChild().getTextContent());