use of org.springframework.ws.soap.addressing.client.ActionCallback in project camel by apache.
the class AbstractConsumerTests method onlyCustomFaultSpecified4output.
@Test
public void onlyCustomFaultSpecified4output() throws Exception {
ActionCallback requestCallback = channelIn("http://uriFaultOnly-ok.com/");
webServiceTemplate.sendSourceAndReceiveToResult(source, requestCallback, result);
Assertions.assertThat(channelOut().getAction()).isEqualTo(getDefaultResponseAction());
}
use of org.springframework.ws.soap.addressing.client.ActionCallback in project camel by apache.
the class AbstractWSATests method toAndReplyTo.
/**
* Creates WS-Addressing To and ReplyTo param for request
*
* @param action
* @param replyTo
* @return
* @throws URISyntaxException
*/
protected final ActionCallback toAndReplyTo(String to, String replyTo) throws URISyntaxException {
requestInputAction = "http://doesn-not-matter.com";
ActionCallback requestCallback = new ActionCallback(new URI(requestInputAction), new Addressing10(), new URI(to));
if (replyTo != null) {
requestCallback.setReplyTo(new EndpointReference(new URI(replyTo)));
}
return requestCallback;
}
use of org.springframework.ws.soap.addressing.client.ActionCallback in project camel by apache.
the class CamelDirectSenderTest method camelInvalid.
@Test
public void camelInvalid() throws Exception {
ActionCallback requestCallback = toAndReplyTo("http://sender-camel.com", "mailto:not-mappped-address@chocolatejar.eu");
webServiceTemplate.sendSourceAndReceiveToResult(source, requestCallback, result);
Assertions.assertThat(endpointCamelDirect.getReceivedCounter()).isZero();
}
use of org.springframework.ws.soap.addressing.client.ActionCallback in project camel by apache.
the class CamelDirectSenderTest method camelReceivedReplyTo.
@Test
public void camelReceivedReplyTo() throws Exception {
ActionCallback requestCallback = channelIn("http://sender-camel.com");
webServiceTemplate.sendSourceAndReceiveToResult(source, requestCallback, result);
endpointCamelDirect.assertExchangeReceived(0);
endpointCamelDirect.assertIsSatisfied();
}
use of org.springframework.ws.soap.addressing.client.ActionCallback in project camel by apache.
the class CamelDirectSenderTest method defaultMessageIdGenerator.
@Test
public void defaultMessageIdGenerator() throws Exception {
ActionCallback requestCallback = channelIn("http://messageIdStrategy-default.com");
webServiceTemplate.sendSourceAndReceiveToResult(source, requestCallback, result);
Assertions.assertThat(channelOut().getMessageId()).isNotEqualTo(new URI("staticTestId"));
}
Aggregations