Author: dims
Date: Thu Dec 22 14:21:13 2005
New Revision: 358648

URL: http://svn.apache.org/viewcvs?rev=358648&view=rev
Log:
bug fix from Tyler Nelson <[EMAIL PROTECTED]>


================== NOTE ============ 
I had to make a small change in SchemaBuilder.jar for the WS Commons  XmlSchema 
project. if was not working with a restriction tag in the amazon.com webservice 
 that I was testing out. Basically there was an exception with the QName 
because the name was not being set by the restriction tag logic correctly (I 
think?). I added code on line 344, in case you want to look over it.
 
Regards,
   Tyler
 
amazon webservice wsdl
http://webservices.amazon.com/AWSECommerceService/AWSECommerceService.wsdl
================== NOTE ============


Modified:
    
webservices/commons/trunk/XmlSchema/src/org/apache/ws/commons/schema/SchemaBuilder.java

Modified: 
webservices/commons/trunk/XmlSchema/src/org/apache/ws/commons/schema/SchemaBuilder.java
URL: 
http://svn.apache.org/viewcvs/webservices/commons/trunk/XmlSchema/src/org/apache/ws/commons/schema/SchemaBuilder.java?rev=358648&r1=358647&r2=358648&view=diff
==============================================================================
--- 
webservices/commons/trunk/XmlSchema/src/org/apache/ws/commons/schema/SchemaBuilder.java
 (original)
+++ 
webservices/commons/trunk/XmlSchema/src/org/apache/ws/commons/schema/SchemaBuilder.java
 Thu Dec 22 14:21:13 2005
@@ -341,6 +341,7 @@
                 namespace = schema.namespaces.get(namespace).toString();
                 name = Tokenizer.lastToken(name, ":")[1];
                 restriction.baseTypeName = new QName(namespace, name);
+                simpleType.name = name;
             } else if (inlineSimpleType != null) {
                 XmlSchemaSimpleType baseType =
                         handleSimpleType(schema, inlineSimpleType, schemaEl);


Reply via email to