You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by ia...@apache.org on 2004/05/10 09:44:06 UTC
cvs commit: ws-axis/java/src/org/apache/axis/client Service.java
ias 2004/05/10 00:44:06
Modified: java/src/org/apache/axis/client Service.java
Log:
Fix getPort against negative cases such as invalid interface names. In those cases, ServiceException (wrapping ClassCastException) is thrown.
Revision Changes Path
1.96 +4 -2 ws-axis/java/src/org/apache/axis/client/Service.java
Index: Service.java
===================================================================
RCS file: /home/cvs/ws-axis/java/src/org/apache/axis/client/Service.java,v
retrieving revision 1.95
retrieving revision 1.96
diff -u -r1.95 -r1.96
--- Service.java 25 Feb 2004 14:02:30 -0000 1.95
+++ Service.java 10 May 2004 07:44:06 -0000 1.96
@@ -422,11 +422,13 @@
}
ClassLoader classLoader =
Thread.currentThread().getContextClassLoader();
- return (Remote) Proxy.newProxyInstance(classLoader,
+ javax.xml.rpc.Stub stub = (javax.xml.rpc.Stub) Proxy.newProxyInstance(classLoader,
new Class[]{proxyInterface, javax.xml.rpc.Stub.class},
new AxisClientProxy(call, portName));
+ ((org.apache.axis.client.Stub) stub).setPortName(portName);
+ return (Remote) stub;
} catch (Exception e) {
- throw new ServiceException(e.toString());
+ throw new ServiceException(e);
}
} // getPort