Jump to: navigation, search

Changes


UBIK Push Web Service

86 bytes added, 08:46, 27 May 2014
The File 'UBIKPush.svc' contains the basic definition of the service:
<codesource lang="xml">
<%@ ServiceHost Language="C#" Debug="true" Service="UBIK.Service.UBIKPush" CodeBehind="UBIKPush.svc.cs" %>
</codesource >
The Endpoint of the Push Service must be configured in the Service section of the Web.Config file:
<codesource lang="xml">
<configuration>
<system.serviceModel>
</system.serviceModel>
</configuration>
</codesource>
The WebService provides a method to add content to be pushed to the clients:
<codesource lang="csharp">
/// <summary>
/// AddUpdateInformation provides the possibility to register data to be forwarded (pushed) to the clients
ResponseFormat = WebMessageFormat.Json)]
bool AddUpdateInformation(PushUpdateDefinition data);
</codesource >
This method can be executed via a Webbrowswer as well:
<codesource lang="csharp">
/// <summary>
/// Delivers info about the current status of the Push Service.
ResponseFormat = WebMessageFormat.Json)]
string DebugInfo(string token);
</codesource>
There is a possibility to trigger a reinitialization (reset) of the Push Web Service from outside. This method can be executed via a Webbrowswer as well.
<codesource lang="csharp">
/// <summary>
/// Resets the Cache of the Push Service
ResponseFormat = WebMessageFormat.Json)]
void Reset(string token);
</codesource>
== Future Prospective ==
Up to now (Version 2.3.1) there is no UI implementation for the Push Web Service. To guarantee an optimal integration of the Push Service to the UBIK Kernel a socket implementation of the Push Service is provided via the Environment. This socket class uses the web service methods to add data to the PushService. The Configura-tion of the WebService must be done as it is done for the LAS/GAS.
An instance of this Socket class is provided via the Ubik Environment.
1,546
edits