Package org.springframework.ws.soap.addressing.client

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


        Assertions.assertThat(channelOut().getAction()).isEqualTo(getDefaultResponseAction());
    }

    @Test
    public void defaultAction4fault() throws Exception {
        ActionCallback requestCallback = channelIn("http://default-fault.com/");
        try {
            webServiceTemplate.sendSourceAndReceiveToResult(source, requestCallback, result);
        } catch (SoapFaultClientException e) {
            // ok - cause fault response
        }
View Full Code Here


        Assertions.assertThat(channelOut().getAction()).isEqualTo(getDefaultResponseAction());
    }

    @Test
    public void customAction4output() throws Exception {
        ActionCallback requestCallback = channelIn("http://uri-ok.com");

        webServiceTemplate.sendSourceAndReceiveToResult(source, requestCallback, result);

        Assertions.assertThat(channelOut().getAction()).isEqualTo(new URI("http://customURIOutputAction"));
    }
View Full Code Here

        Assertions.assertThat(channelOut().getAction()).isEqualTo(new URI("http://customURIOutputAction"));
    }

    @Test
    public void customAction4fault() throws Exception {
        ActionCallback requestCallback = channelIn("http://uri-fault.com");
        try {
            webServiceTemplate.sendSourceAndReceiveToResult(source, requestCallback, result);
        } catch (SoapFaultClientException e) {
            // ok - cause fault response
        }
View Full Code Here

    }

    @Test
    @Ignore(value = "Not implemented yet")
    public void overrideHeaderAction4output() throws Exception {
        ActionCallback requestCallback = channelIn("http://override-ok.com");

        webServiceTemplate.sendSourceAndReceiveToResult(source, requestCallback, result);

        Assertions.assertThat(channelOut().getAction()).isEqualTo(new URI("http://outputHeader.com"));
    }
View Full Code Here

    }

    @Test
    @Ignore(value = "Not implemented yet")
    public void overrideHeaderAction4fault() throws Exception {
        ActionCallback requestCallback = channelIn("http://override-fault.com");
        try {
            webServiceTemplate.sendSourceAndReceiveToResult(source, requestCallback, result);
        } catch (SoapFaultClientException e) {
            // ok - cause fault response
        }
View Full Code Here

    }

    @Test
    @Ignore(value = "Not implemented yet")
    public void headerAction4output() throws Exception {
        ActionCallback requestCallback = channelIn("http://headerOnly-ok.com");

        webServiceTemplate.sendSourceAndReceiveToResult(source, requestCallback, result);

        Assertions.assertThat(channelOut().getAction()).isEqualTo(new URI("http://outputHeader.com"));
    }
View Full Code Here

    }

    @Test
    @Ignore(value = "Not implemented yet")
    public void headerAction4fault() throws Exception {
        ActionCallback requestCallback = channelIn("http://headerOnly-fault.com");
        try {
            webServiceTemplate.sendSourceAndReceiveToResult(source, requestCallback, result);
        } catch (SoapFaultClientException e) {
            // ok - cause fault response
        }
View Full Code Here

        Assertions.assertThat(channelOut().getAction()).isEqualTo(new URI("http://faultHeader.com"));
    }

    @Test
    public void onlyCustomOutputSpecified4output() throws Exception {
        ActionCallback requestCallback = channelIn("http://uriOutputOnly-ok.com/");

        webServiceTemplate.sendSourceAndReceiveToResult(source, requestCallback, result);

        Assertions.assertThat(channelOut().getAction()).isEqualTo(new URI("http://customURIOutputAction"));
    }
View Full Code Here

        Assertions.assertThat(channelOut().getAction()).isEqualTo(new URI("http://customURIOutputAction"));
    }

    @Test
    public void onlyCustomOutputSpecified4fault() throws Exception {
        ActionCallback requestCallback = channelIn("http://uriOutputOnly-fault.com/");
        try {
            webServiceTemplate.sendSourceAndReceiveToResult(source, requestCallback, result);
        } catch (SoapFaultClientException e) {
            // ok - cause fault response
        }
View Full Code Here

        Assertions.assertThat(channelOut().getAction()).isEqualTo(getDefaultResponseAction());
    }

    @Test
    public void onlyCustomFaultSpecified4output() throws Exception {
        ActionCallback requestCallback = channelIn("http://uriFaultOnly-ok.com/");

        webServiceTemplate.sendSourceAndReceiveToResult(source, requestCallback, result);

        Assertions.assertThat(channelOut().getAction()).isEqualTo(getDefaultResponseAction());
    }
View Full Code Here

TOP

Related Classes of org.springframework.ws.soap.addressing.client.ActionCallback

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.