axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j...@apache.org
Subject [jira] Commented: (AXIS-1259) local xsd:group constructs are not processed properly
Date Tue, 23 Mar 2004 19:32:58 GMT
The following comment has been added to this issue:

     Author: Dominic Battre
    Created: Tue, 23 Mar 2004 11:31 AM
       Body:
Methods like these:
public org.w3.www._2001.XMLSchema.Facets[] getFacets0Unbounded()
public org.w3.www._2001.XMLSchema.Facets getFacets0Unbounded(int i)
or in other words: methods to access the elements of this schema
http://xframe.sourceforge.net/xml-schema/doc/http___www.w3.org_2001_XMLSchema/group/simpleRestrictionModel.html

The class that gets generated contains only these methods:
public Foobartype()
public synchronized boolean equals(java.lang.Object obj)
public synchronized int hashCode()
public static org.apache.axis.description.TypeDesc getTypeDesc()
public static org.apache.axis.encoding.Serializer getSerializer(...)
public static org.apache.axis.encoding.Deserializer getDeserializer(...)
so it is nearly empty. (no real content)

If I extend the wsdl file by a line
<xsd:import schema="http://www.w3.org/2001/XMLSchema" schemaLocation="http://www.w3.org/2001/XMLSchema.xsd"
/>
A class org.w3.www._2001.XMLSchema.SimpleRestrictionModel is being generated which contains
methods that I quoted above (getFacets0Unbounded) but WSDL2Java raises an exception as you
can see in the lower part of http://issues.apache.org/jira/secure/ViewIssue.jspa?key=AXIS-1259#action_26479

thank you
---------------------------------------------------------------------
View this comment:
  http://issues.apache.org/jira/secure/ViewIssue.jspa?key=AXIS-1259&page=comments#action_26489

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/secure/ViewIssue.jspa?key=AXIS-1259

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: AXIS-1259
    Summary: local xsd:group constructs are not processed properly
       Type: Bug

     Status: Closed
   Priority: Major
 Resolution: FIXED

    Project: Axis
 Components: 
             WSDL processing
   Fix Fors:
             current (nightly)
   Versions:
             current (nightly)

   Assignee: Davanum Srinivas
   Reporter: Dominic Battre

    Created: Tue, 23 Mar 2004 5:07 AM
    Updated: Tue, 23 Mar 2004 11:31 AM
Environment: Gentoo Linux, Blackdown JDK 1.4.1

Description:
The fix for http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26548 seems to create some problems
concerning xsd:groups.

At least WSDL2Java (cvs as of Feb 5 2004) processes the following code without complains whilst
WSDL2Java (cvs as of Feb 6 2004) produces this exception:

java org.apache.axis.wsdl.WSDL2Java --server-side --skeletonDeploy true --verbose test.wsdl

Parsing XML file:  test.wsdl
java.io.IOException: Type {http://www.w3.org/2001/XMLSchema}simpleRestrictionModel is referenced
but not defined.
        at org.apache.axis.wsdl.symbolTable.SymbolTable.checkForUndefined(SymbolTable.java:670)
        at org.apache.axis.wsdl.symbolTable.SymbolTable.add(SymbolTable.java:550)
        at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:524)
        at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:501)
        at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:374)
        at java.lang.Thread.run(Thread.java:536)


The wsdl code creating the problem is

 <xsd:complexType name="foobartype">
    <xsd:sequence>
       <xsd:group ref="xsd:simpleRestrictionModel" minOccurs="0"/>
    </xsd:sequence>
 </xsd:complexType>

I will attach the whole wsdl file and the patch that was applied on Feb 6 2004.


---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


Mime
View raw message