Creating a web service from an existing
Normally, creating SOAP web services requires the creation of a Web Services
Definition ( WSDL ) file. The process of creating a WSDL is complex and error
prone, but thankfully Java EE frees us from having to create a WSDL file by hand,
since it gets generated automatically whenever we deploy a web service into our
However, sometimes we have a WSDL file available, and we need to implement its
operations in Java code. For these cases, NetBeans provides a wizard that creates a
Java class with method stubs from an existing WSDL.
In order to do so, we need to create a new file, select the Web Services category, and
Web Service from WSDL as the file type.