mention actual endpoint address in connect failure exception message (SPR-6971)
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3088 50f2f4bb-b051-0410-bef5-90022cba6387
This commit is contained in:
parent
012d0983d0
commit
aa8ad22e94
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2002-2008 the original author or authors.
|
* Copyright 2002-2010 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
|
@ -20,7 +20,6 @@ import java.lang.reflect.InvocationTargetException;
|
||||||
import java.lang.reflect.Method;
|
import java.lang.reflect.Method;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
import javax.xml.namespace.QName;
|
import javax.xml.namespace.QName;
|
||||||
import javax.xml.ws.BindingProvider;
|
import javax.xml.ws.BindingProvider;
|
||||||
import javax.xml.ws.ProtocolException;
|
import javax.xml.ws.ProtocolException;
|
||||||
|
|
@ -248,7 +247,7 @@ public class JaxWsPortClientInterceptor extends LocalJaxWsServiceFactory
|
||||||
/**
|
/**
|
||||||
* Set the interface of the service that this factory should create a proxy for.
|
* Set the interface of the service that this factory should create a proxy for.
|
||||||
*/
|
*/
|
||||||
public void setServiceInterface(Class serviceInterface) {
|
public void setServiceInterface(Class<?> serviceInterface) {
|
||||||
if (serviceInterface != null && !serviceInterface.isInterface()) {
|
if (serviceInterface != null && !serviceInterface.isInterface()) {
|
||||||
throw new IllegalArgumentException("'serviceInterface' must be an interface");
|
throw new IllegalArgumentException("'serviceInterface' must be an interface");
|
||||||
}
|
}
|
||||||
|
|
@ -258,7 +257,7 @@ public class JaxWsPortClientInterceptor extends LocalJaxWsServiceFactory
|
||||||
/**
|
/**
|
||||||
* Return the interface of the service that this factory should create a proxy for.
|
* Return the interface of the service that this factory should create a proxy for.
|
||||||
*/
|
*/
|
||||||
public Class getServiceInterface() {
|
public Class<?> getServiceInterface() {
|
||||||
return this.serviceInterface;
|
return this.serviceInterface;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -395,10 +394,12 @@ public class JaxWsPortClientInterceptor extends LocalJaxWsServiceFactory
|
||||||
throw new JaxWsSoapFaultException(ex);
|
throw new JaxWsSoapFaultException(ex);
|
||||||
}
|
}
|
||||||
catch (ProtocolException ex) {
|
catch (ProtocolException ex) {
|
||||||
throw new RemoteConnectFailureException("Could not connect to remote service [" + this.portQName + "]", ex);
|
throw new RemoteConnectFailureException(
|
||||||
|
"Could not connect to remote service [" + getEndpointAddress() + "]", ex);
|
||||||
}
|
}
|
||||||
catch (WebServiceException ex) {
|
catch (WebServiceException ex) {
|
||||||
throw new RemoteAccessException("Could not access remote service at [" + this.portQName + "]", ex);
|
throw new RemoteAccessException(
|
||||||
|
"Could not access remote service at [" + getEndpointAddress() + "]", ex);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue