Difference between revisions of "View Cache"
(→AddUpdateInformation) |
(→Web Service Interface) |
||
Line 32: | Line 32: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
− | === | + | |
+ | |||
+ | |||
+ | |||
+ | === 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. | ||
− | < | + | <syntaxhighlight> lang="csharp"> |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
[OperationContract] | [OperationContract] | ||
− | [WebInvoke(UriTemplate = " | + | [WebInvoke(UriTemplate = "TriggerViewStateUpdate/{appName}/{contextName}/{authentication}", Method = "GET", |
RequestFormat = WebMessageFormat.Json, | RequestFormat = WebMessageFormat.Json, | ||
ResponseFormat = WebMessageFormat.Json)] | ResponseFormat = WebMessageFormat.Json)] | ||
− | + | bool TriggerViewStateRefresh(string appName, string contextName, string authentication); | |
− | </ | + | </syntaxhighlight> |
− | === | + | === 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. | ||
− | < | + | <syntaxhighlightlang="csharp"> |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
[OperationContract] | [OperationContract] | ||
− | [WebInvoke(UriTemplate = " | + | [WebInvoke(UriTemplate = "TestViewState/{appName}/{contextName}/{owneruid}/{authentication}", Method = "GET", |
RequestFormat = WebMessageFormat.Json, | RequestFormat = WebMessageFormat.Json, | ||
ResponseFormat = WebMessageFormat.Json)] | ResponseFormat = WebMessageFormat.Json)] | ||
− | + | DTO.V211.BCHierarchyDeltaShipments TestViewState(string appName, string contextName, string ownerUID, string authentication); | |
− | </ | + | </syntaxhighlight> |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
[[Category:Installing]] | [[Category:Installing]] | ||
[[Category:Web service]] | [[Category:Web service]] |
Revision as of 12:30, 7 May 2015
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.
Contents
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 |
...
<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:
[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>