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/wsdl/symbolTable SchemaUtils.java
Date Sat, 30 Apr 2005 18:31:40 GMT
dims        2005/04/30 11:31:40

  Modified:    java/src/org/apache/axis/wsdl/symbolTable SchemaUtils.java
  Log:
  Fix for AXIS-1935 - .NET does not like xmlns=""
  
  Revision  Changes    Path
  1.56      +8 -1      ws-axis/java/src/org/apache/axis/wsdl/symbolTable/SchemaUtils.java
  
  Index: SchemaUtils.java
  ===================================================================
  RCS file: /home/cvs/ws-axis/java/src/org/apache/axis/wsdl/symbolTable/SchemaUtils.java,v
  retrieving revision 1.55
  retrieving revision 1.56
  diff -u -r1.55 -r1.56
  --- SchemaUtils.java	29 Apr 2005 13:54:50 -0000	1.55
  +++ SchemaUtils.java	30 Apr 2005 18:31:40 -0000	1.56
  @@ -1357,7 +1357,14 @@
                       if (storeComponentQName) {
                           String name = Utils.getAttribute(node, "name");
                           if (name != null) {
  -                            itemQName.value = new QName("", name);
  +                            // check elementFormDefault on schema element
  +                            String def = Utils.getScopedAttribute(node,
  +                                    "elementFormDefault");
  +                            String namespace = "";
  +                            if ((def != null) && def.equals("qualified")) {
  +                                 namespace = Utils.getScopedAttribute(node, "targetNamespace");
  +                            }
  +                            itemQName.value = new QName(namespace, name);
                           }
                       }
                       return componentTypeQName;
  
  
  

Mime
View raw message