Web Services

A Web service is a service offered via the web. The principle on which a Web service works is the following: a business application sends a request to a service at a given URL address. The request can use the SOAP protocol over HTTP. The service receives the request, processes it, and returns a response. An example that is most commonly used for a Web service is a stock quote service in which the request asks for the price of a specific stock and the response gives the stock price.

In an OOM, you design a Web service as a component (EJB, servlet, or standard component) that includes a Web service implementation class.

When you work with Web services in an OOM, you use the class, component and deployment diagrams, which allow you to:

To work with Web services, you need a Java, C# or Visual Basic .NET compiler.

For Java, you also need a WSDL-to-Java and a Java-to-WSDL tool to generate Java proxy code and JAX-RPC compliant server side code. The WSDL-to-Java and Java-to-WSDL tools are used by the WSDL for Java extension file'. For example, the WSDP (Web Service Developer Pack) provides a XRPCC tool, Apache AXIS provides a wsdl2java and a java2wsdl tool (which can be downloaded from the Sun Java Development Site: http://java.sun.com/index.jsp). Apache AXIS can be downloaded from: http://ws.apache.org/axis.

To generate client proxy code for .NET, you will need to use the WSDL.exe included in Visual Studio .NET and declare the path to the WSDL.exe in the General Options dialog box (Tools > General Options) when you create the WSDL environment variables.