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.SoapEnvelope;
24 import org.springframework.ws.soap.soap12.AbstractSoap12EnvelopeTestCase;
25
26 public class SaajSoap12EnvelopeTest extends AbstractSoap12EnvelopeTestCase {
27
28 @Override
29 protected SoapEnvelope createSoapEnvelope() throws Exception {
30 MessageFactory messageFactory = MessageFactory.newInstance(SOAPConstants.SOAP_1_2_PROTOCOL);
31 SOAPMessage saajMessage = messageFactory.createMessage();
32 return new SaajSoapEnvelope(saajMessage.getSOAPPart().getEnvelope(), true);
33 }
34 }