use of org.springframework.ws.soap.addressing.core.MessageAddressingProperties in project camel by apache.
the class ProducerParamsPrecedenceTest method testWsAddressingActionPrecendence.
// TODO AZ
@Test
@Ignore
public void testWsAddressingActionPrecendence() throws Exception {
Object result = template.requestBody("direct:precedenceWsAddressingAction", xmlBody);
assertNotNull(result);
assertNotNull(sender.getMessageContext());
// check default actions
Assertions.assertThat(sender.getMessageContext()).isNotNull();
MessageAddressingProperties wsaProperties = TestUtil.getWSAProperties((SoapMessage) sender.getMessageContext().getRequest());
Assertions.assertThat(wsaProperties).isNotNull();
Assertions.assertThat(wsaProperties.getReplyTo()).isNull();
Assertions.assertThat(wsaProperties.getFaultTo()).isNull();
}
use of org.springframework.ws.soap.addressing.core.MessageAddressingProperties in project camel by apache.
the class ProducerParamsPrecedenceTest method testWsAddressingAction.
// TODO AZ
@Test
@Ignore
public void testWsAddressingAction() throws Exception {
Object result = template.requestBody("direct:wsAddressingAction", xmlBody);
assertNotNull(result);
assertNotNull(sender.getMessageContext());
// check default actions
Assertions.assertThat(sender.getMessageContext()).isNotNull();
MessageAddressingProperties wsaProperties = TestUtil.getWSAProperties((SoapMessage) sender.getMessageContext().getRequest());
Assertions.assertThat(wsaProperties).isNotNull();
Assertions.assertThat(wsaProperties.getReplyTo()).isNull();
Assertions.assertThat(wsaProperties.getFaultTo()).isNull();
}
use of org.springframework.ws.soap.addressing.core.MessageAddressingProperties in project camel by apache.
the class ProducerParamsPrecedenceTest method testReplyTo.
@Test
public void testReplyTo() throws Exception {
template.requestBody("direct:replyTo", xmlBody);
assertNotNull(sender.getMessageContext());
// check default actions
Assertions.assertThat(sender.getMessageContext()).isNotNull();
MessageAddressingProperties wsaProperties = TestUtil.getWSAProperties((SoapMessage) sender.getMessageContext().getRequest());
Assertions.assertThat(wsaProperties).isNotNull();
Assertions.assertThat(wsaProperties.getReplyTo().getAddress()).isEqualTo(new URI("http://reply.to"));
Assertions.assertThat(wsaProperties.getFaultTo().getAddress()).isEqualTo(new URI("http://fault.to"));
}
use of org.springframework.ws.soap.addressing.core.MessageAddressingProperties in project camel by apache.
the class ProducerParamsPrecedenceTest method testFaultToPrecedence.
@Test
public void testFaultToPrecedence() throws Exception {
template.requestBody("direct:precedenceFaultTo", xmlBody);
assertNotNull(sender.getMessageContext());
// check default actions
Assertions.assertThat(sender.getMessageContext()).isNotNull();
MessageAddressingProperties wsaProperties = TestUtil.getWSAProperties((SoapMessage) sender.getMessageContext().getRequest());
Assertions.assertThat(wsaProperties).isNotNull();
Assertions.assertThat(wsaProperties.getFaultTo().getAddress()).isEqualTo(new URI("http://faultPrecedence.to"));
// /we set in sample data all precendence fields for simplier tests
// otherwise it woudl be here annonymous
Assertions.assertThat(wsaProperties.getReplyTo().getAddress()).isEqualTo(new URI("http://replyPrecedence.to"));
}
use of org.springframework.ws.soap.addressing.core.MessageAddressingProperties 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;
}
Aggregations