This change will help Axis pass one of the TCK tests, but the solution is
not compliant with JSR 101.
If WSDL is not present, getPorts should throw a ServiceException not
return a null iterator.
Rich 'Shirley' Scheuerle
IBM WebSphere & Axis Web Services Development
512-838-5115 (IBM TL 678-5115)
[EMAIL PROTECTED]
06/27/2002 02:37 PM
Please respond to axis-dev
To: [EMAIL PROTECTED]
cc:
Subject: cvs commit: xml-axis/java/src/org/apache/axis/client
Service.java
dims 2002/06/27 12:37:00
Modified: java/src/org/apache/axis/client Service.java
Log:
Handle the case where wsdlService is null.
Revision Changes Path
1.63 +2 -5 xml-axis/java/src/org/apache/axis/client/Service.java
Index: Service.java
===================================================================
RCS file:
/home/cvs/xml-axis/java/src/org/apache/axis/client/Service.java,v
retrieving revision 1.62
retrieving revision 1.63
diff -u -r1.62 -r1.63
--- Service.java 27 Jun 2002 18:06:17 -0000 1.62
+++ Service.java 27 Jun 2002 19:37:00 -0000 1.63
@@ -592,14 +592,11 @@
* required WSDL metadata
*/
public Iterator getPorts() throws ServiceException {
- Map map = wsdlService.getPorts();
-
- if ( map == null ) {
+ if (wsdlService == null || wsdlService.getPorts() == null){
// Return an empty iterator;
return new Vector().iterator();
}
-
- return map.values().iterator();
+ return wsdlService.getPorts().values().iterator();
}
/**