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

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


     * 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


     * <p>The {@link AddressingVersion} is set to {@link Addressing10}.
     *
     * @param action the value of the action property to set
     */
    public ActionCallback(String action) throws URISyntaxException {
        this(new URI(action), new Addressing10(), null);
    }
View Full Code Here

     * <p>The {@link AddressingVersion} is set to {@link Addressing10}.
     *
     * @param action the value of the action property to set
     */
    public ActionCallback(URI action) {
        this(action, new Addressing10(), null);
    }
View Full Code Here

public class AddressingInterceptor10Test extends AbstractAddressingInterceptorTestCase {

    @Override
    protected AddressingVersion getVersion() {
        return new Addressing10();
    }
View Full Code Here

public class ActionCallback10Test extends AbstractActionCallbackTestCase {

    @Override
    protected AddressingVersion getVersion() {
        return new Addressing10();
    }
View Full Code Here

    @Test
    public void testTo() throws Exception {
        StreamSource source = new StreamSource(new StringReader(xmlRequestForGoogleStockQuoteNoNamespace));
        StringWriter sw = new StringWriter();
        StreamResult result = new StreamResult(sw);
        webServiceTemplate.sendSourceAndReceiveToResult(source, new ActionCallback(new URI("http://action-does-not-matter-here"), new Addressing10(), new URI("http://url.to")),
                                                        result);
        assertNotNull(result);
        TestUtil.assertEqualsIgnoreNewLinesSymbol(expectedResponse, sw.toString());
    }
View Full Code Here

     *
     * @param messageContext
     * @return
     */
    public static MessageAddressingProperties getWSAProperties(SoapMessage soapMessage) {
        AddressingVersion[] versions = new AddressingVersion[] {new Addressing200408(), new Addressing10()};

        for (AddressingVersion version : versions) {
            if (supports(version, soapMessage)) {
                MessageAddressingProperties requestMap = version.getMessageAddressingProperties(soapMessage);
                return requestMap;
View Full Code Here

    }

    @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

    }

    @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

    }

    @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

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.