axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Amila Chinthaka Suriarachchi (JIRA)" <j...@apache.org>
Subject [jira] Updated: (AXIS2-1530) Error in WSDL2Java generating classes for the OTA specification
Date Mon, 30 Oct 2006 06:16:17 GMT
     [ http://issues.apache.org/jira/browse/AXIS2-1530?page=all ]

Amila Chinthaka Suriarachchi updated AXIS2-1530:
------------------------------------------------

    Attachment: SchemaCompiler.java-patch-301006.txt

the problem was with this statment,

XmlSchemaType type=  parentSchema.getTypeByName(restriction.getBaseTypeName());

there it try to get the XmlSchemaType from only the parent schema. but there is a possibility
to exists that in an included schema as well (actually this the reason in this case). There
is a method called getType for correct retrival.
                XmlSchemaType type = getType(parentSchema, restriction.getBaseTypeName());

> Error in WSDL2Java generating classes for the OTA specification
> ---------------------------------------------------------------
>
>                 Key: AXIS2-1530
>                 URL: http://issues.apache.org/jira/browse/AXIS2-1530
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: wsdl
>    Affects Versions: nightly
>         Environment: axis2 1.1 snapshot   October 27 2006
> jsdk 1.5.0_06-b05
> openSuse 10.1
>            Reporter: Jose Manuel Valladares Pernas
>         Assigned To: Davanum Srinivas
>         Attachments: files.ZIP, SchemaCompiler.java-patch-301006.txt
>
>
> Generating the java classes from an WSDL that uses the schema files from the OTA specification
the script WSDL2Java fails.
> I am using the adb binding (actually, it fails in all bindings that I tried).
> I am using axis 2 1.1 snapshot from today (October 27th) and jsdk 1.5.0.
> The messages that WSDL2Java generates are:
> Retrieving schema at 'xsd/OTA_CancelRQ.xsd', relative to 'file:/home/jmanuel/src/MiraiOTA/axis_2/OTA_Cancel/'.
> Retrieving schema at 'OTA_CommonTypes.xsd', relative to 'file:/home/jmanuel/src/MiraiOTA/axis_2/OTA_Cancel/xsd/OTA_CancelRQ.xsd'.
> Retrieving schema at 'OTA_SimpleTypes.xsd', relative to 'file:/home/jmanuel/src/MiraiOTA/axis_2/OTA_Cancel/xsd/OTA_CommonTypes.xsd'.
> Retrieving schema at 'OTA_AirCommonTypes.xsd', relative to 'file:/home/jmanuel/src/MiraiOTA/axis_2/OTA_Cancel/xsd/OTA_CancelRQ.xsd'.
> Retrieving schema at 'OTA_SimpleTypes.xsd', relative to 'file:/home/jmanuel/src/MiraiOTA/axis_2/OTA_Cancel/xsd/OTA_AirCommonTypes.xsd'.
> Retrieving schema at 'OTA_CommonTypes.xsd', relative to 'file:/home/jmanuel/src/MiraiOTA/axis_2/OTA_Cancel/xsd/OTA_AirCommonTypes.xsd'.
> Retrieving schema at 'OTA_SimpleTypes.xsd', relative to 'file:/home/jmanuel/src/MiraiOTA/axis_2/OTA_Cancel/xsd/OTA_CancelRQ.xsd'.
> Retrieving schema at 'xsd/OTA_CancelRS.xsd', relative to 'file:/home/jmanuel/src/MiraiOTA/axis_2/OTA_Cancel/'.
> Retrieving schema at 'OTA_CommonTypes.xsd', relative to 'file:/home/jmanuel/src/MiraiOTA/axis_2/OTA_Cancel/xsd/OTA_CancelRS.xsd'.
> Retrieving schema at 'OTA_AirCommonTypes.xsd', relative to 'file:/home/jmanuel/src/MiraiOTA/axis_2/OTA_Cancel/xsd/OTA_CancelRS.xsd'.
> Retrieving schema at 'OTA_SimpleTypes.xsd', relative to 'file:/home/jmanuel/src/MiraiOTA/axis_2/OTA_Cancel/xsd/OTA_CancelRS.xsd'.
> Oct 27, 2006 2:31:42 PM org.apache.axis2.schema.SchemaCompiler findClassName
> WARNING: Type {http://www.opentravel.org/OTA/2003/05}StringLength0to128 missing!
> Oct 27, 2006 2:31:42 PM org.apache.axis2.schema.SchemaCompiler findClassName
> WARNING: Type {http://www.opentravel.org/OTA/2003/05}StringLength1to128 missing!
> Oct 27, 2006 2:31:42 PM org.apache.axis2.schema.SchemaCompiler findClassName
> WARNING: Type {http://www.opentravel.org/OTA/2003/05}StreetNmbrType missing!
> Oct 27, 2006 2:31:42 PM org.apache.axis2.schema.SchemaCompiler findClassName
> WARNING: Type {http://www.opentravel.org/OTA/2003/05}LocationType missing!
> Oct 27, 2006 2:31:42 PM org.apache.axis2.schema.SchemaCompiler findClassName
> WARNING: Type {http://www.opentravel.org/OTA/2003/05}LocationType missing!
> Oct 27, 2006 2:31:42 PM org.apache.axis2.schema.SchemaCompiler findClassName
> WARNING: Type {http://www.opentravel.org/OTA/2003/05}FreeTextType missing!
> I am providing the WSDL and schema files I used.

-- 
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
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


Mime
View raw message