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 "Davanum Srinivas (JIRA)" <ax...@ws.apache.org> on 2004/10/25 17:43:44 UTC

[jira] Commented: (AXIS-1566) wsdl2java generates classes that don't compile

     [ 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