[
https://issues.apache.org/jira/browse/AXIS2-1634?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Deepal Jayasinghe reassigned AXIS2-1634:
----------------------------------------
Assignee: Amila Chinthaka Suriarachchi
> WSDL2Java throws exception
> --------------------------
>
> Key: AXIS2-1634
> URL: https://issues.apache.org/jira/browse/AXIS2-1634
> Project: Apache Axis 2.0 (Axis2)
> Issue Type: Bug
> Components: codegen
> Affects Versions: 1.1
> Environment: Axis2 1.1 RC2
> Reporter: Thilo Frotscher
> Assigned To: Amila Chinthaka Suriarachchi
> Priority: Minor
>
> 1) Usage message printed by WSDL2Java says that "csharp" is a valid option
> for the language parameter. That's wrong, it must be "c-sharp"
> 2) When using "-l c-sharp" code is generated, but I get the following
> exception:
> Exception in thread "main"
> org.apache.axis2.wsdl.codegen.CodeGenerationException:
> org.apache.axis2.wsdl.codegen.CodeGenerationException: template for
> this writer is not found!
> 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: template
> for this writer is not found!
> at
> org.apache.axis2.wsdl.codegen.writer.ClassWriter.loadTemplate(ClassWriter.java:80)
> at
> org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.writeClass(AxisServiceBasedMultiLanguageEmitter.java:1715)
> at
> org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.writeAntBuild(AxisServiceBasedMultiLanguageEmitter.java:319)
> at
> org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.emitStub(AxisServiceBasedMultiLanguageEmitter.java:295)
> at
> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:213)
> I know code generation for C# is experimental... but perhaps it's easy to
> fix.
> 3) General comment: It's kind of weird to run WSDL2Java to generate code for
> C or C#. The batch script should be renamed to WSDL2Code.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://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]