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)" <ji...@apache.org> on 2007/06/10 04:28:26 UTC

[jira] Commented: (AXIS2-1634) WSDL2Java throws exception

    [ https://issues.apache.org/jira/browse/AXIS2-1634?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12503143 ] 

Davanum Srinivas commented on AXIS2-1634:
-----------------------------------------

got rid of csharp option. there is a WSDL2Code now.

thanks,
dims

> WSDL2Java throws exception
> --------------------------
>
>                 Key: AXIS2-1634
>                 URL: https://issues.apache.org/jira/browse/AXIS2-1634
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: codegen
>    Affects Versions: 1.1
>         Environment: Axis2 1.1 RC2
>            Reporter: Thilo Frotscher
>            Assignee: 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.
-
You can reply to this email to add a comment to the issue online.


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