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);
}