axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "R J Scheuerle Jr" <sc...@us.ibm.com>
Subject Re: cvs commit: xml-axis/java/src/org/apache/axis/wsdl/fromJava Types.java
Date Wed, 05 Jun 2002 13:41:14 GMT
Good change.  Including this as needed is probably more complicated than
the benefits.  Thanks Tom.

Rich Scheuerle
XML & Web Services Development
512-838-5115  (IBM TL 678-5115)


                                                                                         
                                  
                      tomj@apache.org                                                    
                                  
                                               To:       xml-axis-cvs@apache.org         
                                  
                      06/04/2002 06:23         cc:                                       
                                  
                      PM                       Subject:  cvs commit: xml-axis/java/src/org/apache/axis/wsdl/fromJava
Types. 
                      Please respond to         java                                     
                                  
                      axis-dev                                                           
                                  
                                                                                         
                                  
                                                                                         
                                  



tomj        2002/06/04 16:23:34

  Modified:    java/src/org/apache/axis/wsdl/fromJava Types.java
  Log:
  Add import of SOAP-ENC namespace to all schema elements.

  This probably should be made 'as needed', but including this
  should be harmless.

  Revision  Changes    Path
  1.31      +9 -4      xml-
axis/java/src/org/apache/axis/wsdl/fromJava/Types.java

  Index: Types.java
  ===================================================================
  RCS file: /home/cvs/xml-
axis/java/src/org/apache/axis/wsdl/fromJava/Types.java,v
  retrieving revision 1.30
  retrieving revision 1.31
  diff -u -r1.30 -r1.31
  --- Types.java         31 May 2002 19:08:10 -0000          1.30
  +++ Types.java         4 Jun 2002 23:23:34 -0000           1.31
  @@ -296,10 +296,15 @@
               }
           }
           if (schemaElem == null) {
  -          schemaElem = docHolder.createElement("schema");
  -          wsdlTypesElem.appendChild(schemaElem);
  -          schemaElem.setAttribute("xmlns", Constants.
URI_DEFAULT_SCHEMA_XSD);
  -          schemaElem.setAttribute("targetNamespace", qName.
getNamespaceURI());
  +            schemaElem = docHolder.createElement("schema");
  +            wsdlTypesElem.appendChild(schemaElem);
  +            schemaElem.setAttribute("xmlns", Constants.
URI_DEFAULT_SCHEMA_XSD);
  +            schemaElem.setAttribute("targetNamespace", qName.
getNamespaceURI());
  +
  +            // Add SOAP-ENC namespace import
  +            Element importElem = docHolder.createElement("import");
  +            schemaElem.appendChild(importElem);
  +            importElem.setAttribute("namespace", Constants.
URI_DEFAULT_SOAP_ENC);
           }
           schemaElem.appendChild(element);
       }





Mime
View raw message