Skip to main content link. Accesskey S
  • Anonymous
  • Log on
  • Help
  • IBM logo
  • Lotus Expeditor wiki
  • All Wikis
  • Home
  • Community Articles
  • Product Documentation
  • Learning Center


Search

Advanced Search

Categories

Tag Cloud

  • 6.2.1
  • 6.2.2
  • 6.2.3
  • access services
  • accounts
  • administer
  • application
  • applications
  • broker
  • client
  • client for desktop
  • client management
  • cluster
  • collecting data
  • configuration
  • configure
  • data integrity check tools
  • database
  • db2
  • db2e
  • deleting log entries automatically
  • demo
  • demonstration
  • desktop overview
  • develop
  • device
  • device client
  • diagnosis of problems. See troubleshooting
  • diagnostic data
  • diagnostic tool
  • documentation
  • download
  • environment variables
  • error messages
  • expeditor
  • expeditor server
  • expeditor toolkit
  • files
  • fix pack
  • gettingstarted
  • Help
  • how-to
  • IBM Support
  • install
  • installation
  • integration
  • integrator
  • interaction services
  • Interrogation Windows Tab
  • introduce
  • introduction
  • log files
  • messaging
  • micro
  • mobile databases
  • mobile databases
  • mobile devices
  • mqe
  • nci
  • notes
  • OpenSpan
  • OpenSpan Scripting Container
  • OpenSpan Windows Container
  • overview
  • platform
  • portlet
  • prerequisites
  • presentation
  • problems with synchronization. See troubleshooting.
  • purging log entries automatically
  • Release Notes
  • replication
  • resources on the Web
  • rich client application
  • samples
  • scripts
  • security
  • server
  • software
  • software prerequisites
  • support
  • support troubleshooting
  • Sync Client
  • Sync Server
  • synchronization
  • synchronization problems
  • tool
  • toolkit
  • tools
  • trace files
  • trace level
  • troubleshoot
  • troubleshooting
  • tutorial
  • use
  • was
  • web services
  • What's New
  • xcm
  • xpdt
InformationInformation
You are currently viewing machine translated content. IBM translation might be available. Click IBM Translated Product Documentation to see what is available.X


Home > Expeditor Client for Desktop > Sample: Creating a JAX-WS client for Lotus Expeditor
Rate this article 1 starRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars

Sample: Creating a JAX-WS client for Lotus Expeditor 

expanded Abstract
collapsed Abstract
While Lotus Expeditor does not directly provide support for JAX-WS, the Java 1.6 runtime provides the necessary support to use JAX-WS clients on the Lotus Expeditor platform.
ShowTable of Contents
HideTable of Contents
  • 1 Overview
  • 2 Create the JAX-WS web service
  • 3 Create the JAX-WS client
  • 4 Deploy client code to an Expeditor client

Overview


To create a JAX-WS client, the following steps can be completed:
    1. Create the JAX-WS web service.
    2. Create the JAX-WS client.
    3. Deploy client code to an Expeditor client.
Download Source Code
 

Create the JAX-WS web service


Using Rational Application Developer (RAD), create a web service that will simply respond with date information to the caller.

Create a class file with the following contents.
package com.ibm.rcp.support.ws.remote;

import java.util.Calendar;

public class RemoteSystem {
    
    public String getSystemTime(){
        return Calendar.getInstance().getTime().toString();
    }
}

 
To generate a web service on the above bean, simply:
  1. Right mouse click the class file in the package navigator.
  2. Select Web Services -> Create Web Service.
  3. Select the "IBM WebSphere JAX-WS" web service runtime.
  4. Select the corresponding WebSphere Application server runtime.
  5. Complete the wizard using default values.
  6. Export the EAR project as an EAR.
  7. Install the enterprise application EAR in the WebSphere Application Server.

You should now be able to validate that a Web Service can be found at the following URL:

http://<your_was_server>:<port>/com.ibm.rcp.support.ws.remote/services/RemoteSystem

Create the JAX-WS client


Again in RAD, create the client code by completing:
  1. Create a Client Services Project.
  2. Locate the WSDL file within the Web Service project; usually in WEB-INF/wsdl.
  3. Copy the WSDL file into the Client Services project.
  4. Update the WSDL files, "wsdlsoap:address location" to reference your WebSphere server.
  5. Right mouse click the WSDL file and select Generate Client.
  6. Select the JAX-WS web service runtime.
  7. Select the WebSphere Application Server v7.0 server.
  8. Complete the wizard using default values.
 
Note that even though you selected the WebSphere runtime, deploying to Lotus Expeditor is possible.


 

Deploy client code to an Expeditor client


Given we have a simple skeleton, you will likely need to do additional development.  When importing the project into Eclipse, you will notice an error in the project. 



This is due to a RAD variable.  Simply remove the WAS_V7JAXWS_WEBSERVICES_THINCLIENT variable.



If you intend on using the variable and corresponding library, ensure that the JAR is either deployed to Expeditor as a plugin or contained within the JAX-WS Client Services plugin.

Next update the Activator class to test the plugin.

public void start(BundleContext context) throws Exception {
    super.start(context);
    plugin = this;
    
    RemoteSystemProxy proxy = new RemoteSystemProxy();
    System.out.println(proxy.getSystemTime());
}

expanded Article information
collapsed Article information
Category:
Expeditor Client for Desktop
Tags:
samples, web services

This Version: Version 24 May 12, 2011 2:55:19 PM by Van Staub  IBMer

expanded Attachments (0)
collapsed Attachments (0)

 


expanded Versions (24)
collapsed Versions (24)
Version Comparison     
Version Date Changed by               Summary of changes
This version (24) May 12, 2011 2:55:19 PM Van Staub  
23 Oct 5, 2010 11:19:13 AM Van Staub  
22 Oct 5, 2010 9:02:23 AM Van Staub  
21 Sep 15, 2010 1:37:20 PM Van Staub  
20 Sep 8, 2010 12:58:33 PM Van Staub  
18 Sep 3, 2010 4:22:32 PM Van Staub  
17 Sep 3, 2010 4:21:48 PM Van Staub  
16 Sep 3, 2010 4:21:30 PM Van Staub  
15 Sep 3, 2010 4:17:02 PM Van Staub  
14 Sep 3, 2010 4:16:35 PM Van Staub  
13 Sep 3, 2010 4:16:07 PM Van Staub  
12 Sep 3, 2010 4:05:55 PM Van Staub  
12 Sep 3, 2010 4:05:55 PM Van Staub  
11 Sep 2, 2010 8:56:52 PM Van Staub  
10 Sep 2, 2010 5:18:00 PM Van Staub  
9 Sep 2, 2010 4:52:01 PM Van Staub  
8 Sep 2, 2010 4:51:25 PM Van Staub  
7 Sep 2, 2010 4:51:00 PM Van Staub  
6 Sep 2, 2010 4:50:34 PM Van Staub  
5 Sep 2, 2010 4:48:55 PM Van Staub  
4 Sep 2, 2010 4:48:20 PM Van Staub  
3 Sep 2, 2010 4:47:16 PM Van Staub  
2 Sep 2, 2010 4:43:24 PM Van Staub  
1 Sep 2, 2010 4:35:35 PM Van Staub  
expanded Comments (0)
collapsed Comments (0)
Copy and paste this wiki markup to link to this article from another article in this wiki.
Go ElsewhereStay ConnectedSubscribe to RSSHelpAbout
  • All Lotus and WebSphere Portal wikis
  • IBM developerWorks
  • IBM Software support
  • IBM Social Business User Experience Blog
  • IBMSocialBizUX on Twitter
  • IBMSocialBizUX on Facebook
  • Lotus product forums
  • IBM Social Business UX blog
  • IBM Collaboration Solutions
  • Recently added feedRecently added
  • Recently edited feedRecently edited
  • Recently added comments feedRecently Added Comments
  • Wiki Help
  • Forgot user name/password
  • Wiki design feedback
  • Content feedback
  • About the wiki
  • About IBM
  • Privacy
  • Contact IBM
  • IBM Terms of use
  • Wiki terms of use