1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.springframework.ws.soap.saaj;
18
19 import javax.xml.soap.MessageFactory;
20 import javax.xml.soap.SOAPConstants;
21 import javax.xml.soap.SOAPMessage;
22
23 import org.springframework.ws.soap.SoapBody;
24 import org.springframework.ws.soap.soap12.AbstractSoap12BodyTestCase;
25
26 public class SaajSoap12BodyTest extends AbstractSoap12BodyTestCase {
27
28 @Override
29 protected SoapBody createSoapBody() throws Exception {
30 MessageFactory messageFactory = MessageFactory.newInstance(SOAPConstants.SOAP_1_2_PROTOCOL);
31 SOAPMessage saajMessage = messageFactory.createMessage();
32 return new SaajSoap12Body(saajMessage.getSOAPBody());
33 }
34
35 }