Examples of ActionCallback


Examples of org.springframework.ws.soap.addressing.client.ActionCallback

    }

    @Test
    public void testWSAddressingTo() throws Exception {
        StreamSource source = new StreamSource(new StringReader(xmlBody));
        webServiceTemplate.sendSourceAndReceive(source, new ActionCallback(new URI("http://www.stockquotes.edu/does-not-matter"), new Addressing10(),
                                                                           new URI("http://myUniqueToUrl")), TestUtil.NOOP_SOURCE_EXTRACTOR);

        resultEndpointTo.expectedMinimumMessageCount(1);
        resultEndpointTo.assertIsSatisfied();
    }
View Full Code Here

Examples of org.springframework.ws.soap.addressing.client.ActionCallback

    }

    @Test
    public void testWSAddressingActionAndTo() throws Exception {
        StreamSource source = new StreamSource(new StringReader(xmlBody));
        webServiceTemplate.sendSourceAndReceive(source, new ActionCallback(new URI("http://actionAndTo"), new Addressing10(), new URI("http://url4.to")),
                                                TestUtil.NOOP_SOURCE_EXTRACTOR);
        resultEndpointActionAndTo.expectedMinimumMessageCount(1);
        resultEndpointActionAndTo.assertIsSatisfied();
    }
View Full Code Here

Examples of org.springframework.ws.soap.addressing.client.ActionCallback

    }

    @Test
    public void testWSAddressingToAndAction() throws Exception {
        StreamSource source = new StreamSource(new StringReader(xmlBody));
        webServiceTemplate.sendSourceAndReceive(source, new ActionCallback(new URI("http://toAndAction"), new Addressing10(), new URI("http://url3.to")),
                                                TestUtil.NOOP_SOURCE_EXTRACTOR);

        resultEndpointToAndAction.expectedMinimumMessageCount(1);
        resultEndpointToAndAction.assertIsSatisfied();
    }
View Full Code Here

Examples of org.springframework.ws.soap.addressing.client.ActionCallback

    }

    @Test
    public void testWSAddressingResolveToMoreSpecif() throws Exception {
        StreamSource source = new StreamSource(new StringReader(xmlBody));
        webServiceTemplate.sendSourceAndReceive(source, new ActionCallback(new URI("http://action1"), new Addressing10(), new URI("http://url1.to")),
                                                TestUtil.NOOP_SOURCE_EXTRACTOR);

        resultEndpointToMoreSpecific.expectedMinimumMessageCount(1);
        resultEndpointToMoreSpecific.assertIsSatisfied();
View Full Code Here

Examples of org.springframework.ws.soap.addressing.client.ActionCallback

    }

    @Test
    public void testWSAddressingResolveActionMoreSpecif() throws Exception {
        StreamSource source = new StreamSource(new StringReader(xmlBody));
        webServiceTemplate.sendSourceAndReceive(source, new ActionCallback(new URI("http://action2"), new Addressing10(), new URI("http://url2.to")),
                                                TestUtil.NOOP_SOURCE_EXTRACTOR);

        resultEndpointToMoreSpecific.expectedMinimumMessageCount(0);
        resultEndpointToMoreSpecific.assertIsSatisfied();
View Full Code Here

Examples of org.springframework.ws.soap.addressing.client.ActionCallback

    }

    @Test
    public void testWSAddressingActionResponseActions() throws Exception {
        StreamSource source = new StreamSource(new StringReader(xmlBody));
        webServiceTemplate.sendSourceAndReceive(source, new ActionCallback("http://www.stockquotes.edu/WSAddresingActionReply"), TestUtil.NOOP_SOURCE_EXTRACTOR);
        resultOutputAndFault.expectedMinimumMessageCount(1);
        resultOutputAndFault.assertIsSatisfied();
    }
View Full Code Here

Examples of org.springframework.ws.soap.addressing.client.ActionCallback

    }

    @Test
    public void testWSAddressingToResponseActions() throws Exception {
        StreamSource source = new StreamSource(new StringReader(xmlBody));
        webServiceTemplate.sendSourceAndReceive(source, new ActionCallback(new URI("http://doesn-not-matter.com"), new Addressing10(), new URI("http://urlOutputAndFault2.to")),
                                                TestUtil.NOOP_SOURCE_EXTRACTOR);
        resultOutputAndFault2.expectedMinimumMessageCount(1);
        resultOutputAndFault2.assertIsSatisfied();
    }
View Full Code Here

Examples of org.springframework.ws.soap.addressing.client.ActionCallback

    }

    @Test(expected = WebServiceIOException.class)
    public void testWrongWSAddressingAction() throws Exception {
        StreamSource source = new StreamSource(new StringReader(xmlBody));
        webServiceTemplate.sendSourceAndReceive(source, new ActionCallback("http://this-is-a-wrong-ws-addressing-action"), TestUtil.NOOP_SOURCE_EXTRACTOR);
        resultEndpointAction.assertIsSatisfied();
    }
View Full Code Here

Examples of org.springframework.ws.soap.addressing.client.ActionCallback

                SoapHeader header = ((SoapMessage) message).getSoapHeader();
                XML_CONVERTER.toResult(soapHeaderSource, header.getResult());
            }

            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

Examples of org.springframework.ws.soap.addressing.client.ActionCallback

     * @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;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.