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: Using Accounts with Web Services
Rate this article 1 starRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars

Sample: Using Accounts with Web Services 

expanded Abstract
collapsed Abstract
The accounts framework provides name, password credentials to various back-end servers. If required, Axis web services can be used in conjunction with the accounts framework to provide WS security data to the application server.
ShowTable of Contents
HideTable of Contents
  • 1 Overview
  • 2 Web Service
  • 3 Creating the Axis Web Service Client
  • 4 Assigning the Account
  • 5 Using the Account

Overview


The accounts framework provides name, password credentials to various back-end servers. If required, Axis web services can be used in conjunction with the accounts framework to provide WS security data to the application server.

Web Service


The details of the web service are covered in another sample. The web service simply returns the time from the remote server.

Creating the Axis Web Service Client


Creating the client is very straight-forward. Using the WSDL from the web service:
  1. Create a client services project to contain the WSDL file.
  2. Select the WSDL file in the project explorer.
  3. Right mouse-click -> Web Services -> Generate Client.
  4. Select the Apache Axis for Client Services type and remaining default options.



Assigning the Account


The wizard will update the plugin.xml to enable account integration. The plugin XML appears as the following.

<extension
         point="com.ibm.pvc.jndi.provider.java.binding">
      <binding
            jndi-name="com.ibm.rcp.support.ws.remote.RemoteSystem"
            objectFactory-id="com.ibm.rcp.ws.objectfactory.WSObjectFactory">
      </binding>
   </extension>
   <extension
         point="com.ibm.rcp.ws.objectfactory.WSfactoryobject">
      <WSobject
            account-key="Axis Sample"
            class="com.ibm.rcp.support.ws.remote.RemoteSystem"
            jndi-name="com.ibm.rcp.support.ws.remote.RemoteSystem">
      </WSobject>
   </extension>


Ensure the account-key value reflects an existing account. In the example, the account references a WebSphere Application Server v6.1 using LDAP security.



Using the Account


When the web service client executes the following occurs.
  1. The Axis Sample account is retrieved by the Expeditor platform.
  2. An authentication request is made to the authentication URL in the account.
  3. A WS security header is constructed to contain the LTPA token obtained from step 2.
  4. The header and SOAP envelop are posted to the web service address obtained from the web service client code.

To ensure the platform creates an authenticated request using the web service, you must obtain the client code through JNDI.

Hashtable env = new Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY,
				"com.ibm.pvc.jndi.provider.java.InitialContextFactory");

InitialContext ic = new InitialContext(env);

RemoteSystem rs = (RemoteSystem) ic.lookup("com.ibm.rcp.support.ws.remote.RemoteSystem");
		
System.out.println(rs.getSystemTime());

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

This Version: Version 7 May 12, 2011 2:17:06 PM by Van Staub  IBMer

expanded Attachments (0)
collapsed Attachments (0)

 


expanded Versions (7)
collapsed Versions (7)
Version Comparison     
Version Date Changed by               Summary of changes
This version (7) May 12, 2011 2:17:06 PM Van Staub  
6 Oct 5, 2010 11:19:29 AM Van Staub  
5 Oct 5, 2010 9:02:45 AM Van Staub  
4 Sep 15, 2010 12:48:46 PM Van Staub  
3 Sep 14, 2010 8:40:34 PM Van Staub  
2 Sep 14, 2010 8:33:41 PM Van Staub  
1 Sep 14, 2010 8:16:11 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