This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
//Get the SOAPBody SOAPEnvelope requestEnvelope = requestMessage.getSOAPPart().getEnvelope(); requestBody = requestEnvelope.getBody().addBodyElement(requestEnvelope.createName("Request");
//Add Body element to SOAP Body SOAPElement hdrTag = requestBody.addChildElement(requestEnvelope.createName("Hdr")); SOAPElement reqBdyTag = requestBody.addChildElement(requestEnvelope.createName("ReqBdy"));
The above line returns the value as [Request: null]
1. Can you please let me know where I am may be going wrong? 2. Is this a problem due to compatibility issue? 3. If SAAJ 1.3 is not preferable for implementation of SOAP 1.2 in WSAD, what other ways I can generate/handle SOAP request/response?