Application Server Solutions for Microsoft IIS and ASP.NET
       solutions   products   partners   company   support   downloads         store
ServletExec Self-Help: FAQ
Back to Search >  Back to Search Results

Faq ID 162
Product ServletExec
Category Web Services, XML
Question Don't you have any simple steps I can follow to learn how to expose a Web Service running in ServletExec ?
Answer Yes.

Several examples of running a web service in ServletExec and using a client to consume the resource have been created for you to study. They can be downloaded from:

Another way to learn how to do this is:
  1. Install JWSDP 1.0 (Java Web Services Developer Pack)
  2. Install the JWSDP Tutorial
  3. Build the HelloWorld example in the tutorial chapter titled "Java API for XML-based RPC". This creates a web app without a lib directory.
  4. add a lib directory to the Web app's WEB-INF folder, and copy the following JWSDP JAR files that are needed by the listed components into it.
    (NOTE: this info is from the JWSDP 1.0 Release Notes):
    JAX-RPC: jaxrpc-api.jar, jaxrpc-ri.jar
    JAXP: jaxp-api.jar, dom.jar, sax.jar, xalan.jar, xercesImpl.jar, xsltc.jar
    SAAJ: saaj-api.jar, saaj-ri.jar, activation.jar, commons-logging.jar, dom4j.jar, mail.jar

    (the above JARs may be found in the \common\lib and \common\endorsed subfolders of the JWSDP 1.0 installation)
  5. Deploy the modified HelloWorld web app on ServletExec, and make sure that no errors occurred during the deployment by checking ServletExec.log for error messages (the JAXRPCEndpoint servlet is configured to load at init time)
  6. Before building the client, be sure to modify the file so that the endpoint property points to the proper hostname and port number for ServletExec (instead of pointing to Tomcat).

Note that JWSDP 1.0 requires JDK 1.3.1 or greater so ServletExec must be run with JDK 1.3.1 or greater.

company media information terms of use privacy policy contact us