Java Reference
In-Depth Information
4.2.5 Hosting Web Services
Web Services need to be hosted by a server that provides some basic HTTP service endpoints.
Note that this type of server is rather simplistic in its implementation for the purpose of WS de-
monstration. A more industrial-strength application server, such as WebLogic, JBOSS, or We-
bSphere, is more appropriate for medium-sized to large business settings.
4.2.5.1 Server.java
This class implements a HTTP server to host multiple Web Services (e.g., HelloWorld,
EmployeeDocDataService
and
EmployeeRpcDataService).
Each
WS
is
uniquely
identified with a service endpoint.
HelloWorld Web Service: http://localhost:9999/java-ws/hello?WSDL
Employee Document Web Service: http://localhost:9999/doc/employees?wsdl
Employee RPC Web Service: http://localhost:9999/rpc/employees?wsdl
Search WWH ::




Custom Search