Before starting the development of the Web service, ensure that the following software programs are installed on the machine:
After you have downloaded the software from the specified Web sites, you can install them on your computer. The installation process is discussed in the following sections.
Installing Tomcat
Because you have already used Tomcat in the Java project, we will not discuss the installation of Tomcat in detail here. The installation of Tomcat is simple and straightforward. To install and run Tomcat, perform the following steps:
Installing the WSTK
Installing the WSTK simply requires you to run the InstallShield Setup Wizard. To run it, perform the following steps:
The First Page of the InstallShield Setup Wizard
Set the JAVA_HOME Path
Specifying the Location for Installing the Web Services ToolKit
Select the Installation Type
The End of Installation
Configuring the WSTK
The WSTK is designed to run as a plug-in within any standard Java application server that supports Java Servlet and JSP specifications. Before you use the WSTK, you need to configure your application server to use the toolkit. To do this, IBM provides you with a utility called the Web Services ToolKit Configuration Tool. This utility ships along with the WSTK.
The Web Services ToolKit Configuration Tool automates the configuration process for building services in the WebSphere, WebSphere MicroEdition, or Jakarta-Tomcat 4.0 environments. In addition, the tool allows you to specify the default UDDI registry that the WSTK will use to publish and locate the Web service.
To run the Web Services ToolKit Configuration Tool, perform the following steps:
Running the toolkit presents a wizard-style GUI interface, as shown in Figure.
Running the Web Services ToolKit Configuration Tool
As you can see, the wizard prompts you to specify the Web server that you need to use with the WSTK.
Note?/td>In this case, you would be using a Tomcat server. Therefore, specify the port number as 8080, the host name as localhost, and the location of the folder where you have installed Tomcat.
The Configure Services Tab
Configuring WSIL
Note?/td>WSIL is a new language that helps you discover Web services. You can use WSIL as an alternative to UDDI.
Selecting the UDDI Registry
Note?/td>The registry that you choose will be selected automatically each time you perform an UDDI-related operation within the WSTK. However, to select any other UDDI, you need to explicitly specify in the toolkit. To change the settings of the UDDI directory in the Configuration tool, use the following command:
%WSTK_HOME%libwstkproperties.xml fileThe WSTK is now ready to use.
Installing the Axis SOAP Toolkit
You use the toolkits provided by various vendors for various products to reduce the time required to create the application. Similarly, to reduce the time taken to create the applications that involve SOAP messages, several toolkits, such as Microsoft SOAP Toolkit, the Apache SOAP toolkit, and the PocketSOAP toolkit, are available. Without the use of such toolkits, coding for SOAP messages would be tedious.
Apache SOAP toolkit, also called the Axis SOAP toolkit, was originally based on an IBM implementation. Apache rearchitectured the SOAP toolkit to allow easier usage and configuration. As a result, a new toolkit called Axis was created.
Features of the Axis SOAP Toolkit
The latest version of the Apache SOAP toolkit has the following features:
You can use the wsdl2java tool to create stubs and skeletons from WSDL documents and proxies for Java classes. You can further use these stubs and skeletons to easily and conveniently code for the client applications that access the corresponding Web service.
We will now continue the discussion on installing the Axis SOAP toolkit. To install the toolkit, perform the following steps:
Tip?/td>Ensure that the Tomcat server is up and running.
As discussed, you will use the Axis SOAP toolkit to create the Credit Card Web service. This Web service uses the Luhn discussed in the following section.
|
|
XML Related Interview Questions |
|
---|---|
Soap Tool Interview Questions | HTML Interview Questions |
PHP Interview Questions | ASP.NET Interview Questions |
PHP5 Interview Questions | Java Interview Questions |
CSS Interview Questions | XSLT Interview Questions |
Java XML Interview Questions | XMLHttpRequest (XHR) Interview Questions |
ebXML Interview Questions | XML DOM Interview Questions |
XML-RPC Interview Questions | XSD Interview Questions |
Soap Web Services Interview Questions | XSL Interview Questions |
Xml Publisher Interview Questions |
All rights reserved © 2020 Wisdom IT Services India Pvt. Ltd
Wisdomjobs.com is one of the best job search sites in India.