You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by bu...@apache.org on 2002/08/20 15:35:04 UTC

cvs commit: xml-axis/java/src/org/apache/axis/client Service.java

butek       2002/08/20 06:35:04

  Modified:    java/src/org/apache/axis/client Service.java
  Log:
  We check to see whether we have a WSDL URL before doing some
  operations.  Unfortunately we have a constructor which takes a stream
  to the WSDL file rather than the URL.  In this case, even though we have
  the WDSL info, we don't have the URL.  So we should check the WSDL
  service instead, which is initialized regardless of how we got the WSDL
  info.
  
  Revision  Changes    Path
  1.69      +3 -3      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.68
  retrieving revision 1.69
  diff -u -r1.68 -r1.69
  --- Service.java	19 Aug 2002 15:35:21 -0000	1.68
  +++ Service.java	20 Aug 2002 13:35:04 -0000	1.69
  @@ -300,7 +300,7 @@
       public Remote getPort(QName portName, Class proxyInterface)
                              throws ServiceException {
   
  -        if (wsdlLocation == null)
  +        if (wsdlService == null)
               throw new ServiceException(JavaUtils.getMessage("wsdlMissing00"));
   
           Port port = wsdlService.getPort( portName.getLocalPart() );
  @@ -359,7 +359,7 @@
        * @throws ServiceException If there's an error
        */
       public Remote getPort(Class proxyInterface) throws ServiceException {
  -        if (wsdlLocation == null)
  +        if (wsdlService == null)
               throw new ServiceException(JavaUtils.getMessage("wsdlMissing00"));
   
           return getPort(null, null, proxyInterface);
  @@ -534,7 +534,7 @@
           if (portName == null)
               throw new ServiceException(JavaUtils.getMessage("badPort00"));
   
  -        if (wsdlLocation == null) 
  +        if (wsdlService == null) 
               throw new ServiceException(JavaUtils.getMessage("wsdlMissing00"));
   
           javax.xml.rpc.Call[] array = new javax.xml.rpc.Call[]{createCall(portName)};