Webservice from WSDL using Eclipse

I have a WSDL file and I would like to create a web service using Java ("First Contract Approach"). I used the WSImport-Tool from JAX-WS (Java version 1.6.0_07) on the command line to create Java stubs. This works fine, and I got the following Java files:

Add.java AddResponse.java ObjectFactory.java package-info.java Test.java TestPortType.java 

But how can I continue here?

I am using Eclipse. There I could create a new "Dynamic Web Project" with Target Runtime = "Tomcat 7.0". In the configuration, do I need to select "Axis2"? (Tomcat 7 and Axis2 are already configured locally).

I was lost at this moment and do not know how to continue.

Is it easier to create a web service using Axis2 or do you recommend using JAX-WS? Or is there an even better option? How and where can I add my WSDL file so that it is deployed in Tomcat 7?

Thanks for your contribution to this and best wishes, Peter

+4
source share
1 answer

I found a tutorial that works very well for my question: http://www.eclipse.org/webtools/community/tutorials/TopDownAxis2WebService/td_tutorial.html

Regards, Peter

+2
source

Source: https://habr.com/ru/post/1500535/


All Articles