You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by ax...@ws.apache.org on 2004/09/21 23:10:37 UTC
[jira] Created: (AXIS-1566) wsdl2java generates classes that don't compile
Message:
A new issue has been created in JIRA.
---------------------------------------------------------------------
View the issue:
http://issues.apache.org/jira/browse/AXIS-1566
Here is an overview of the issue:
---------------------------------------------------------------------
Key: AXIS-1566
Summary: wsdl2java generates classes that don't compile
Type: Bug
Status: Unassigned
Priority: Major
Project: Axis
Components:
WSDL processing
Versions:
beta-2
Assignee:
Reporter: Ken Moore
Created: Tue, 21 Sep 2004 2:09 PM
Updated: Tue, 21 Sep 2004 2:09 PM
Environment: Windows XP, Java 141_05, Axis Beta 1.2 dated March 31, 2004
Description:
Attempt to generate Java client side stubs and value classes for the attched WSDL. Compilation then results in errors such as the following:
[javac] Compiling 66 source files to C:\sandbox\kmoore\WebToolbox\classes
[javac] C:\sandbox\kmoore\WebToolbox\build\model\Cars\VEHICLE_CLASSArrayType.java:11: cannot resolve symbol
[javac] symbol : class VEHICLE_CLASS_ElemType
[javac] location: package Cars
[javac] private data.Cars.VEHICLE_CLASS_ElemType[] VEHICLE_CLASS;
The problem is that no VEHICLE_CLASS_ElemType is generated. VEHICLE_CLASS_Type is generated. If the generated source in VEHICLE_CLASSArrayType is modified to replace VEHICLE_CLASS_ElemType with VEHICLE_CLASS_Type, then the classes compile and can be used in web service access.
VEHICLE_CLASS is found in the WSDL in several places, as it is an element on its own and a member of a complex type. Here are the references to VEHICLE_CLASS:
<xs:element type="VEHICLE_CLASS"
name="VEHICLE_CLASS">
</xs:element>
<xs:element type="VEHICLE_CLASS"
name="vehicleClass"
minOccurs="0"
maxOccurs="unbounded">
</xs:element>
<xs:complexType name="VEHICLE_CLASS">
<xs:sequence>
<xs:element type="xs:string"
name="CLASS_NAME"
minOccurs="0">
</xs:element>
<xs:element type="xs:int"
name="CLASS_ID">
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:element type="data:VEHICLE_CLASS"
name="vehicleClass"
minOccurs="0">
</xs:element>
---------------------------------------------------------------------
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
[jira] Commented: (AXIS-1566) wsdl2java generates classes that don't compile
Posted by "Davanum Srinivas (JIRA)" <ax...@ws.apache.org>.
[ http://issues.apache.org/jira/browse/AXIS-1566?page=comments#action_54612 ]
Davanum Srinivas commented on AXIS-1566:
----------------------------------------
Ias, Jongin,
Any ideas on how to fix this one?
-- dims
> wsdl2java generates classes that don't compile
> ----------------------------------------------
>
> Key: AXIS-1566
> URL: http://issues.apache.org/jira/browse/AXIS-1566
> Project: Axis
> Type: Bug
> Components: WSDL processing
> Versions: beta-2
> Environment: Windows XP, Java 141_05, Axis Beta 1.2 dated March 31, 2004
> Reporter: Ken Moore
> Attachments: Cars_model.wsdl
>
> Attempt to generate Java client side stubs and value classes for the attched WSDL. Compilation then results in errors such as the following:
> [javac] Compiling 66 source files to C:\sandbox\kmoore\WebToolbox\classes
> [javac] C:\sandbox\kmoore\WebToolbox\build\model\Cars\VEHICLE_CLASSArrayType.java:11: cannot resolve symbol
> [javac] symbol : class VEHICLE_CLASS_ElemType
> [javac] location: package Cars
> [javac] private data.Cars.VEHICLE_CLASS_ElemType[] VEHICLE_CLASS;
> The problem is that no VEHICLE_CLASS_ElemType is generated. VEHICLE_CLASS_Type is generated. If the generated source in VEHICLE_CLASSArrayType is modified to replace VEHICLE_CLASS_ElemType with VEHICLE_CLASS_Type, then the classes compile and can be used in web service access.
> VEHICLE_CLASS is found in the WSDL in several places, as it is an element on its own and a member of a complex type. Here are the references to VEHICLE_CLASS:
> <xs:element type="VEHICLE_CLASS"
> name="VEHICLE_CLASS">
> </xs:element>
> <xs:element type="VEHICLE_CLASS"
> name="vehicleClass"
> minOccurs="0"
> maxOccurs="unbounded">
> </xs:element>
> <xs:complexType name="VEHICLE_CLASS">
> <xs:sequence>
> <xs:element type="xs:string"
> name="CLASS_NAME"
> minOccurs="0">
> </xs:element>
> <xs:element type="xs:int"
> name="CLASS_ID">
> </xs:element>
> </xs:sequence>
> </xs:complexType>
> <xs:element type="data:VEHICLE_CLASS"
> name="vehicleClass"
> minOccurs="0">
> </xs:element>
--
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
[jira] Updated: (AXIS-1566) wsdl2java generates classes that don't compile
Posted by ax...@ws.apache.org.
The following issue has been updated:
Updater: Ken Moore (mailto:ken@jkmoore.net)
Date: Tue, 21 Sep 2004 2:11 PM
Changes:
Attachment changed to Cars_model.wsdl
---------------------------------------------------------------------
For a full history of the issue, see:
http://issues.apache.org/jira/browse/AXIS-1566?page=history
---------------------------------------------------------------------
View the issue:
http://issues.apache.org/jira/browse/AXIS-1566
Here is an overview of the issue:
---------------------------------------------------------------------
Key: AXIS-1566
Summary: wsdl2java generates classes that don't compile
Type: Bug
Status: Unassigned
Priority: Major
Project: Axis
Components:
WSDL processing
Versions:
beta-2
Assignee:
Reporter: Ken Moore
Created: Tue, 21 Sep 2004 2:09 PM
Updated: Tue, 21 Sep 2004 2:11 PM
Environment: Windows XP, Java 141_05, Axis Beta 1.2 dated March 31, 2004
Description:
Attempt to generate Java client side stubs and value classes for the attched WSDL. Compilation then results in errors such as the following:
[javac] Compiling 66 source files to C:\sandbox\kmoore\WebToolbox\classes
[javac] C:\sandbox\kmoore\WebToolbox\build\model\Cars\VEHICLE_CLASSArrayType.java:11: cannot resolve symbol
[javac] symbol : class VEHICLE_CLASS_ElemType
[javac] location: package Cars
[javac] private data.Cars.VEHICLE_CLASS_ElemType[] VEHICLE_CLASS;
The problem is that no VEHICLE_CLASS_ElemType is generated. VEHICLE_CLASS_Type is generated. If the generated source in VEHICLE_CLASSArrayType is modified to replace VEHICLE_CLASS_ElemType with VEHICLE_CLASS_Type, then the classes compile and can be used in web service access.
VEHICLE_CLASS is found in the WSDL in several places, as it is an element on its own and a member of a complex type. Here are the references to VEHICLE_CLASS:
<xs:element type="VEHICLE_CLASS"
name="VEHICLE_CLASS">
</xs:element>
<xs:element type="VEHICLE_CLASS"
name="vehicleClass"
minOccurs="0"
maxOccurs="unbounded">
</xs:element>
<xs:complexType name="VEHICLE_CLASS">
<xs:sequence>
<xs:element type="xs:string"
name="CLASS_NAME"
minOccurs="0">
</xs:element>
<xs:element type="xs:int"
name="CLASS_ID">
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:element type="data:VEHICLE_CLASS"
name="vehicleClass"
minOccurs="0">
</xs:element>
---------------------------------------------------------------------
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