[ https://issues.apache.org/jira/browse/AXIS2-3896?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13416025#comment-13416025 ]
Sagara Gunathunga commented on AXIS2-3896: ------------------------------------------- Do you have any test case for this ? > Bug with naming of the schema files. Results in schema writer overwriting > schema files. > --------------------------------------------------------------------------------------- > > Key: AXIS2-3896 > URL: https://issues.apache.org/jira/browse/AXIS2-3896 > Project: Axis2 > Issue Type: Bug > Components: codegen > Affects Versions: 1.4 > Environment: Tomcat 5.5.9, Windows XP, Java 1.5 > Reporter: Rost Vashevnik > Assignee: Amila Chinthaka Suriarachchi > Attachments: SchemaWriter.java > > > I am using WSDL2Java in a way when it uses original WSDL. > My WSDL file has imported shemas, so WSDL2Java attempts to read them and then > write them to target location. > In the process org.apache.axis2.description.AxisService decides to rename > shema files and give them extensions xsd0, xsd1, xsd2,....etc (see > insertIntoNameTable() method of org.apache.axis2.description.AxisService > class). I understand that this is to prevent file name clashes when schema > locations are flattened in one directory. This is a good idea. > Unfortunately, during actual writing (see method writeSchema() in > org.apache.axis2.wsdl.codegen.writer.SchemaWriter class - the generated file > extensions are lost and overwritten with constant '.xsd' extension. > This causes problem for me as my schema files have same names (but originally > residing in different directories). I believe this is just a bug and have > fixed it on my local copy. > I am attaching modified SchemaWriter.java. Look for 'CHANGE BY METABOSS' > comment. It has origial code commented out and the change code inserted. > Thank you -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscr...@axis.apache.org For additional commands, e-mail: java-dev-h...@axis.apache.org