use of org.springframework.ws.soap.addressing.client.ActionCallback in project camel by apache.
the class AbstractWSATests method actionAndReplyTo.
/**
* Creates WS-Addressing Action and ReplyTo param for request
*
* @param action
* @param replyTo
* @return
* @throws URISyntaxException
*/
protected final ActionCallback actionAndReplyTo(String action, String replyTo) throws URISyntaxException {
requestInputAction = action;
ActionCallback requestCallback = new ActionCallback(action);
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 customMessageIdGenerator.
@Test
public void customMessageIdGenerator() throws Exception {
ActionCallback requestCallback = channelIn("http://messageIdStrategy-custom.com");
webServiceTemplate.sendSourceAndReceiveToResult(source, requestCallback, result);
Assertions.assertThat(channelOut().getMessageId()).isEqualTo(new URI("staticTestId"));
}
Aggregations