Search in sources :

Example 6 with SoapMessage

use of org.springframework.ws.soap.SoapMessage in project camel by apache.

the class BasicMessageFilter method processHeaderAndAttachments.

/**
     * If applicable this method adds a SOAP headers and attachments.
     * 
     * @param inOrOut
     * @param response
     */
protected void processHeaderAndAttachments(Message inOrOut, WebServiceMessage response) {
    if (response instanceof SoapMessage) {
        SoapMessage soapMessage = (SoapMessage) response;
        processSoapHeader(inOrOut, soapMessage);
        doProcessSoapAttachments(inOrOut, soapMessage);
    }
}
Also used : SoapMessage(org.springframework.ws.soap.SoapMessage)

Example 7 with SoapMessage

use of org.springframework.ws.soap.SoapMessage in project camel by apache.

the class AbstractWSATests method newChannelParams.

/**
     * Only response is allow using a brand new channel
     * 
     * @return
     */
protected final MessageAddressingProperties newChannelParams() {
    assertNotNull(newReply);
    assertNotNull(newReply.getMessageContext());
    SoapMessage request = (SoapMessage) newReply.getMessageContext().getRequest();
    assertNotNull(request);
    MessageAddressingProperties wsaProperties = TestUtil.getWSAProperties(request);
    assertNotNull(wsaProperties);
    assertNotNull(wsaProperties.getTo());
    return wsaProperties;
}
Also used : MessageAddressingProperties(org.springframework.ws.soap.addressing.core.MessageAddressingProperties) SoapMessage(org.springframework.ws.soap.SoapMessage)

Example 8 with SoapMessage

use of org.springframework.ws.soap.SoapMessage in project camel by apache.

the class AbstractWSATests method sameChannelParams.

/**
     * Only response is allow using same channel
     * 
     * @return
     */
protected final MessageAddressingProperties sameChannelParams() {
    // we expect the same channel reply
    assertNull(newReply.getMessageContext());
    assertNotNull(response);
    assertNotNull(response.getMessageContext());
    SoapMessage soapResponse = (SoapMessage) response.getMessageContext().getResponse();
    assertNotNull(soapResponse);
    MessageAddressingProperties wsaProperties = TestUtil.getWSAProperties(soapResponse);
    assertNotNull(wsaProperties);
    return wsaProperties;
}
Also used : MessageAddressingProperties(org.springframework.ws.soap.addressing.core.MessageAddressingProperties) SoapMessage(org.springframework.ws.soap.SoapMessage)

Example 9 with SoapMessage

use of org.springframework.ws.soap.SoapMessage in project camel by apache.

the class CamelDirectSenderTest method customChannelParams.

/**
     * Only response is allow using a brand custom channel
     * 
     * @return
     */
private MessageAddressingProperties customChannelParams() {
    assertNotNull(customChannel);
    assertNotNull(customChannel.getMessageContext());
    SoapMessage request = (SoapMessage) customChannel.getMessageContext().getRequest();
    assertNotNull(request);
    MessageAddressingProperties wsaProperties = TestUtil.getWSAProperties(request);
    assertNotNull(wsaProperties);
    assertNotNull(wsaProperties.getTo());
    return wsaProperties;
}
Also used : MessageAddressingProperties(org.springframework.ws.soap.addressing.core.MessageAddressingProperties) SoapMessage(org.springframework.ws.soap.SoapMessage)

Example 10 with SoapMessage

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

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