Author: jonathan
Date: Mon Jul 21 01:37:34 2008
New Revision: 19761
URL: http://wso2.org/svn/browse/wso2?view=rev&revision=19761

Log:
typos and corrections.

Modified:
   trunk/mashup/java/xdocs/systemhostobject.html
   trunk/mashup/java/xdocs/wsrequesthostobject.html

Modified: trunk/mashup/java/xdocs/systemhostobject.html
URL: 
http://wso2.org/svn/browse/wso2/trunk/mashup/java/xdocs/systemhostobject.html?rev=19761&r1=19760&r2=19761&view=diff
==============================================================================
--- trunk/mashup/java/xdocs/systemhostobject.html       (original)
+++ trunk/mashup/java/xdocs/systemhostobject.html       Mon Jul 21 01:37:34 2008
@@ -140,8 +140,7 @@
 The function returns a String UUID, which can be used to refer to this
 function scheduling instance.<br>
 &nbsp; &nbsp; &nbsp;<span style="font-style: italic;">var
-id = system.setInterval('myJavaScriptFunction("I am a parameter
-value");', 2000);<br>
+id = system.setInterval('myJavaScriptFunction("parameterValue")', 2000);<br>
 <br>
 </span>For a demonstration of this feature, please refer
 the <span style="font-weight: bold; font-style: italic;">TomatoTube</span>
@@ -171,10 +170,7 @@
 track the timeout. This is most commonly used with the clearTimeout()
 method.<br>
 <span style="font-style: italic;">&nbsp;
-&nbsp; &nbsp;var id = system.setTimeout
-('myJavaScriptFunction("I
-am a parameter
-value");, 2000);</span></td>
+&nbsp; &nbsp;var id = 
system.setTimeout('myJavaScriptFunction("parameterValue")', 2000);</span></td>
 <td>1.5</td>
 </tr>
 <tr>
@@ -214,7 +210,8 @@
 <td>Utility function to get an XML file over the network.<br>
 <span style="font-style: italic;">&nbsp;
 &nbsp;
-&nbsp;system.getXML('http://wso2.org/repos/wso2/trunk/mashup/java/modules/samples/upgradeChecker/upgradeChecker.resources/history.xml');</span></td>
+&nbsp;system.getXML('http://wso2.org/repos/wso2/trunk/mashup/java/modules/ 
samples/upgradeChecker/upgradeChecker.resources/history.xml');</span></td>
+
 <td>1.5</td>
 </tr>
 <tr>

Modified: trunk/mashup/java/xdocs/wsrequesthostobject.html
URL: 
http://wso2.org/svn/browse/wso2/trunk/mashup/java/xdocs/wsrequesthostobject.html?rev=19761&r1=19760&r2=19761&view=diff
==============================================================================
--- trunk/mashup/java/xdocs/wsrequesthostobject.html    (original)
+++ trunk/mashup/java/xdocs/wsrequesthostobject.html    Mon Jul 21 01:37:34 2008
@@ -94,7 +94,7 @@
 Username Token over HTTPS.</li><li>username - If the useWSS option is set to 
true the username will be used
 to invoke the destination service using Username Token (using
 WS-Security) otherwise it will be used to invoke the service with HTTP
-Basic Authentication enabled.&nbsp;</li><li>passowrd - If the useWSS option is 
set
+Basic Authentication enabled.&nbsp;</li><li>password - If the useWSS option is 
set
 to true the password will be used to invoke the destination service
 using Username Token (using WS-Security) otherwise it will be used to
 invoke the service with HTTP Basic Authentication
@@ -152,7 +152,7 @@
 options needed to parse in information to invoke secured 
services.</li></ul><div style="margin-left: 40px;">The following is a list of 
supported options<br></div><ul><ul><li>username
 - Used to specify the username if the service needs a
 username&nbsp;token to carry out any WS-Security related
-operations.&nbsp;</li><li>passowrd -&nbsp;Used to specify the passowrd if the 
service needs a password token to carry out any WS-Security related 
operations.&nbsp;</li><li>encryptionUser
+operations.&nbsp;</li><li>password -&nbsp;Used to specify the password if the 
service needs a password token to carry out any WS-Security related 
operations.&nbsp;</li><li>encryptionUser
 - Used to specify the alias of the certificate to use in Encryption if
 the service needs the request to be encrypted.</li></ul><li><span 
style="font-style: italic;">serviceName (QName)</span>
 - The QName of the service to be invoked. Could be usefull if the WSDL
@@ -236,7 +236,7 @@
 given below can handle sevaral security scenarios provided that the
 proper certificate provisioning has taken place.
 <div class="code">
-<pre>// Demonstrates calling the getVersion operation of the version service. 
This client will work for most WS-Security scenarios (Works for all the 
scenarios the Mashup Server ships)<br>function invokeGetVersion(){<br>    var 
request = new WSRequest();<br>    var options = new Array();<br>    
options["username"] = "keith"; // Will be used if the service policy needed a 
Username Token. Assuming that access has been grated to keith<br>    
options["password"] = "keith"; // Will be used if the service policy needed a 
Username Token. Assuming that access has been grated to keith<br>   
&nbsp;options["encryptionUser"] = "versionCert"; // The alias of the 
certificate that will be used to encrypt the request. <br>                      
                    // This is the public certificate of the Keystore that the 
version service is secured with.<br>                                         // 
If the security policy of the version service needs the request signed the 
client will do so. <br>                                               // But 
the keystore of the version service needs to have keith's (The clients) public 
certificate <br>    var service = new 
QName("http://services.mashup.wso2.org/version","version";);<br>    
request.openWSDL("http://localhost:7762/services/system/version?wsdl",true, 
options,service,"SecureSOAP11Endpoint");<br>    
request.send("getVersion",null);<br>    return request.responseXML;<br>}</pre>
+<pre>// Demonstrates calling the getVersion operation of the version service. 
This client will work for most <br>//  WS-Security scenarios (Works for all the 
scenarios the Mashup Server ships)<br>function invokeGetVersion(){<br>    var 
request = new WSRequest();<br>    var options = new Array();<br>    
options["username"] = "keith";<br>    // Will be used if the service policy 
requires a Username Token. Assuming that access has been granted to keith<br>   
 options["password"] = "keith";<br>    // Will be used if the service policy 
requires a Username Token. Assuming that access has been granted to keith<br>   
&nbsp;options["encryptionUser"] = "versionCert";<br>    // The alias of the 
certificate that will be used to encrypt the request. <br>    // This is the 
public certificate of the Keystore that the version service is secured 
with.<br>    // If the security policy of the version service needs the request 
signed the client will do so. <br>    // But the keystore of the version 
service needs to have keith's (the clients) public certificate <br>    var 
service = new QName("http://services.mashup.wso2.org/version","version";);<br>   
 request.openWSDL("http://localhost:7762/services/system/version?wsdl",true, 
options,service,"SecureSOAP11Endpoint");<br>    
request.send("getVersion",null);<br>    return request.responseXML;<br>}</pre>
 </div>
 See <a 
href="http://www.wso2.org/wiki/display/mashup/Ideas+for+evolving+WSRequest"; 
title="Ideas for evolving WSRequest">Ideas for evolving
 WSRequest</a> for additional options under development.

_______________________________________________
Mashup-dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/mashup-dev

Reply via email to