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 to...@apache.org on 2004/11/18 16:31:21 UTC

cvs commit: ws-axis/java/src/org/apache/axis/wsdl/fromJava Namespaces.java

tomj        2004/11/18 07:31:21

  Modified:    java/src/org/apache/axis/wsdl/fromJava Namespaces.java
  Log:
  Add a trailing slash to namespaces we create from package names.
  
  The WS-I validation of our WSDL complains about our targetNamespace
  while this doesn't fix it, it does make them just a bit more well formed.
  
  Revision  Changes    Path
  1.12      +3 -3      ws-axis/java/src/org/apache/axis/wsdl/fromJava/Namespaces.java
  
  Index: Namespaces.java
  ===================================================================
  RCS file: /home/cvs/ws-axis/java/src/org/apache/axis/wsdl/fromJava/Namespaces.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- Namespaces.java	25 Feb 2004 14:02:50 -0000	1.11
  +++ Namespaces.java	18 Nov 2004 15:31:20 -0000	1.12
  @@ -191,7 +191,7 @@
           }
   
           if (clsName.lastIndexOf('.') == -1) {
  -            return protocol + "://" + "DefaultNamespace";
  +            return protocol + "://" + "DefaultNamespace/";
           }
   
           String packageName = clsName.substring(0, clsName.lastIndexOf('.'));
  @@ -220,7 +220,7 @@
                                                          String protocol) {
   
           if ((packageName == null) || packageName.equals("")) {
  -            return protocol + "://" + "DefaultNamespace";
  +            return protocol + "://" + "DefaultNamespace/";
           }
   
           StringTokenizer st = new StringTokenizer(packageName, ".");
  @@ -243,7 +243,7 @@
               sb.append(word);
           }
   
  -        return protocol + "://" + sb.toString();
  +        return protocol + "://" + sb.toString() + "/";
       }
   
       /**