axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject cvs commit: ws-axis/java/src/org/apache/axis/client Service.java
Date Sun, 13 Jun 2004 03:07:55 GMT
dims        2004/06/12 20:07:55

  Modified:    java/src/org/apache/axis/client Service.java
  Log:
  Additional checks to conform to JAXRPC spec (Fix TCK failure reported by Ias)
  
  Revision  Changes    Path
  1.98      +15 -0     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.97
  retrieving revision 1.98
  diff -u -r1.97 -r1.98
  --- Service.java	10 May 2004 18:55:53 -0000	1.97
  +++ Service.java	13 Jun 2004 03:07:55 -0000	1.98
  @@ -410,6 +410,21 @@
                       Messages.getMessage("mustExtendRemote00"));
           }
   
  +        // Validate the proxyInterface
  +        if (wsdlParser != null) {
  +            Port port = wsdlService.getPort(portName.getLocalPart());
  +            if (port == null)
  +                throw new ServiceException(Messages.getMessage("noPort00", "" + proxyInterface.getName()));
  +    
  +            Binding binding = port.getBinding();
  +            SymbolTable symbolTable = wsdlParser.getSymbolTable();
  +            BindingEntry bEntry = symbolTable.getBindingEntry(binding.getQName());
  +            if(bEntry.getParameters().size() !=  proxyInterface.getMethods().length) {
  +                throw new ServiceException(Messages.getMessage("incompatibleSEI00", ""
+ portName));
  +            }  
  +            // TODO: Check the methods and the parameters as well.
  +        }
  +        
           try {
               Call call = null;
               if (portName == null) {
  
  
  

Mime
View raw message