Jump to: navigation, search

Difference between revisions of "View Cache"


(AddUpdateInformation)
(Web Service Interface)
Line 32: Line 32:
 
</syntaxhighlight>
 
</syntaxhighlight>
  
=== DebugInfo ===
+
 
 +
 
 +
 
 +
 
 +
=== TriggerViewStateUpdate ===
 
The push web service provides access to its current status via a debug - info method. Use this to retrieve information about the current status of the web service.
 
The push web service provides access to its current status via a debug - info method. Use this to retrieve information about the current status of the web service.
 
This method can also be called via a web browswer by browsing the according URL.
 
This method can also be called via a web browswer by browsing the according URL.
<source lang="csharp">
+
<syntaxhighlight> lang="csharp">
        /// <summary>
+
        /// Delivers info about the current status of the Push Service.
+
        /// </summary>
+
        /// <param name="token">authentication token</param>
+
 
         [OperationContract]
 
         [OperationContract]
         [WebInvoke(UriTemplate = "DebugInfo/{token}", Method = "GET",
+
         [WebInvoke(UriTemplate = "TriggerViewStateUpdate/{appName}/{contextName}/{authentication}", Method = "GET",
 
                   RequestFormat = WebMessageFormat.Json,
 
                   RequestFormat = WebMessageFormat.Json,
 
                   ResponseFormat = WebMessageFormat.Json)]
 
                   ResponseFormat = WebMessageFormat.Json)]
         string DebugInfo(string token);
+
         bool TriggerViewStateRefresh(string appName, string contextName, string authentication);
</source>
+
</syntaxhighlight>
  
=== Reset ===
+
=== TestViewState===
 
To trigger reinitialization (reset) of the push web service from extern, call this method via a web browser.
 
To trigger reinitialization (reset) of the push web service from extern, call this method via a web browser.
<source lang="csharp">
+
<syntaxhighlightlang="csharp">
        /// <summary>
+
        /// Resets the Cache of the Push Service
+
        /// </summary>
+
        /// <param name="token">authentication token</param>
+
 
         [OperationContract]
 
         [OperationContract]
         [WebInvoke(UriTemplate = "Reset/{token}", Method = "GET",
+
         [WebInvoke(UriTemplate = "TestViewState/{appName}/{contextName}/{owneruid}/{authentication}", Method = "GET",
 
                   RequestFormat = WebMessageFormat.Json,
 
                   RequestFormat = WebMessageFormat.Json,
 
                   ResponseFormat = WebMessageFormat.Json)]
 
                   ResponseFormat = WebMessageFormat.Json)]
         void Reset(string token);
+
         DTO.V211.BCHierarchyDeltaShipments TestViewState(string appName, string contextName, string ownerUID, string authentication);
</source>
+
</syntaxhighlight>
 
+
 
+
 
+
 
+
  
 
[[Category:Installing]]
 
[[Category:Installing]]
 
[[Category:Web service]]
 
[[Category:Web service]]

Revision as of 12:30, 7 May 2015

IC ReleaseStatus Beta.png
This feature is a beta version. If you experience unexpected issues, please Contact us for support.


The View Cache feature increases the performance of the Web Service by caching the data to be published and sent to the clients. All content data as well as the hierarchies, as defined by the View and in the ACM, is evaluated and cached internally. Once the cache has been initialized, its status and additional information can be retrieved by web service methods.

Enabling the View Cache

The View Cache features needs to be enabled in the web.config file of the corresponding web service.

Area Setting Description
appSettings UBIK.Service.EnableViewCachage Enable (1) / Disable (0) the view cache feature for this web service
  <appSettings>
    ...
    <add key="UBIK.Service.EnableViewCache" value="1" />
  </appSettings>

Web Service Interface

Use the these web service members to gain status and runtime information of the View Cache. Mmore detailed information and a comprehensive list of all members and data types are located in the UBIK® class documentation.

GetViewStateInformation

The web service provides a method to add content to be pushed to the clients:

        [OperationContract]
        [WebInvoke(UriTemplate = "GetViewStateInformation/{appName}/{contextName}/{authentication}", Method = "GET",
                   RequestFormat = WebMessageFormat.Json,
                   ResponseFormat = WebMessageFormat.Json)]
        string GetViewStateInformation(string appName, string contextName, string authentication);



TriggerViewStateUpdate

The push web service provides access to its current status via a debug - info method. Use this to retrieve information about the current status of the web service. This method can also be called via a web browswer by browsing the according URL.

Invalid language.

You need to specify a language like this: <source lang="html4strict">...</source>

Supported languages for syntax highlighting:

4cs, 6502acme, 6502kickass, 6502tasm, 68000devpac, abap, actionscript, actionscript3, ada, algol68, apache, applescript, apt_sources, arm, asm, asp, asymptote, autoconf, autohotkey, autoit, avisynth, awk, bascomavr, bash, basic4gl, bf, bibtex, blitzbasic, bnf, boo, c, c_loadrunner, c_mac, caddcl, cadlisp, cfdg, cfm, chaiscript, cil, clojure, cmake, cobol, coffeescript, cpp, cpp-qt, csharp, css, cuesheet, d, dcl, dcpu16, dcs, delphi, diff, div, dos, dot, e, ecmascript, eiffel, email, epc, erlang, euphoria, f1, falcon, fo, fortran, freebasic, freeswitch, fsharp, gambas, gdb, genero, genie, gettext, glsl, gml, gnuplot, go, groovy, gwbasic, haskell, haxe, hicest, hq9plus, html4strict, html5, icon, idl, ini, inno, intercal, io, j, java, java5, javascript, jquery, kixtart, klonec, klonecpp, latex, lb, ldif, lisp, llvm, locobasic, logtalk, lolcode, lotusformulas, lotusscript, lscript, lsl2, lua, m68k, magiksf, make, mapbasic, matlab, mirc, mmix, modula2, modula3, mpasm, mxml, mysql, nagios, netrexx, newlisp, nsis, oberon2, objc, objeck, ocaml, ocaml-brief, octave, oobas, oorexx, oracle11, oracle8, oxygene, oz, parasail, parigp, pascal, pcre, per, perl, perl6, pf, php, php-brief, pic16, pike, pixelbender, pli, plsql, postgresql, povray, powerbuilder, powershell, proftpd, progress, prolog, properties, providex, purebasic, pycon, pys60, python, q, qbasic, rails, rebol, reg, rexx, robots, rpmspec, rsplus, ruby, sas, scala, scheme, scilab, sdlbasic, smalltalk, smarty, spark, sparql, sql, stonescript, systemverilog, tcl, teraterm, text, thinbasic, tsql, typoscript, unicon, upc, urbi, uscript, vala, vb, vbnet, vedit, verilog, vhdl, vim, visualfoxpro, visualprolog, whitespace, whois, winbatch, xbasic, xml, xorg_conf, xpp, yaml, z80, zxbasic


 lang="csharp">
        [OperationContract]
        [WebInvoke(UriTemplate = "TriggerViewStateUpdate/{appName}/{contextName}/{authentication}", Method = "GET",
                   RequestFormat = WebMessageFormat.Json,
                   ResponseFormat = WebMessageFormat.Json)]
        bool TriggerViewStateRefresh(string appName, string contextName, string authentication);

TestViewState

To trigger reinitialization (reset) of the push web service from extern, call this method via a web browser. <syntaxhighlightlang="csharp">

       [OperationContract]
       [WebInvoke(UriTemplate = "TestViewState/{appName}/{contextName}/{owneruid}/{authentication}", Method = "GET",
                  RequestFormat = WebMessageFormat.Json,
                  ResponseFormat = WebMessageFormat.Json)]
       DTO.V211.BCHierarchyDeltaShipments TestViewState(string appName, string contextName, string ownerUID, string authentication);

</syntaxhighlight>