use of org.springframework.ws.soap.addressing.core.EndpointReference 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.core.EndpointReference 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;
}
Aggregations