Java Reference
In-Depth Information
4.6.2.1 EmployeesDocClient.java
This client code uses the generated client stub for making WS calls to the remote server.
One important class is the QName, where we create a qualified name that contains the
targetNamespace and the name attributes of the definitions element of the WSDL. The next
important class is the URL where we create a service endpoint as the location attribute
of the soap:address element of the WSDL. From these two classes, we can then create a
service which we map onto the set of operations that the service provides. Mapping the port
onto the EmployeeDocData is specified as a type attribute of the binding element within
the WSDL. Once we get the port, we can call the operations as we did with the local meth-
od invocation in Java.
Listing 4-22. EmployeesDocClient.java Class
Search WWH ::




Custom Search