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.SoapHeader;
24 import org.springframework.ws.soap.soap11.AbstractSoap11HeaderTestCase;
25
26 public class SaajSoap11HeaderTest extends AbstractSoap11HeaderTestCase {
27
28 protected SoapHeader createSoapHeader() throws Exception {
29 MessageFactory messageFactory = MessageFactory.newInstance(SOAPConstants.SOAP_1_1_PROTOCOL);
30 SOAPMessage saajMessage = messageFactory.createMessage();
31 return new SaajSoap11Header(saajMessage.getSOAPPart().getEnvelope().getHeader());
32 }
33 }