1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.springframework.ws.soap.axiom;
18
19 import org.springframework.ws.soap.SoapBody;
20 import org.springframework.ws.soap.SoapVersion;
21 import org.springframework.ws.soap.soap11.AbstractSoap11BodyTestCase;
22
23 public class AxiomSoap11NonCachingBodyTest extends AbstractSoap11BodyTestCase {
24
25 @Override
26 protected SoapBody createSoapBody() throws Exception {
27 AxiomSoapMessageFactory messageFactory = new AxiomSoapMessageFactory();
28 messageFactory.setPayloadCaching(false);
29 messageFactory.setSoapVersion(SoapVersion.SOAP_11);
30
31 AxiomSoapMessage axiomSoapMessage = (AxiomSoapMessage) messageFactory.createWebServiceMessage();
32 return axiomSoapMessage.getSoapBody();
33 }
34
35 }