Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [wtp-dev] Axis2 wsdl file generation problem

Saminda thank you fro your response.  The steps I took to generate the java code from the wsdl is as follows:

1. I go to eclipse > prefereneces > web services > axis2 preferences  and I set the axis2 runtime.
2. Next I got to Server and Runtime in the same section and specify to use axis2 ( i skipped this step before accidentally)
3. I create a dynamic web project.
4. I go to project properties > project facets and check the axis2 check box.
5. i create a wsdl folder and drop my wsdl inside of it.  
6. I right click the wsdl file and go to New > other > Web Service > Web Service
7. The web service generation wizard pops up and I click past the default first screen.
8. The next screen is the Axis2 web service skeleton java been configuration there are option for namespace to package, databinding port name.  I click next and get the error:

Exception occurred during code generation for the WSDL  : org.apache.axis2.AxisFault: Part 'fault' of fault message '{http://com.somecompany.wsdl}SomeException' must be defined with 'element=QName' and not 'type=QName'

When I have previously generated the wsdl from the wsdl2java script provided by axis2 I get this error if I don't pass in the arguments: -ss -sd -p

Is there a way to pass in these arguments to eclipse or do some configuration during setup to emulate these switches?

Thanks a million!

On Jan 8, 2009, at 9:48 PM, Saminda Wijeratne wrote:

Can you explain exactly how you tried to generate the java code from the
wsdl? The tutorial in explains
how to do it. Adding the axis2 facets on creating the dynamic project
does not necessarily create axis2 stubs for a wsdl when requested to
create java code from a wsdl.
One thing to note is that the the stub generation in axis2 has some
optional parameters where eclipse axis2 config page does not present to
the user at current version. So the java code will be generated
according to default values of those parameters.


Joseph C. Estes, Jr. wrote:
I'm attempting to create an axis2 web service from a wsdl file.

I have created a Dynamic Web Project in eclipse 3.4.1.  I have enabled
Axis2 in the project facets under project properties.  All the
relevant Axis2 directories and files build successfully in my
project.  I right click on my wsdl file to generate the java class
files and all processes succeed.  My problem occurs in that different
files are generated than when I use axis2's wsdl2java shell script.  A
server-config.wsdd file is generated and not a services.xml.  This
leads me to believe that axis1 is actually generating these files and
not axis2. Has anyone had this problem?  Is there anything I can do to
take axis1 out of the picture all together and have a pure axis2 web

Thanks a million!
wtp-dev mailing list

wtp-dev mailing list

Back to the top