You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-user@axis.apache.org by 卢杨 <ly...@hotmail.com> on 2010/04/30 17:42:37 UTC

Problem with wsdl code generator

Dear Developers,

When I use Axis2_Codegen_Wizard_1.3.0 in eclipse, it can't work.

And I search in google a user had the same problem with me:
    Steve Cohen wrote:

        I ran the eclipse plugin wizard to generate Java from a WSDL
        and it failed with

        "An error occurred while completing process -
        java.lang.reflect.InvocationTargetException"

        upon pressing Finish.

        Platform is Ubuntu Linux 7.10
        Eclipse is version 3.3.2

        I noticed that the plugin code I had was not the most recent,
        so I removed this plugin from my eclipse plugins directory and
        downloaded the latest from the site, and placed it back in the
        plugins directory.

        Now the wizard fails immediately upon launch as follows:

        The selected wizard could not be started.

        Plug-in Axis2_Codegen_Wizard was unable to load class
        org.apache.axis2.tool.codegen.eclipse.CodeGenWizard

        Ironically, before I tried using this wizard I was making some
        progress with the command line tool.  I thought this would be
        easier.  Geez.

        Can someone explain what I need to make this plugin work?  Or
        would I be better off just using the command line tool.

I follow the way to fix that and it can't work. And now I am encountered the second problem and cannot get back to the first problem.
Any one can help me ?

Your sincerely,
Jason

Re: Problem with wsdl code generator

Posted by Nandika Jayawardana <ja...@gmail.com>.
You can download axis2 java binary and run the wsdl2java.bat file to
generate the client code. You can find an options reference from here.

http://ws.apache.org/axis2/tools/1_2/CodegenToolReference.html

<http://ws.apache.org/axis2/tools/1_2/CodegenToolReference.html>In case you
do not want to try command line and want a UI, you can download WSO2 WSAS
http://wso2.org/downloads/wsas which also contains Axis2 and provide a Web
UI  to code generate using the codegen tool.

Regards
Nandika



On Sat, May 1, 2010 at 9:56 AM, 卢杨 <ly...@hotmail.com> wrote:

>  Dear Developers,
>
> Yes but what I expect is to generate the java code in order to create a
> client from the WSDL file generated by Axis2c. Does the command line work?
>
> Yours sincerely,
> Jason
>
>  *From:* Nandika Jayawardana <ja...@gmail.com>
> *Sent:* Saturday, May 01, 2010 12:21 PM
> *To:* Apache AXIS C User List <c-...@axis.apache.org>
> *Subject:* Re: Problem with wsdl code generator
>
> Axis2_Codegen_Wizard supports only java version of the code gen tool. For C
> code generation just use the command line and the WSDL2C.bat .
>
> Regards
> Nandika
>
> On Fri, Apr 30, 2010 at 9:28 PM, Sam Carleton <sc...@gmail.com> wrote:
>
>> I have never gotten it to work in eclipse, either.  Run it from the
>> command line and you should be fine.
>>
>> 2010/4/30 卢杨 <ly...@hotmail.com>
>>
>>  Dear Developers,
>>>
>>> When I use Axis2_Codegen_Wizard_1.3.0 in eclipse, it can't work.
>>>
>>> And I search in google a user had the same problem with me:
>>>
>>
>>
>
>
> --
> http://nandikajayawardana.blogspot.com/
> WSO2 Inc: http://www.wso2.com
>



-- 
http://nandikajayawardana.blogspot.com/
WSO2 Inc: http://www.wso2.com

Re: Problem with wsdl code generator

Posted by 卢杨 <ly...@hotmail.com>.
Dear Developers,

Yes but what I expect is to generate the java code in order to create a client from the WSDL file generated by Axis2c. Does the command line work?

Yours sincerely,
Jason


From: Nandika Jayawardana 
Sent: Saturday, May 01, 2010 12:21 PM
To: Apache AXIS C User List 
Subject: Re: Problem with wsdl code generator


Axis2_Codegen_Wizard supports only java version of the code gen tool. For C code generation just use the command line and the WSDL2C.bat . 


Regards
Nandika


On Fri, Apr 30, 2010 at 9:28 PM, Sam Carleton <sc...@gmail.com> wrote:

  I have never gotten it to work in eclipse, either.  Run it from the command line and you should be fine.


  2010/4/30 卢杨 <ly...@hotmail.com> 


    Dear Developers,

    When I use Axis2_Codegen_Wizard_1.3.0 in eclipse, it can't work.

    And I search in google a user had the same problem with me:






-- 
http://nandikajayawardana.blogspot.com/
WSO2 Inc: http://www.wso2.com

Re: Problem with wsdl code generator

Posted by Nandika Jayawardana <ja...@gmail.com>.
Axis2_Codegen_Wizard supports only java version of the code gen tool. For C
code generation just use the command line and the WSDL2C.bat .

Regards
Nandika

On Fri, Apr 30, 2010 at 9:28 PM, Sam Carleton <sc...@gmail.com> wrote:

> I have never gotten it to work in eclipse, either.  Run it from the command
> line and you should be fine.
>
> 2010/4/30 卢杨 <ly...@hotmail.com>
>
>  Dear Developers,
>>
>> When I use Axis2_Codegen_Wizard_1.3.0 in eclipse, it can't work.
>>
>> And I search in google a user had the same problem with me:
>>
>
>


-- 
http://nandikajayawardana.blogspot.com/
WSO2 Inc: http://www.wso2.com

Re: Problem with wsdl code generator

Posted by Sam Carleton <sc...@gmail.com>.
I have never gotten it to work in eclipse, either.  Run it from the command
line and you should be fine.

2010/4/30 卢杨 <ly...@hotmail.com>

>  Dear Developers,
>
> When I use Axis2_Codegen_Wizard_1.3.0 in eclipse, it can't work.
>
> And I search in google a user had the same problem with me:
>