Examples of WebServiceIOException


Examples of org.springframework.ws.client.WebServiceIOException

        }
        catch (TransportException ex) {
            throw new WebServiceTransportException("Could not use transport: " + ex.getMessage(), ex);
        }
        catch (IOException ex) {
            throw new WebServiceIOException("I/O error: " + ex.getMessage(), ex);
        }
        finally {
            TransportUtils.closeConnection(connection);
            TransportContextHolder.setTransportContext(previousTransportContext);
        }
View Full Code Here

Examples of org.springframework.ws.client.WebServiceIOException

                logger.debug("Found location [" + location + "] in " + wsdlResource);
            }
            return location != null ? URI.create(location) : null;
        }
        catch (IOException ex) {
            throw new WebServiceIOException("Error extracting location from WSDL [" + wsdlResource + "]", ex);
        }
        catch (TransformerException ex) {
            throw new WebServiceTransformerException("Error extracting location from WSDL [" + wsdlResource + "]", ex);
        }
    }
View Full Code Here

Examples of org.springframework.ws.client.WebServiceIOException

                SAXParseException[] errors;
                try {
                    errors = validator.validate(requestSource);
                }
                catch (IOException e) {
                    throw new WebServiceIOException("Could not validate response: " + e.getMessage(), e);
                }
                if (!ObjectUtils.isEmpty(errors)) {
                    return handleRequestValidationErrors(messageContext, errors);
                }
                else if (logger.isDebugEnabled()) {
View Full Code Here

Examples of org.springframework.ws.client.WebServiceIOException

                SAXParseException[] errors;
                try {
                    errors = validator.validate(responseSource);
                }
                catch (IOException e) {
                    throw new WebServiceIOException("Could not validate response: " + e.getMessage(), e);
                }
                if (!ObjectUtils.isEmpty(errors)) {
                    return handleResponseValidationErrors(messageContext, errors);
                }
                else if (logger.isDebugEnabled()) {
View Full Code Here

Examples of org.springframework.ws.client.WebServiceIOException

    @Test(expected = WebServiceIOException.class)
    public void testWrongSoapAction() throws Exception {
        if (isJava15()) {
            // does not work on JDK 1.5 due net.javacrumbs.spring-ws-test is not JDK 1.5 compatible
            throw new WebServiceIOException("Forced by JDK 1.5");
        }
        StreamSource source = new StreamSource(new StringReader(xmlRequestForGoogleStockQuoteNoNamespace));
        webServiceTemplate.sendSourceAndReceive(source, new SoapActionCallback("http://this-is-a-wrong-soap-action"), NOOP_SOURCE_EXTRACTOR);
        resultEndpointSoapAction.assertIsNotSatisfied();
    }
View Full Code Here

Examples of org.springframework.ws.client.WebServiceIOException

    @Test(expected = WebServiceIOException.class)
    public void testWrongUri() throws Exception {
        if (isJava15()) {
            // does not work on JDK 1.5 due net.javacrumbs.spring-ws-test is not JDK 1.5 compatible
            throw new WebServiceIOException("Forced by JDK 1.5");
        }
        StreamSource source = new StreamSource(new StringReader(xmlRequestForGoogleStockQuoteNoNamespace));
        webServiceTemplate.sendSourceAndReceive("http://localhost/wrong", source, NOOP_SOURCE_EXTRACTOR);
        resultEndpointUri.assertIsNotSatisfied();
    }
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.