Search in sources :

Example 1 with SoapEnvelope

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());
}
Also used : SoapEnvelope(org.springframework.ws.soap.SoapEnvelope) SoapBody(org.springframework.ws.soap.SoapBody) SoapHeader(org.springframework.ws.soap.SoapHeader) SoapMessage(org.springframework.ws.soap.SoapMessage)

Example 2 with SoapEnvelope

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());
}
Also used : SoapEnvelope(org.springframework.ws.soap.SoapEnvelope) SoapMessage(org.springframework.ws.soap.SoapMessage)

Aggregations

SoapEnvelope (org.springframework.ws.soap.SoapEnvelope)2 SoapMessage (org.springframework.ws.soap.SoapMessage)2 SoapBody (org.springframework.ws.soap.SoapBody)1 SoapHeader (org.springframework.ws.soap.SoapHeader)1