Java Reference
In-Depth Information
Creating a Web Service from an Existing
WSDL
Normally, creating SOAP web services requires the creation of a 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 application server.
NetBeans can help with the creation of WSDL files, see
http://www.netbeans.org/kb/60/websvc/wsdl-guide.html
for more information.
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 right-click on a Web Application project, then select
New |Other| Web Service from WSDL . We then need to enter a name, package,
and existing WSDL for our web service.
 
Search WWH ::




Custom Search