Package org.springframework.ws.soap.addressing.core

Examples of org.springframework.ws.soap.addressing.core.EndpointReference


    private boolean handleResponseOrFault(MessageContext messageContext, boolean isFault) throws Exception {
        Assert.isInstanceOf(SoapMessage.class, messageContext.getRequest());
        Assert.isInstanceOf(SoapMessage.class, messageContext.getResponse());
        MessageAddressingProperties requestMap =
                version.getMessageAddressingProperties((SoapMessage) messageContext.getRequest());
        EndpointReference replyEpr = !isFault ? requestMap.getReplyTo() : requestMap.getFaultTo();
        if (handleNoneAddress(messageContext, replyEpr)) {
            return false;
        }
        SoapMessage reply = (SoapMessage) messageContext.getResponse();
        URI replyMessageId = getMessageId(reply);
View Full Code Here


        Element headerElement = getSoapHeaderElement(message);
        URI to = getUri(headerElement, toExpression);
        if (to == null) {
            to = getDefaultTo();
        }
        EndpointReference from = getEndpointReference(fromExpression.evaluateAsNode(headerElement));
        EndpointReference replyTo = getEndpointReference(replyToExpression.evaluateAsNode(headerElement));
        if (replyTo == null) {
            replyTo = getDefaultReplyTo(from);
        }
        EndpointReference faultTo = getEndpointReference(faultToExpression.evaluateAsNode(headerElement));
        if (faultTo == null) {
            faultTo = replyTo;
        }
        URI action = getUri(headerElement, actionExpression);
        URI messageId = getUri(headerElement, messageIdExpression);
View Full Code Here

                referencePropertiesExpression != null ? referencePropertiesExpression.evaluateAsNodeList(node) :
                        Collections.<Node>emptyList();
        List<Node> referenceParameters =
                referenceParametersExpression != null ? referenceParametersExpression.evaluateAsNodeList(node) :
                        Collections.<Node>emptyList();
        return new EndpointReference(address, referenceProperties, referenceParameters);
    }
View Full Code Here

        return getAnonymous();
    }

    @Override
    protected EndpointReference getDefaultReplyTo(EndpointReference from) {
        return new EndpointReference(getAnonymous());
    }
View Full Code Here

        URI to = new URI("mailto:fabrikam@example.com");
        callback = new ActionCallback(action, getVersion(), to);
        callback.setMessageIdStrategy(strategyMock);
        SaajSoapMessage message = createDeleteMessage();
        expect(strategyMock.newMessageId(message)).andReturn(new URI("http://example.com/someuniquestring"));
        callback.setReplyTo(new EndpointReference(new URI("http://example.com/business/client1")));

        replay(strategyMock, connectionMock);

        callback.doWithMessage(message);
View Full Code Here

        callback.setMessageIdStrategy(strategyMock);
        expect(connectionMock.getUri()).andReturn(connectionUri);

        SaajSoapMessage message = createDeleteMessage();
        expect(strategyMock.newMessageId(message)).andReturn(new URI("http://example.com/someuniquestring"));
        callback.setReplyTo(new EndpointReference(new URI("http://example.com/business/client1")));

        replay(strategyMock, connectionMock);

        callback.doWithMessage(message);
View Full Code Here

            }

            if (wsAddressingAction != null) {
                ActionCallback actionCallback = new ActionCallback(wsAddressingAction);
                if (wsReplyTo != null) {
                    actionCallback.setReplyTo(new EndpointReference(wsReplyTo));
                }

                if (wsFaultTo != null) {
                    actionCallback.setFaultTo(new EndpointReference(wsFaultTo));
                }
                actionCallback.doWithMessage(message);
            }

            configuration.getMessageFilter().filterProducer(exchange, message);
View Full Code Here

     */
    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;
    }
View Full Code Here

     */
    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;
    }
View Full Code Here

            }

            if (wsAddressingAction != null) {
                ActionCallback actionCallback = new ActionCallback(wsAddressingAction);
                if (wsReplyTo != null) {
                    actionCallback.setReplyTo(new EndpointReference(wsReplyTo));
                }

                if (wsFaultTo != null) {
                    actionCallback.setFaultTo(new EndpointReference(wsFaultTo));
                }
                actionCallback.doWithMessage(message);
            }

            configuration.getMessageFilter().filterProducer(exchange, message);
View Full Code Here

TOP

Related Classes of org.springframework.ws.soap.addressing.core.EndpointReference

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.