
* Introduction
--------------

This package called 'uvos-client' contains client side libraries and a 
command line application (CLC) for accessing UVOS Server. 

For a general introduction of UVOS please refer to its website:

	http://uvos.chemomentum.org
	
especially the "UVOS Overview" document available there, should be a good
starting point. It is also available in the UVOS server package.


* Installation
--------------

UVOS client is distributed either as a platform independent archive or as 
an installable, platform dependent package such as RPM. Depending on the 
installation source used, installation method and paths after installation 
are different. 

If installing using distribution-specific package as RPM the following 
instruction shall be used:

 1. Download RPM UVOS client package from UNICORE download site and install it using 
rpm command as the root user:

 $> rpm -i unicore-uvos-clc-VERSION.noarch.rpm  

You can also (what is suggested) use yum to install and subsequently update the component.
The yum installation may be performed as follows (note that first command is needed
only if you have not yet installed the EMI yum repository):

 $> wget --no-check-certificate https://twiki.cern.ch/twiki/pub/EMI/EMI-1/rc1.repo -O /etc/yum.repos.d/emi-1.repo
 $> yum install unicore-uvos-clc

*TODO update the yum repository definition link!!!!!!!!!* 

 2. The default configuration of the client is placed in /etc/unicore/uvos-clc/uvosClient.conf
 Upon a first start of the client it will be copied to .uvos-clc/ folder in 
 your home directory. You should edit it there (see ClientConfiguration.txt for details). 
 The program is called 'uvos-clc'.

If installing using a portable archive:

 1. Download the uvos-client archive from the UNICORE download site and unpack it.
 
 2. The default configuration of the client is placed in conf/uvosClient.conf
 You should edit it there (see ClientConfiguration.txt for details). 
 The program can be found in bin/ subdirectory and is called 'uvoscmd.sh'


* Using the command line UVOS client
------------------------------------

The bin directory contains a shell script which invokes a powerful command line
UVOS client. It can operate in batch or interactive mode. Invoking it without
arguments provides you with usage instructions. Also there is a built in help system:
it allows you to list all commands and get help on each of them.

Note that in interactive mode in order to pass arguments which contains spaces
you can surround them with double quotes "like this". 

The command line client uses a configuration file to get information about:
 - UVOS server address
 - Authentication
 - Trusted certificates for TLS connection.
 
See 'ClientConfiguration.txt' file for details. 


* Using other available clients
------------------------------------

Other clients which are available in this package are usually not useful for 
UVOS users. The sole exception is SAMLSelfClient (invoked by 
bin/startSAMLSelfClient.sh script). This program gets all attributes which are
defined for the identity making the call (i.e. this one which is set in client's 
configuration file).

The 'WebClient' program serves as an example for developers only so you can 
ignore it. 


* Developing with uvos-client
-----------------------------

If you intend to use this package as a library please refer to the included
JavaDocs. Remember that there are two VO APIs implemented by this library:
 -) SAML API. It uses SAML 2.0 and so is standard-compliant, can be used to access 
 any version of UVOS server and possibly other SAML services. However it offers only 
 a read-only access. If you can then use use this API. It is included in the 
 package: pl.edu.icm.unicore.uvos.wsclient.samlapi
 
 -) UVOS API. It uses an own UVOS web services interface. It is not guaranteed
 that using this API will work perfectly with older UVOS server releases (however 
 most of fundamental functions should work). Also this API in not standards 
 compliant. On the other hand it allows you to use all UVOS features. 
 It is included in the package: pl.edu.icm.unicore.uvos.wsclient.api

Also note that if intend to simply add UVOS support for your XFire or WSRFLite or UAS 
service then you should use xfire-voutils or uas-authz packages which provides a
ready to use solution for such cases. 

For additional information please contact UVOS or UNICORE developers at: 
unicore-devel@@lists.sourceforge.net

