I need to add a few Web Services into my simple Java Application project in netbeans. Should I convert my project into “web” or “javaee”?
If yes, how?
if no, then how can I config a web service?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can expose web services via a Web Application or EJB 3.0. Also, the application should be deployed in a Web Application Server like Tomcat or Glassfish.
To answer to your question, yes, you should take one of these steps, I’ll recommend starting with the basics by developing the Web Service in a Web Application. To start developing your web services in NetBeans, follow Getting started with JAX-WS Web Services tutorial about creating a simple Web Service with SOAP.
Also, I lend you a sample of an application that provides and consume web services here