axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
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
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

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="" schemaLocation=""
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

thank you
View this comment:

View the issue:

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
             WSDL processing
   Fix Fors:
             current (nightly)
             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

The fix for 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 Type {}simpleRestrictionModel is referenced
but not defined.
        at org.apache.axis.wsdl.symbolTable.SymbolTable.checkForUndefined(
        at org.apache.axis.wsdl.symbolTable.SymbolTable.add(
        at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(
        at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(
        at org.apache.axis.wsdl.gen.Parser$

The wsdl code creating the problem is

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

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

This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:

If you want more information on JIRA, or have a bug to report see:

View raw message