Introduction:
-------------

Code samples for integration with Universign client signature service.
This web application is an example on how to integrate Universign with a webapp.
It SHOULD NOT be used in a production environment.


Requirements:
-------------
- Apache server
- PHP 5 
- CURL for PHP module

Installation:
-------------
Copy the files in the 'www' directory of apache.
Set the parameters of 'params.inc.php'.

Files:
------
web:
- index.html	: main HTML page
- css/ 		: css repertory (html page style)
- images/	: images repertory (logos)
- js/		: javascript repertory (jquery library)

php:
- params.inc.php	: parameters of the applications
- geturl.php		: request a signature transaction with Universign
- return.php		: retrieve the signed documents from Universign
- document.php		: download the signed document
- lib/			: xmlrpc library (http://phpxmlrpc.sourceforge.net/)


Workflow:
---------
- the user uploads the document 
- the server requests a transaction form Universign (geturl.php) and makes a redirection to the transaction URL
- the user signs the documents using the Universign webapp
- when the signature process is completed, the user is redirected to the MyBank website and can retrieve its signed document.
