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.soap11.AbstractSoap11EnvelopeTestCase;
25
26 public class SaajSoap11EnvelopeTest extends AbstractSoap11EnvelopeTestCase {
27
28 protected SoapEnvelope createSoapEnvelope() throws Exception {
29 MessageFactory messageFactory = MessageFactory.newInstance(SOAPConstants.SOAP_1_1_PROTOCOL);
30 SOAPMessage saajMessage = messageFactory.createMessage();
31 return new SaajSoapEnvelope(saajMessage.getSOAPPart().getEnvelope(), true);
32 }
33 }