Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- MessageFactory messageFactory = MessageFactory.newInstance();
- SOAPMessage soapMessage = messageFactory.createMessage();
- // Retrieve different parts
- SOAPPart soapPart = soapMessage.getSOAPPart();
- SOAPEnvelope soapEnvelope = soapMessage.getSOAPPart().getEnvelope();
- // Two ways to extract body
- SOAPBody soapBody = soapEnvelope.getBody();
- soapBody = soapMessage.getSOAPBody();
- //Modify body
- // Etc
Add Comment
Please, Sign In to add comment