You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-commits@axis.apache.org by ve...@apache.org on 2011/08/17 19:53:41 UTC

svn commit: r1158850 - in /axis/axis2/java/core/branches/xmlschema2: ./ modules/kernel/src/org/apache/axis2/description/java2wsdl/DefaultSchemaGenerator.java

Author: veithen
Date: Wed Aug 17 17:53:41 2011
New Revision: 1158850

URL: http://svn.apache.org/viewvc?rev=1158850&view=rev
Log:
Reintegrated changes from trunk.

Modified:
    axis/axis2/java/core/branches/xmlschema2/   (props changed)
    axis/axis2/java/core/branches/xmlschema2/modules/kernel/src/org/apache/axis2/description/java2wsdl/DefaultSchemaGenerator.java

Propchange: axis/axis2/java/core/branches/xmlschema2/
------------------------------------------------------------------------------
    svn:mergeinfo = /axis/axis2/java/core/trunk:1158386-1158848

Modified: axis/axis2/java/core/branches/xmlschema2/modules/kernel/src/org/apache/axis2/description/java2wsdl/DefaultSchemaGenerator.java
URL: http://svn.apache.org/viewvc/axis/axis2/java/core/branches/xmlschema2/modules/kernel/src/org/apache/axis2/description/java2wsdl/DefaultSchemaGenerator.java?rev=1158850&r1=1158849&r2=1158850&view=diff
==============================================================================
--- axis/axis2/java/core/branches/xmlschema2/modules/kernel/src/org/apache/axis2/description/java2wsdl/DefaultSchemaGenerator.java (original)
+++ axis/axis2/java/core/branches/xmlschema2/modules/kernel/src/org/apache/axis2/description/java2wsdl/DefaultSchemaGenerator.java Wed Aug 17 17:53:41 2011
@@ -548,7 +548,7 @@ public class DefaultSchemaGenerator impl
         XmlSchemaComplexType complexType = new XmlSchemaComplexType(xmlSchema);
         complexType.setName("Exception");
         xmlSchema.getItems().add(complexType);
-        xmlSchema.getElements().add(elementName, complexType);
+        xmlSchema.getSchemaTypes().add(elementName, complexType);
         typeTable.addComplexSchema(Exception.class.getName(), elementName);
         QName schemaTypeName = new QName(Java2WSDLConstants.URI_2001_SCHEMA_XSD, "string");
         addContentToMethodSchemaType(sequence, schemaTypeName, "Message", false);