Apache-SOAP Version 2.1: Installing the Server-Side
Under IBM WebSphere Advanced Edition
These instructions assume:
- WinNT 4.0 (similar for other platforms)
- WebSphere Advanced Edition 3.5 with fix pack 2
IMPORTANT: WebSphere comes with an XML parser
(WebSphere\AppServer\lib\xml4j.jar)
which uses DOM level 1 interfaces. Even if you put the Xerces 1.1.2's (or later)
xerces.jar in your classpath, the wrong interfaces are found by
any Java code running in WebSphere because
WebSphere puts the user's classpath at the end. So,
you must edit WebSphere\AppServer\bin\admin.config file and
put xerces.jar at the BEGINNING of the
com.ibm.ejs.sm.adminserver.classpath=
variable
To set up a SOAP server:
From the WebSphere menu off of the NT Start menu:
- Launch "Start Admin Server" and wait until it completes.
- Launch "Administrator's Console".
From the Administrator's Console:
- Console/Tasks/Create Application Server
- Select Web Applications: You do not need Enterprise Beans for SOAP. Next
- Application Server Properties: set the
Application Server Name to "SOAP" (or another name of your choice). Next
- Application Server Start Option: "Do not start the server automatically after creating it".
Next
- Node Selection: select your node. Next
- Select Virtual Host: select "default_host". Next
- Servlet Engine Properties: take the defaults. Next
- Web Application Properties: Set the Web Application Web Path to "/soap".
You can use any web path you like, including the WebSphere default of
"/webapp/SoapWebApp", but using "/soap" keeps the URLs simple and is used
in these instructions. Next
- Specify System Servlets: Enable JSP 1.0 or 1.1.
- Finish to create the SOAP Application Server.
In the tree view, open the SoapWebApp, and select the Advanced tab:
- Change Document Root to "C:\install-dir\soap-2_0\webapps\soap".
- Set the classpath to
C:\XML\apache\soap-2_0\lib\soap.jar
C:\XML\apache\soap-2_0
C:\tools\BSF\lib\bsf.jar
C:\tools\BSF\lib\bsfengines.jar
C:\Tools\Rhino\js.jar
C:\Tools\Rhino\jstools.jar
your SOAP server classes, if any
Console/Tasks/Add a Servlet
- Servlet: "No". Do not start the server automatically after creating it. Next
- Servlet: Select the "SOAPWebApp" web app to contain the servlet. Next
- Servlet: Select "create user-defined servlet". Next
- Servlet:
- Set the servlet name to "rpcrouter"
- Set the servlet class name to "org.apache.soap.server.http.RPCRouterServlet".
- Add "default_host/soap/servlet/rpcrouter" to the servlet web path list.
Note that you only need to type "servlet/rpcrouter" on the dialog that pops up.
Next
- Servlet: Take the defaults.
- Finish
Start the "SOAP" Server
You can list and deploy SOAP services by pointing a browser to
http://hostname:port/soap/admin
Alternatively, you can deploy services by setting up your classpath and using
java org.apache.soap.server.ServiceManagerClient
http://hostname:port/soap/servlet/rpcrouter
deploy <DeploymentDescriptor.xml>
See the User's Guide for details on the aministration tool.
The SOAP end-point for invoking services on this server is:
http://hostname:port/soap/servlet/rpcrouter
Happy SOAP-ing!