<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to TheServices</title><link>https://sourceforge.net/p/wzz-bridge/wiki/TheServices/</link><description>Recent changes to TheServices</description><atom:link href="https://sourceforge.net/p/wzz-bridge/wiki/TheServices/feed" rel="self"/><language>en</language><lastBuildDate>Mon, 26 May 2014 21:57:07 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/wzz-bridge/wiki/TheServices/feed" rel="self" type="application/rss+xml"/><item><title>TheServices modified by Mark</title><link>https://sourceforge.net/p/wzz-bridge/wiki/TheServices/</link><description>&lt;div class="markdown_content"&gt;&lt;h1 id="the-wzz-bridge-services"&gt;The Wzz-Bridge Services&lt;/h1&gt;
&lt;ul&gt;
&lt;li&gt;The setup of the Wzz-Bridge Application as described here GettingStarted . &lt;ul&gt;
&lt;li&gt;Pay particular attention to the "Web Access/Security" section and ensure you have the correct "web.access.tokens" value set.&lt;ul&gt;
&lt;li&gt;The access token for the below examples is "monkey"&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;The "wzz-bridge" folder exists inside the users home directory.&lt;ul&gt;
&lt;li&gt;Linux - "/home/username/wzz-bridge"&lt;/li&gt;
&lt;li&gt;Windows XP - "C:\Documents and Settings\username\wzz-bridge"&lt;/li&gt;
&lt;li&gt;Vista - "C:\Users\username\wzz-bridge"&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="groovy-services"&gt;Groovy Services&lt;/h2&gt;
&lt;p&gt;New services can be added dynamically by copying the appropriate Groovy Class or Groovy script file to wzz-bridge/GroovyServiceHome directory.&lt;br /&gt;
&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Groovy Classes&lt;br /&gt;
    Groovy class must implement {{{services.core.commands.execute.SimpleGroovyService}}} &lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;wzz-bridge/GroovyServiceHome/HelloClass.groovy&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://localhost:8080/wzz-bridge-core/monkey/executeGroovyClass.html?target#HelloWorldClass.groovy&amp;amp;value#World01" rel="nofollow"&gt;http://localhost:8080/wzz-bridge-core/monkey/executeGroovyClass.html?target#HelloWorldClass.groovy&amp;amp;value#World01&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;wzz-bridge/GroovyServiceHome/GetMilliTime.groovy&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://localhost:8080/wzz-bridge-core/monkey/executeGroovyClass.html?target#GetMilliTime.groovy&amp;amp;value#" rel="nofollow"&gt;http://localhost:8080/wzz-bridge-core/monkey/executeGroovyClass.html?target#GetMilliTime.groovy&amp;amp;value#&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;wzz-bridge/GroovyServiceHome/GetNanoTime.groovy&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://localhost:8080/wzz-bridge-core/monkey/executeGroovyClass.html?target#GetNanoTime.groovy&amp;amp;value#" rel="nofollow"&gt;http://localhost:8080/wzz-bridge-core/monkey/executeGroovyClass.html?target#GetNanoTime.groovy&amp;amp;value#&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;'''Groovy Scripts''' &lt;br /&gt;
    Only one argument passed in "${argument}", and three values expected to be passed out, which are: "responseCode", "responseMessage", and "responseResult". &lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;wzz-bridge/GroovyServiceHome/HelloScript.groovy&lt;ul&gt;
&lt;li&gt;&lt;a href="http://localhost:8080/wzz-bridge-core/monkey/executeGroovyScript.html?target#HelloWorldScript.groovy&amp;amp;value#World01" rel="nofollow"&gt;http://localhost:8080/wzz-bridge-core/monkey/executeGroovyScript.html?target#HelloWorldScript.groovy&amp;amp;value#World01&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="java-services"&gt;Java Services&lt;/h2&gt;
&lt;p&gt;Java classes &lt;em&gt;should&lt;/em&gt; have a services.core.commands.SimpleCommandResponse return type for service calls, otherwise the String value of the returned object will be used.  New services can be added dynamically by copying the appropriate ".jar" file to the wzz-bridge/JavaServiceHome directory. &lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://localhost:8080/wzz-bridge-core/monkey/executeJava.html?target#java.lang.System.getProperty&amp;amp;value#java.version" rel="nofollow"&gt;http://localhost:8080/wzz-bridge-core/monkey/executeJava.html?target#java.lang.System.getProperty&amp;amp;value#java.version&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="process-services"&gt;Process Services&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://localhost:8080/wzz-bridge-core/monkey/executeProcess.html?command#java%20-version" rel="nofollow"&gt;http://localhost:8080/wzz-bridge-core/monkey/executeProcess.html?command#java%20-version&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="sql-services"&gt;Sql Services&lt;/h2&gt;
&lt;p&gt;You will need to add the appropriate java database library jar to to wzz-bridge/ApplicationHome/lib directory and restart the wzz-bridge for the libraries to become available.  (For instance, ojdbc14.jar for Oracle).  Additionally you will need to set the correct database values by editing the wzz-bridge/ApplicationHome/application.properties file.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://localhost:8080/wzz-bridge-core/monkey/executeSql.html?sqlCommand#Select%201%20from%20dual" rel="nofollow"&gt;&lt;/a&gt;&lt;a href="http://localhost:8080/wzz-bridge-core/monkey/executeSql.html?sqlCommand#Select%201%20from%20dual" rel="nofollow"&gt;&lt;/a&gt;&lt;a href="http://localhost:8080/wzz-bridge-core/monkey/executeSql.html?sqlCommand#Select%201%20from%20dual" rel="nofollow"&gt;http://localhost:8080/wzz-bridge-core/monkey/executeSql.html?sqlCommand#Select%201%20from%20dual&lt;/a&gt;&lt;ul&gt;
&lt;li&gt;The optional "jndiName" parameter can also be supplied if the Wzz-Bridge is running inside a container such as Tomcat or JBoss.&lt;/li&gt;
&lt;li&gt;If the "jndiName" parameter is empty then a value of "default" will be used.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="http-parameter-storage-and-retrieval-services"&gt;Http Parameter Storage And Retrieval Services&lt;/h2&gt;
&lt;p&gt;The optional "sessionId" parameter is the unique key that resolves to the clients ip address if not given. &lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Store a Parameter &lt;ul&gt;
&lt;li&gt;&lt;a href="http://localhost:8080/wzz-bridge-core/monkey/storeHttpParameters.html?key1#value1" rel="nofollow"&gt;http://localhost:8080/wzz-bridge-core/monkey/storeHttpParameters.html?key1#value1&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Retrieve Parameters &lt;ul&gt;
&lt;li&gt;&lt;a href="http://localhost:8080/wzz-bridge-core/monkey/retrieveHttpParameters.html?fetch#." rel="nofollow"&gt;http://localhost:8080/wzz-bridge-core/monkey/retrieveHttpParameters.html?fetch#.&lt;/a&gt;*&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Clear Parameters &lt;ul&gt;
&lt;li&gt;&lt;a href="http://localhost:8080/wzz-bridge-core/monkey/storeHttpParameters.html?action#clear" rel="nofollow"&gt;http://localhost:8080/wzz-bridge-core/monkey/storeHttpParameters.html?action#clear&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="property-retrieval-services"&gt;Property Retrieval Services&lt;/h2&gt;
&lt;p&gt;This service can response with local or remote properties &lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;wzz-bridge/PropertyFileHome/default.properties&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://localhost:8080/wzz-bridge-core/monkey/fetchPropertiesFromFile.html?propertyFilePath#default.properties&amp;amp;propertyFilter#." rel="nofollow"&gt;http://localhost:8080/wzz-bridge-core/monkey/fetchPropertiesFromFile.html?propertyFilePath#default.properties&amp;amp;propertyFilter#.&lt;/a&gt;*&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;java.sun.com/j2se/1.3/font.properties&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://localhost:8080/wzz-bridge-core/monkey/fetchPropertiesFromFile.html?propertyFilePath#http://java.sun.com/j2se/1.3/font.properties&amp;amp;propertyFilter#." rel="nofollow"&gt;http://localhost:8080/wzz-bridge-core/monkey/fetchPropertiesFromFile.html?propertyFilePath#http://java.sun.com/j2se/1.3/font.properties&amp;amp;propertyFilter#.&lt;/a&gt;*&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="environment-variable-retrieval-services"&gt;Environment Variable Retrieval Services&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://localhost:8080/wzz-bridge-core/monkey/fetchEnvironmentVariables.html?environmentVariableFilter#." rel="nofollow"&gt;http://localhost:8080/wzz-bridge-core/monkey/fetchEnvironmentVariables.html?environmentVariableFilter#.&lt;/a&gt;*&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="resource-retrieval-services"&gt;Resource Retrieval Services&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href="http://localhost:8080/wzz-bridge-core/monkey/resources/sample.txt" rel="nofollow"&gt;http://localhost:8080/wzz-bridge-core/monkey/resources/sample.txt&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href="http://localhost:8080/wzz-bridge-core/monkey/resources/app/selenium/extensions/wzz-bridge-extensions.js?resourceContentType#text/plain?resourceContentType#text/plain" rel="nofollow"&gt;http://localhost:8080/wzz-bridge-core/monkey/resources/app/selenium/extensions/wzz-bridge-extensions.js?resourceContentType#text/plain?resourceContentType#text/plain&lt;/a&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;The optional "resourceContentType" can be supplied&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Mark</dc:creator><pubDate>Mon, 26 May 2014 21:57:07 -0000</pubDate><guid>https://sourceforge.net19e915f8b48f9269142c531fd67573bd3fa17e7e</guid></item></channel></rss>