Examples of ActionCallback


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

    }

    @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

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

    }

    @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

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

    }

    @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

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

        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

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

        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

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

        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

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

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

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

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

    @Test
    public void testAction() throws Exception {
        StreamSource source = new StreamSource(new StringReader(xmlRequestForGoogleStockQuoteNoNamespace));
        StringWriter sw = new StringWriter();
        StreamResult result = new StreamResult(sw);
        webServiceTemplate.sendSourceAndReceiveToResult(source, new ActionCallback("http://www.webserviceX.NET/GetQuote"), result);
        assertNotNull(result);
        TestUtil.assertEqualsIgnoreNewLinesSymbol(expectedResponse, sw.toString());
    }
View Full Code Here

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

    @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

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

    }

    @Test
    public void testWSAddressingAction() throws Exception {
        StreamSource source = new StreamSource(new StringReader(xmlBody));
        webServiceTemplate.sendSourceAndReceive(source, new ActionCallback("http://www.stockquotes.edu/myUniqueAction"), TestUtil.NOOP_SOURCE_EXTRACTOR);
        // here is localhost as to by default
        resultEndpointAction.expectedMinimumMessageCount(1);
        resultEndpointAction.assertIsSatisfied();
    }
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.