axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From t...@apache.org
Subject cvs commit: xml-axis/java/src/org/apache/axis/client Service.java
Date Thu, 03 Apr 2003 21:54:16 GMT
tomj        2003/04/03 13:54:16

  Modified:    java/src/org/apache/axis/client Service.java
  Log:
  Fix JAX-RPC TCK test suite issue: getPorts() must throw a ServiceException
   if there is no WSDL meta-data available in the Service.
  
  How did we ever pass this test in Axis 1.0?
  
  Revision  Changes    Path
  1.90      +4 -1      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.89
  retrieving revision 1.90
  diff -u -r1.89 -r1.90
  --- Service.java	26 Mar 2003 18:04:59 -0000	1.89
  +++ Service.java	3 Apr 2003 21:54:16 -0000	1.90
  @@ -664,7 +664,10 @@
        *     have access to the required WSDL metadata
        */
       public Iterator getPorts() throws ServiceException {
  -        if (wsdlService == null || wsdlService.getPorts() == null) {
  +        if (wsdlService == null)
  +            throw new ServiceException(Messages.getMessage("wsdlMissing00"));
  +
  +        if (wsdlService.getPorts() == null) {
               // Return an empty iterator;
               return new Vector().iterator();
           }
  
  
  

Mime
View raw message