Java Reference
In-Depth Information
1.8 Create a Web Service Client
A WS client code is simple to write; however, the amount of code required behind the
scenes in order to ease the amount of coding on the client side can be substantial. Generated
code enables a client application to call WS operations as it would normally do with another
Java bean. This makes the programming of a client WS application a bit simpler. In the next
chapter, we will use SAAJ APIs to create a Java client code that calls the HelloWorld Web
Service.
The process of creating a Java Web Service client to call the HelloWorld Web Service
involves the following steps:
1. Create a java-ws-client project in Eclipse.
2. Generate WS client stub from a service endpoint ( http://localhost:9999/java-
ws/hello?WSDL ).
3.
Write a Java client class.
Search WWH ::




Custom Search