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.soap12.AbstractSoap12HeaderTestCase;
25
26 public class SaajSoap12HeaderTest extends AbstractSoap12HeaderTestCase {
27
28 @Override
29 protected SoapHeader createSoapHeader() throws Exception {
30 MessageFactory messageFactory = MessageFactory.newInstance(SOAPConstants.SOAP_1_2_PROTOCOL);
31 SOAPMessage saajMessage = messageFactory.createMessage();
32 return new SaajSoap12Header(saajMessage.getSOAPHeader());
33 }
34 }