use of org.springframework.ws.soap.SoapEnvelope in project webservices-axiom by apache.
the class TestCreateWebServiceMessage method runTest.
@Override
protected void runTest(SoapMessageFactory messageFactory) {
SoapMessage message = messageFactory.createWebServiceMessage();
SoapEnvelope env = message.getEnvelope();
assertNotNull(env);
assertEquals(spec.getEnvelopeQName(), env.getName());
SoapHeader header = env.getHeader();
assertNotNull(header);
assertEquals(spec.getHeaderQName(), header.getName());
SoapBody body = env.getBody();
assertNotNull(body);
assertEquals(spec.getHeaderQName(), header.getName());
}
use of org.springframework.ws.soap.SoapEnvelope in project webservices-axiom by apache.
the class TestCreateWebServiceMessageFromInputStream method runTest.
@Override
protected void runTest(SoapMessageFactory messageFactory) throws Throwable {
SoapMessage message = messageFactory.createWebServiceMessage(new TransportInputStreamImpl(SOAPSampleSet.NO_HEADER.getMessage(spec)));
SoapEnvelope env = message.getEnvelope();
assertNull(env.getHeader());
assertNotNull(env.getBody());
}
Aggregations