Package org.springframework.ws.soap.addressing.version

Examples of org.springframework.ws.soap.addressing.version.Addressing10


    }

    @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


    }

    @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

    }

    @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

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

     * Initializes the default implementation for this mapping's strategies: the {@link
     * org.springframework.ws.soap.addressing.version.Addressing200408} and {@link org.springframework.ws.soap.addressing.version.Addressing10}
     * versions of the specification, and the {@link UuidMessageIdStrategy}.
     */
    protected void initDefaultStrategies() {
        this.versions = new AddressingVersion[]{new Addressing200408(), new Addressing10()};
        messageIdStrategy = new UuidMessageIdStrategy();
    }
View Full Code Here

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

TOP

Related Classes of org.springframework.ws.soap.addressing.version.Addressing10

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.