31.6 Publishing and Consuming SOAP-Based Web Services
This section presents our first example of publishing (enabling for client access) and consuming (using) a web service. We begin with a SOAP-based web service.
31.6.1 Creating a Web Application Project and Adding a Web Service Class in NetBeans
When you create a web service in NetBeans, you focus on its logic and let the IDE and server handle its infrastructure. First you create a Web Application project. NetBeans uses this project type for web services that are invoked by other applications.
Creating a Web Application Project in NetBeans
To create a web application, perform the following steps:
-
Select File > New Project… to open the New Project dialog.
-
Select Java Web from the ...
Get Java How to Program (early objects), 9/e now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.