Web services allow us to write functionality that can be accessed across a network in a language- and platform-independent way.
There are two different approaches that are frequently used to develop web services, the first approach is to use the Simple Object Access Protocol (SOAP), the second approach is to use the Representational State Transfer (REST) protocol. NetBeans supports creating web services using either approach. SOAP web services are covered in this chapter. RESTful web services are covered in the next chapter.
When using the SOAP protocol, web service operations are defined in an XML document called a Web Services Definition Language (WSDL) file. After creating the WSDL, implementation of web services is done in a proper programming language such as Java. The process of creating a WSDL is complex and error prone, fortunately, when working with Java EE, a WSDL can be automatically generated from a web service written in Java when this web service...