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.
Create new Web Service component
Reverse engineer WSDL to create Web Service component
Browse UDDI to search WSDL
Generate WSDL from Web Service component definition
Generate server side Web Services code for Java (AXIS, JAXM, JAX-RPC, Web Services for J2EE) or .NET (C# and VB .NET)
Generate client proxy for Java or .NET
Reverse engineer for Java and .NET
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 (
) when you create the WSDL environment variables.