[ http://issues.apache.org/jira/browse/AXIS2-1609?page=comments#action_12456095 ] Craig S. Bosma commented on AXIS2-1609: ---------------------------------------
I think this remains an issue yet for namespaces that do not follow the 'http://example.com/some/path' convention. This is my wsdl2java command: wsdl2java -o .\gen -uri e:\SiebelAnalytics\Web\App\saw.wsdl -ns2p com.siebel.analytics.web/expression/v1=com.siebel.analytics.expression,com.siebel.analytics.web/soap/v3=com.siebel.analytics.soap With the following result: Retrieving schema wsdl:imported from 'Wsdl/Schemas/SAWServices.xsd', relative to 'file:/e:/SiebelAnalytics/Web/App/'. Retrieving schema at 'expression.xsd', relative to 'file:/e:/SiebelAnalytics/Web/App/Wsdl/Schemas/SAWServices.xsd'. Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException: org.apache.axis2.wsdl.codegen.CodeGenerationException: java.io.FileNotFoundException: .\gen\src\web\soap\v3\analytics\siebel\com\XmlViewServiceCallbackHandler.java (The system cannot find the path specified) at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:224) at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32) at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21) Caused by: org.apache.axis2.wsdl.codegen.CodeGenerationException: java.io.FileNotFoundException: .\gen\src\web\soap\v3\analytics\siebel\com\XmlViewServiceCallbackHandler.java (The system cannot find the path specified) at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.emitStub(AxisServiceBasedMultiLanguageEmitter.java:301) at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:213) ... 2 more Caused by: java.io.FileNotFoundException: .\gen\src\web\soap\v3\analytics\siebel\com\XmlViewServiceCallbackHandler.java (The system cannot find the path specified) at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream.<init>(FileOutputStream.java:179) at java.io.FileOutputStream.<init>(FileOutputStream.java:131) at org.apache.axis2.wsdl.codegen.writer.ClassWriter.createOutFile(ClassWriter.java:127) at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.writeClass(AxisServiceBasedMultiLanguageEmitter.java:1733) at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.writeCallBackHandlers(AxisServiceBasedMultiLanguageEmitter.java:682) at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.emitStub(AxisServiceBasedMultiLanguageEmitter.java:276) ... 3 more but if I specify a default package with -p, it works. However, I want to unpack the classes with -u, which fails in the same manner even with a default package specified. I should point out that WSDL and schemas are out of my hands, or I'd just *fix* them. > namespace to package (ns2p) code gen option does not work in Axis2 1.1 RC2 > -------------------------------------------------------------------------- > > Key: AXIS2-1609 > URL: http://issues.apache.org/jira/browse/AXIS2-1609 > Project: Apache Axis 2.0 (Axis2) > Issue Type: Bug > Components: codegen > Affects Versions: 1.1 > Environment: Win XP, JDK 1.5 > Reporter: Charitha Kankanamge > Priority: Critical > Attachments: FehlerWsdl2Java.zip, KeinFehlerWsdl2Java.zip, > MathsService.wsdl > > > ns2p code gen option does not work in Axis2 1.1 RC2. > I provided the following code gen option. > C:\Axis\axis-rc\axis2-1.1\bin>wsdl2java -uri "C:\Documents and > Settings\Charitha\workspace2\servicetest\temp2\MathsService.wsdl" -ns2p > http://test.com=my.new > -o "C:\Documents and > Settings\Charitha\workspace2\servicetest\temp2\packagetest" > The generated stub was not included in the given package (my.new). Instead, > it was included inside the original package (com.test) > The wsdl file is attached here with. -- 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]