Difference between revisions of "HowTo:Install UBIK Web Service"
Line 1: | Line 1: | ||
− | Prior to the installation of an {{UBIK}} Web Service make sure to have a [http://www.iis.net/ Microsoft Internet Information Server (IIS)] available and configured accordingly. If not check the instructions how to [[Install_Microsoft_IIS|install]] | + | Prior to the installation of an {{UBIK}} Web Service make sure to have a [http://www.iis.net/ Microsoft Internet Information Server (IIS)] available and configured accordingly. If not check the instructions how to [[Install_Microsoft_IIS|install]] an IIS and how to [[Configure_Microsoft_IIS_for_UBIK|configure]] for {{UBIK}}. |
== Installing {{UBIK}} Content Web Service == | == Installing {{UBIK}} Content Web Service == |
Revision as of 10:35, 5 June 2014
Prior to the installation of an UBIK® Web Service make sure to have a Microsoft Internet Information Server (IIS) available and configured accordingly. If not check the instructions how to install an IIS and how to configure for UBIK®.
Contents
Installing UBIK® Content Web Service
- Creating a new directory in the wwwroot directory of the IIS installation (default: c:\inetpub\wwwroot)
- Copying the components of the UBIK® Web Service into the (new) directory
- Configure the web service by changing parameters in the web.config file
- Create a new web applicaton as described here
Installing UBIK® Authentication Web Service
Configuration of the Web Server
The web server can be configured using the Internet Information Services (IIS) Manager console, which gets installed automatically. The console provides a graphical user interface to manage and configure the web server accordingly to the UBIK® web service.
Add Application Pool
An application pool is a group of one or more URLs that are served by a worker process or a set of worker processes. Application pools set boundaries for the applications they contain, which means that any applications that are running outside a given application pool cannot affect the applications in the application pool.
Certificate
The web service communicates with the UBIK® client via an secured connection, which requires a SSL certificate on the server and client side. Use a public key certificate from a certificate authority or a self-signed certificate, both will work for UBIK®. A new self-signed certificate can be created in the Internet Information Server (IIS) Manager, exported using the export function and sent to the development team. As already mentioned, the client has to know this certificate as well, hence it need to be integrated it into the mobile application.
Bindings
Web sites and services have something called Server Bindings which represent the underlying address, port, and potentially a host header that the website is accessed using. The UBIK® client accesses the web service via a secured port (https), where it is necessary to configure the appropriate certificate.
For Android Clients
For Windows 8.1 Clients
Create new Web Application
In the IIS Manager expand the Default Web Site node and navigate through the folder structure to the folder containing the UBIK® web service components.
Optional: Local IIS User
Create and use a local user on the web server if no appropriate domain-user is available.
Additional prerequisites
- Ensure that the service ports are not blocked by a firewall.
- Ensure that port forwarding is established if needed (e.g. for Microsoft Azure Virtual Computers or servers behind a gateway)
Testing the Web Service
Test the web service by entering the following URL in a browser:
https://<SERVER-IP>/<PATH-TO-UBIK-WEBSERVICE>/UBIKContent.svc/GetVersion