Java Reference
In-Depth Information
Notice that we can develop web service clients for web services we didn't
develop ourselves. In order to do this we simply select the Local File
radio button to use a WSDL file in our hard drive, or the WSDL URL
radio button to use a WSDL that is published online.
At this point, a new node labeled Web Service References is added to our project.
Expanding this node all the way reveals the operations we defined in our web
services project.
Typically, writing a web service client involves some amount of "boilerplate" code.
However, when using NetBeans, we can simply drag the web service operation we
wish to invoke to our code. This results in generating all necessary boilerplate code,
and leaving us to simply specify which parameters we want to send to the web
service. Dragging the inchesToCentimeters operation from the Projects window to
the main method of our web services client project results in the following code
being generated.
 
Search WWH ::




Custom Search