Search in sources :

Example 16 with MessageAddressingProperties

use of org.springframework.ws.soap.addressing.core.MessageAddressingProperties 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 17 with MessageAddressingProperties

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

Aggregations

MessageAddressingProperties (org.springframework.ws.soap.addressing.core.MessageAddressingProperties)17 Test (org.junit.Test)14 URI (java.net.URI)9 SoapMessage (org.springframework.ws.soap.SoapMessage)3 Ignore (org.junit.Ignore)2