Search in sources :

Example 1 with EndpointReference

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;
}
Also used : ActionCallback(org.springframework.ws.soap.addressing.client.ActionCallback) Addressing10(org.springframework.ws.soap.addressing.version.Addressing10) URI(java.net.URI) EndpointReference(org.springframework.ws.soap.addressing.core.EndpointReference)

Example 2 with EndpointReference

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;
}
Also used : ActionCallback(org.springframework.ws.soap.addressing.client.ActionCallback) URI(java.net.URI) EndpointReference(org.springframework.ws.soap.addressing.core.EndpointReference)

Aggregations

URI (java.net.URI)2 ActionCallback (org.springframework.ws.soap.addressing.client.ActionCallback)2 EndpointReference (org.springframework.ws.soap.addressing.core.EndpointReference)2 Addressing10 (org.springframework.ws.soap.addressing.version.Addressing10)1