Search in sources :

Example 11 with SoapMessage

use of org.springframework.ws.soap.SoapMessage 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

SoapMessage (org.springframework.ws.soap.SoapMessage)11 MessageAddressingProperties (org.springframework.ws.soap.addressing.core.MessageAddressingProperties)3 SoapBody (org.springframework.ws.soap.SoapBody)2 SoapEnvelope (org.springframework.ws.soap.SoapEnvelope)2 SoapHeader (org.springframework.ws.soap.SoapHeader)2 IOException (java.io.IOException)1 URI (java.net.URI)1 Locale (java.util.Locale)1 QName (javax.xml.namespace.QName)1 Source (javax.xml.transform.Source)1 TransformerException (javax.xml.transform.TransformerException)1 UserAccountBean (org.akaza.openclinica.bean.login.UserAccountBean)1 UserAccountDAO (org.akaza.openclinica.dao.login.UserAccountDAO)1 UserDetails (org.springframework.security.core.userdetails.UserDetails)1 WebServiceMessage (org.springframework.ws.WebServiceMessage)1 WebServiceMessageCallback (org.springframework.ws.client.core.WebServiceMessageCallback)1 SoapHeaderElement (org.springframework.ws.soap.SoapHeaderElement)1 SaajSoapMessage (org.springframework.ws.soap.saaj.SaajSoapMessage)1