Author: jonathan
Date: Sun Jul 20 22:59:41 2008
New Revision: 19715
URL: http://wso2.org/svn/browse/wso2?view=rev&revision=19715

Log:
Normalized headings.  Misc markup cleanup.

Modified:
   trunk/mashup/java/xdocs/adminguide.html
   trunk/mashup/java/xdocs/apphostobject.html
   trunk/mashup/java/xdocs/community.html
   trunk/mashup/java/xdocs/consumingservices.html
   trunk/mashup/java/xdocs/emailhostobject.html
   trunk/mashup/java/xdocs/feedhostobject.html
   trunk/mashup/java/xdocs/filehostobject.html
   trunk/mashup/java/xdocs/identity.html
   trunk/mashup/java/xdocs/imhostobject.html
   trunk/mashup/java/xdocs/installationguide.html
   trunk/mashup/java/xdocs/requesthostobject.html
   trunk/mashup/java/xdocs/scraperhostobject.html
   trunk/mashup/java/xdocs/sessionhostobject.html
   trunk/mashup/java/xdocs/systemhostobject.html
   trunk/mashup/java/xdocs/wsrequesthostobject.html

Modified: trunk/mashup/java/xdocs/adminguide.html
URL: 
http://wso2.org/svn/browse/wso2/trunk/mashup/java/xdocs/adminguide.html?rev=19715&r1=19714&r2=19715&view=diff
==============================================================================
--- trunk/mashup/java/xdocs/adminguide.html     (original)
+++ trunk/mashup/java/xdocs/adminguide.html     Sun Jul 20 22:59:41 2008
@@ -122,11 +122,6 @@
 <br>
 <br>
 <img src="images/mashup.png" style="width: 1001px; height: 663px;" alt="Mashup 
Page"><br>
-<h2><br>
-
-
-</h2>
-
 
 <h2>Advanced Search</h2>
 

Modified: trunk/mashup/java/xdocs/apphostobject.html
URL: 
http://wso2.org/svn/browse/wso2/trunk/mashup/java/xdocs/apphostobject.html?rev=19715&r1=19714&r2=19715&view=diff
==============================================================================
--- trunk/mashup/java/xdocs/apphostobject.html  (original)
+++ trunk/mashup/java/xdocs/apphostobject.html  Sun Jul 20 22:59:41 2008
@@ -32,56 +32,62 @@
 <h1> WSO2 Mashup Server, Atom Publishing Protocol (APP) Host
 Object Guide </h1>
 
-This document describes the set of host objects available for
-publishing using the Atom Publishing Protocol (APP).&nbsp;<br>
-
-<br>
+<p>This document describes the set of host objects available for
+publishing using the Atom Publishing Protocol (APP).</p>
 
 <h2>1.0 Introduction </h2>
 
-The APP implementation consists of three main host objects, namely
-AtomFeed, AtomEntry and APPClient.<br>
-
-&nbsp;<br>
+<p>The APP implementation consists of three main host objects, namely
+AtomFeed, AtomEntry and APPClient.</p>
 
 <h3> 1.1 AtomFeed </h3>
 
-The "AtomFeed" host object serves as the top level&nbsp;element of
+<p>The "AtomFeed" host object serves as the top level&nbsp;element of
 an Atom Feed Document, acting as a container for meta data and data
 associated with the feed. Its element children consist of meta data
-elements followed by zero or more "AtomEntry" child elements.<br>
+elements followed by zero or more "AtomEntry" child elements.</p>
 
 <h3> 1.2 AtomEntry </h3>
 
-The "AtomEntry" host object represents an individual entry, acting as a
+<p>The "AtomEntry" host object represents an individual entry, acting as a
 container for meta data and data associated with the entry. This
 element can appear as a child of the "AtomFeed" element, or it can
 appear as the document (i.e., top-level) element of a stand-alone Atom
-Entry Document.<br>
-
-<br>
+Entry Document.</p>
 
 <h3>1.3 APPClient</h3>
 
-The "APPClient" host object acts as a client to an APP server. It is
+<p>The "APPClient" host object acts as a client to an APP server. It is
 capable of authenticating using the given credentials and performing
-HTTP operations GET, POST, PUT and DELETE.<br>
-
-<br>
+HTTP operations GET, POST, PUT and DELETE.</p>
 
-<br>
 
 <h2>2.0 Examples</h2>
-
-<br>
-
+<p></p>
 <div class="code">
-<pre> <br> //Creating an instance of APPClient<br> var client = new 
APPClient(); <br><br> //Creating an instance of AtomFeed<br> var feed = new 
AtomFeed(); <br><br> //Setting login credentials for the client <br> 
client.credentials={username:"[EMAIL 
PROTECTED]",password:"xxx",service:"blogger",authtype:"google"};<br><br> 
//Retrieving and online feed<br> feed = 
client.getFeed("http://www.blogger.com/feeds/000/posts/full/000";); <br><br> 
//Getting an array of individual entries from the feed <br> var entries = new 
Array();<br> entries = feed.getEntries(); <br><br> //Writing the retrieved feed 
to a file <br> feed.writeTo("my-file-name.xml");<br><br></pre>
-
+<pre>
+    // Creating an instance of APPClient
+    var client = new APPClient();
+
+    // Creating an instance of AtomFeed
+    var feed = new AtomFeed();
+
+    // Setting login credentials for the client
+    client.credentials={username:"[EMAIL 
PROTECTED]",password:"xxx",service:"blogger",authtype:"google"};
+
+    // Retrieving and online feed
+    feed = client.getFeed("http://www.blogger.com/feeds/000/posts/full/000";);
+
+    // Getting an array of individual entries from the feed
+    var entries = new Array();
+    entries = feed.getEntries();
+
+    // Writing the retrieved feed to a file
+    feed.writeTo("my-file-name.xml");
+</pre>
 </div>
 
-<br>
-
+<p></p>
 <h2>3.0 References</h2>
 
 <ul>
@@ -97,7 +103,7 @@
 
 </ul>
 
-<br>
+<br />
 
 </div>
 

Modified: trunk/mashup/java/xdocs/community.html
URL: 
http://wso2.org/svn/browse/wso2/trunk/mashup/java/xdocs/community.html?rev=19715&r1=19714&r2=19715&view=diff
==============================================================================
--- trunk/mashup/java/xdocs/community.html      (original)
+++ trunk/mashup/java/xdocs/community.html      Sun Jul 20 22:59:41 2008
@@ -61,8 +61,8 @@
 
 
     
-<h3><strong>You can contribute to the WSO2 Mashup Server by joining our
-        mailing lists, forums, and also by reporting issues.</strong></h3>
+<p><strong>You can contribute to the WSO2 Mashup Server by joining our
+        mailing lists, forums, and also by reporting issues.</strong></p>
 
     <br>
 
@@ -72,7 +72,7 @@
 
 
     
-<h3>Join our mailing list and correspond with the developers directly.</h3>
+<p>Join our mailing list and correspond with the developers directly.</p>
 
     
 <ul>

Modified: trunk/mashup/java/xdocs/consumingservices.html
URL: 
http://wso2.org/svn/browse/wso2/trunk/mashup/java/xdocs/consumingservices.html?rev=19715&r1=19714&r2=19715&view=diff
==============================================================================
--- trunk/mashup/java/xdocs/consumingservices.html      (original)
+++ trunk/mashup/java/xdocs/consumingservices.html      Sun Jul 20 22:59:41 2008
@@ -264,8 +264,7 @@
     you had copied and pasted the text of the stub directly into the JavaScript
     for the service.</p>
 
-<h3 id="Automatic"><a name="_Automatic_type_conversions" 
id="_Automatic_type_conversions"></a>Automatic
-    Type Conversions</h3>
+<h3 id="Automatic">Automatic Type Conversions</h3>
 
 <p>When a service returns a value (described by one of the
     XML Schema built-in types), the stub converts that value into a native

Modified: trunk/mashup/java/xdocs/emailhostobject.html
URL: 
http://wso2.org/svn/browse/wso2/trunk/mashup/java/xdocs/emailhostobject.html?rev=19715&r1=19714&r2=19715&view=diff
==============================================================================
--- trunk/mashup/java/xdocs/emailhostobject.html        (original)
+++ trunk/mashup/java/xdocs/emailhostobject.html        Sun Jul 20 22:59:41 2008
@@ -25,7 +25,7 @@
 <div id="main-content">
 <h1>Email Host Object</h1>
 
-<h3>1.0 Introduction</h3>
+<h2>1.0 Introduction</h2>
 
 <p>The Email host object allows users to send out email from
 their
@@ -60,10 +60,10 @@
 
 </div>
 
-<h3>2.0 Email Object</h3>
+<p></p>
+<h2>2.0 Email Object</h2>
 
-<h4>2.1 Email Object Constructors
-</h4>
+<h3>2.1 Email Object Constructors</h3>
 
 <p>The Email Object has three different constructors. Choose one
 depending
@@ -156,7 +156,7 @@
 
 <br>
 
-<h4>2.2 API Documentation</h4>
+<h3>2.2 API Documentation</h3>
 
 <br>
 
@@ -363,9 +363,7 @@
 
 <br>
 
-<h3>3.0 References<br>
-
-</h3>
+<h2>3.0 References</h2>
 
 <ul>
 

Modified: trunk/mashup/java/xdocs/feedhostobject.html
URL: 
http://wso2.org/svn/browse/wso2/trunk/mashup/java/xdocs/feedhostobject.html?rev=19715&r1=19714&r2=19715&view=diff
==============================================================================
--- trunk/mashup/java/xdocs/feedhostobject.html (original)
+++ trunk/mashup/java/xdocs/feedhostobject.html Sun Jul 20 22:59:41 2008
@@ -88,7 +88,7 @@
     Server distribution.<br>
     <br>
 
-    <h3>3.0 References</h3>
+    <h2>3.0 References</h2>
 
 
     <ul>

Modified: trunk/mashup/java/xdocs/filehostobject.html
URL: 
http://wso2.org/svn/browse/wso2/trunk/mashup/java/xdocs/filehostobject.html?rev=19715&r1=19714&r2=19715&view=diff
==============================================================================
--- trunk/mashup/java/xdocs/filehostobject.html (original)
+++ trunk/mashup/java/xdocs/filehostobject.html Sun Jul 20 22:59:41 2008
@@ -25,7 +25,7 @@
 <div id="main-content">
 <h1>File Host Object</h1>
 
-<h3>1.0 Introduction</h3>
+<h2>1.0 Introduction</h2>
 
 <p>The File Host Object is a Mozilla Rhino Host Object designed for use
     in the WSO2 Mashup server environment for providing file
@@ -40,7 +40,8 @@
     <pre>var text = "Hello World!";<br/>var file = new 
File("hello.txt");<br/>if (!file.exists)<br/>    
file.createFile();<br/>file.openForWriting();<br/>file.write(text);<br/>file.close();<br/>var
 moved = file.move("backup/goodbye.txt");<br/><br/>if (moved){<br/>       var 
file2 = new File("backup/goodbye.txt");<br/>        
file2.openForReading();<br/>    print(file2.readAll());<br/>    
file2.close();<br/>     if (!file2.deleteFile())<br/>           print('Unable 
to delete file.');<br/>}</pre>
 </div>
 
-<h3>2.0 File Object</h3>
+<p></p>
+<h2>2.0 File Object</h2>
 
 <p>The File object provides basic read/write access to files in the 
{servicename}.resources
     directory.</p>
@@ -262,7 +263,8 @@
 </tbody>
 </table>
 
-<h3>References</h3>
+<p></p>
+<h2>3.0 References</h2>
 
 <ul>
     <li><a 
href="http://www.wso2.org/wiki/display/mashup/scripts+folder+structure+and+deployment";

Modified: trunk/mashup/java/xdocs/identity.html
URL: 
http://wso2.org/svn/browse/wso2/trunk/mashup/java/xdocs/identity.html?rev=19715&r1=19714&r2=19715&view=diff
==============================================================================
--- trunk/mashup/java/xdocs/identity.html       (original)
+++ trunk/mashup/java/xdocs/identity.html       Sun Jul 20 22:59:41 2008
@@ -24,8 +24,7 @@
 <body>
 
 <div id="main-content">
-<h1>Identity Management<br>
-</h1>
+<h1>Identity Management</h1>
 
 <p>The WSO2 Mashup Server utilizes the WSO2 <a
 href="http://wso2.org/project/solutions/identity/1.5/docs/";>Identity
@@ -120,8 +119,8 @@
 
 <p></p>
 
-<h3>The [Mashup Home]/lib/tomcat/webapps/ROOT/WEB-INF/web.xml file needs to
-have the keystore information updated.</h3>
+<p><strong>The [Mashup Home]/lib/tomcat/webapps/ROOT/WEB-INF/web.xml file 
needs to
+have the keystore information updated.</strong></p>
 
 <p class="Code">&lt;init-param&gt;<br>
 &nbsp;&nbsp;&lt;param-name&gt;Keystore&lt;/param-name&gt;<br>
@@ -141,8 +140,8 @@
 &lt;/init-param&gt;<br>
 </p>
 
-<h3>This change has to also be carried out in the [Mashup
-Home]/conf/axis2.xml file, by updating the values highlighted below.</h3>
+<p><strong>This change has to also be carried out in the [Mashup
+Home]/conf/axis2.xml file, by updating the values highlighted 
below.</strong></p>
 
 <p class="Code">&lt;parameter name="keystore"&gt;<br>
 &nbsp;&nbsp;&lt;wso2wsas:KeyStore

Modified: trunk/mashup/java/xdocs/imhostobject.html
URL: 
http://wso2.org/svn/browse/wso2/trunk/mashup/java/xdocs/imhostobject.html?rev=19715&r1=19714&r2=19715&view=diff
==============================================================================
--- trunk/mashup/java/xdocs/imhostobject.html   (original)
+++ trunk/mashup/java/xdocs/imhostobject.html   Sun Jul 20 22:59:41 2008
@@ -29,7 +29,7 @@
 <div id="main-content">
 <h1>IM Host Object</h1>
 
-<h3>1.0 Introduction</h3>
+<h2>1.0 Introduction</h2>
 
 <p>The IM object allows users to send out Instant Messages from
 there
@@ -64,16 +64,16 @@
 }
 </div>
 
-<h3>2.0 IM Object</h3>
+<p></p>
+<h2>2.0 IM Object</h2>
 
-<h4>2.1 IM Object Constructor
-</h4>
+<h3>2.1 IM Object Constructor</h3>
 
 <p>The IM Object which has a single constructor taken in the
 protocol to be used as an argument to it. Supported values are "msn",
 "aim", "icq", "jabber" and "yahoo".</p>
 
-<h4>2.2 IM login method</h4>
+<h3>2.2 IM login method</h3>
 
 <p>The login method of the IM object takes two different forms.
 It allows the user to specify account details in the server.xml in
@@ -164,7 +164,7 @@
 
 <br>
 
-<h4>2.2 API Documentation</h4>
+<h3>2.3 API Documentation</h3>
 
 <br>
 
@@ -236,7 +236,7 @@
 
 <br>
 
-<h3>3.0 Using the IM object in conjection with the session object</h3>
+<h2>3.0 Using the IM object in conjection with the session object</h2>
 &nbsp;&nbsp;&nbsp; <br>
 If you expect your mashup to send out IMs frequestly it may not be
 optimal to login each time you need to send a message. Such situations
@@ -271,9 +271,9 @@
 &nbsp;&nbsp;&nbsp; }<br>
 }
 </div>
-<h3>4.0 References<br>
 
-</h3>
+<p></p>
+<h2>4.0 References</h2>
 
 <ul>
 

Modified: trunk/mashup/java/xdocs/installationguide.html
URL: 
http://wso2.org/svn/browse/wso2/trunk/mashup/java/xdocs/installationguide.html?rev=19715&r1=19714&r2=19715&view=diff
==============================================================================
--- trunk/mashup/java/xdocs/installationguide.html      (original)
+++ trunk/mashup/java/xdocs/installationguide.html      Sun Jul 20 22:59:41 2008
@@ -49,6 +49,7 @@
       <li><a href="#Pre-requis1">Pre-requisites</a></li>
       <li><a href="#Setting">Setting up the Environment and Tools</a></li>
       <li><a href="#Building1">Building WSO2 Mashup Server</a></li>
+      <li><a href="#BuildingInstaller">Building the Windows Installer</a></li>
     </ul>
   </li>
 </ul>
@@ -241,7 +242,7 @@
 automatically download the dependent .jar files. Therefore, the first
 run will take more time.<br>
 </p>
-<h3>Building the Windows Installer</h3>
+<h3 id="BuildingInstaller">Building the Windows Installer</h3>
 <p>To buid the windows installer, you should first download the
 Nullsoft Scriptable Install System (NSIS) from
 http://nsis.sourceforge.net and install it in your build machine.<br>

Modified: trunk/mashup/java/xdocs/requesthostobject.html
URL: 
http://wso2.org/svn/browse/wso2/trunk/mashup/java/xdocs/requesthostobject.html?rev=19715&r1=19714&r2=19715&view=diff
==============================================================================
--- trunk/mashup/java/xdocs/requesthostobject.html      (original)
+++ trunk/mashup/java/xdocs/requesthostobject.html      Sun Jul 20 22:59:41 2008
@@ -22,7 +22,7 @@
 <body>
 <div id="main-content">
 <h1>Request Host Object</h1>
-<h3>1.0 Introduction</h3>
+<h2>1.0 Introduction</h2>
 <p>The 'request' host object provides the ability for&nbsp;users
 to get information regarding the request it received and hence it
 consists of a set of readOnly properties. The request
@@ -33,7 +33,8 @@
 <div class="code">
 <pre>function securedUsingUTOverHTTPS() {<br>    system.log("This mashup was 
invoked by the following User : " + request.authenticatedUser );<br>    
system.log("This mashup was invoked from the following IP : " + 
request.remoteIP );<br>    system.log("This mashup was invoked with the 
following URL : " + request.address );<br>}</pre>
 </div>
-<h3>2.0 Request Object</h3>
+<p></p>
+<h2>2.0 Request Object</h2>
 <h3>2.1 Request Object Interface</h3>
 <p>{<br>&nbsp; &nbsp; readonly property string address;<br>
 &nbsp;&nbsp;&nbsp;&nbsp;readonly property string remoteIP;<br>
@@ -70,7 +71,8 @@
 
 </tbody>
 </table>
-<h3>3.0 References</h3>
+<p></p>
+<h2>3.0 References</h2>
 <ul>
 <li><a href="apidocs/org/wso2/mashup/hostobjects/request/Request.html">JavaDoc
 for the request host Object</a></li>

Modified: trunk/mashup/java/xdocs/scraperhostobject.html
URL: 
http://wso2.org/svn/browse/wso2/trunk/mashup/java/xdocs/scraperhostobject.html?rev=19715&r1=19714&r2=19715&view=diff
==============================================================================
--- trunk/mashup/java/xdocs/scraperhostobject.html      (original)
+++ trunk/mashup/java/xdocs/scraperhostobject.html      Sun Jul 20 22:59:41 2008
@@ -24,7 +24,7 @@
 <div id="main-content">
     <h1>Scraper Host Object</h1>
 
-    <h3>1.0 Introduction</h3>
+    <h2>1.0 Introduction</h2>
 
     <p>The Scraper object allows data to be extracted from HTML pages and
         presented in XML format.&nbsp; It provides a bridge to data sources
@@ -36,7 +36,8 @@
         <pre>var config =<br/>    &lt;config&gt;<br/>        &lt;var-def 
name='response'&gt;<br/>            &lt;html-to-xml&gt;<br/>                
&lt;http method='get' url='http://ww2.wso2.org/~builder/'/&gt;<br/>            
&lt;/html-to-xml&gt;<br/>        &lt;/var-def&gt;<br/>    &lt;/config&gt;; 
&nbsp; <br/>var scraper = new Scraper(config);<br/>result = 
scraper.response;<br/></pre>
     </div>
 
-    <h3>2.0 Scraper Object</h3>
+    <p></p>
+    <h2>2.0 Scraper Object</h2>
 
     <p>The Scraper Object&nbsp;takes a set
         of scraping instructions in an XML language in its 
contructor.&nbsp;The scraping
@@ -68,7 +69,9 @@
             WebHarvest), use the character entity references <b>&amp;#x7B;</b> 
and <b>&amp;#x7D;</b>
             for '{' and '}' respectively.<br/></li>
     </ol>
-    <h3>3.0 References</h3>
+
+    <p></p>
+    <h2>3.0 References</h2>
 
     <ul>
         <li><a 
href="http://web-harvest.sourceforge.net/index.php";>WebHarvest</a></li>

Modified: trunk/mashup/java/xdocs/sessionhostobject.html
URL: 
http://wso2.org/svn/browse/wso2/trunk/mashup/java/xdocs/sessionhostobject.html?rev=19715&r1=19714&r2=19715&view=diff
==============================================================================
--- trunk/mashup/java/xdocs/sessionhostobject.html      (original)
+++ trunk/mashup/java/xdocs/sessionhostobject.html      Sun Jul 20 22:59:41 2008
@@ -23,7 +23,7 @@
 <body>
 <div id="main-content">
 <h1>Session Host Object</h1>
-<h3> 1.0 Introduction</h3>
+<h2> 1.0 Introduction</h2>
 <p>The 'session' host object provides the ability for the users
 to share objects across different service invocations. The session
 object is global and thus does not need to be instantiated explicitly.</p>
@@ -31,7 +31,8 @@
 <div class="code">
 <pre>this.serviceName = 
"ApplicationScopeService";<br>this.scope="application";<br>var key = 
"number";<br>function putValue(param){<br>    session.put(key,2);<br>    return 
&lt;success/&gt;;<br>}<br><br>function getValue(param){<br>    number = 
session.get(key);<br>    return 
&lt;number&gt;{number}&lt;/number&gt;;<br>}<br><br>function 
removeValue(param){<br>    number = session.remove(key);<br>    return 
&lt;success/&gt;;<br>}<br><br>function clearSession(param){<br>    
session.clear();<br>    return &lt;success/&gt;;<br>}</pre>
 </div>
-<h3>2.0 Session Object</h3>
+<p></p>
+<h2>2.0 Session Object</h2>
 <p>Session scope for a deployed mashup can be given using the
 "scope" service property annotation. Following are the set of supported
 scopes.</p>
@@ -124,8 +125,8 @@
 </tr>
 </tbody>
 </table>
-<h3><a name="SessionHostObject-3.0References"></a>3.0
-References</h3>
+<p></p>
+<h2 id="SessionHostObject-3.0References">3.0 References</h2>
 <ul>
 <li><a 
href="http://www.wso2.org/wiki/display/mashup/Javascript+Web+Service+Annotations";
 title="Javascript Web Service Annotations">Javascript Web
 Service Annotations</a> </li>

Modified: trunk/mashup/java/xdocs/systemhostobject.html
URL: 
http://wso2.org/svn/browse/wso2/trunk/mashup/java/xdocs/systemhostobject.html?rev=19715&r1=19714&r2=19715&view=diff
==============================================================================
--- trunk/mashup/java/xdocs/systemhostobject.html       (original)
+++ trunk/mashup/java/xdocs/systemhostobject.html       Sun Jul 20 22:59:41 2008
@@ -22,7 +22,7 @@
 <body>
 <div id="main-content">
 <h1>System Host Object</h1>
-<h3>1.0 Introduction</h3>
+<h2>1.0 Introduction</h2>
 <p>The 'system' host&nbsp;object provides a set of system
 specific
 utility functions.&nbsp;The system
@@ -31,7 +31,8 @@
 <div class="code">
 <pre>system.include("concatscript.js");<br>function add(first, last) {<br>    
system.log(system.localHostName);<br>    //waits for 1 second<br>    
system.wait(1000);<br>    // concat is a function in the included 
concatscript.js javascript<br>    var answer = concat(first,last);<br>    // 
Send a notification to the Desk tray specifying the answer<br>    
system.notifyMonitor("Result of concaternating" + first + " and " + last", 
answer);<br>    return answer;<br>}</pre>
 </div>
-<h3>2.0 System Object</h3>
+<p></p>
+<h2>2.0 System Object</h2>
 <h3>2.1 System Object Interface</h3>
 <p>{<br>
 &nbsp;&nbsp;&nbsp; function void include(string[]
@@ -242,7 +243,8 @@
 </tr>
 </tbody>
 </table>
-<h3>3.0 References</h3>
+<p></p>
+<h2>3.0 References</h2>
 <ul>
 <li><a 
href="apidocs/org/wso2/mashup/hostobjects/system/SystemHostObject.html">JavaDoc
 for the system host Object</a></li>

Modified: trunk/mashup/java/xdocs/wsrequesthostobject.html
URL: 
http://wso2.org/svn/browse/wso2/trunk/mashup/java/xdocs/wsrequesthostobject.html?rev=19715&r1=19714&r2=19715&view=diff
==============================================================================
--- trunk/mashup/java/xdocs/wsrequesthostobject.html    (original)
+++ trunk/mashup/java/xdocs/wsrequesthostobject.html    Sun Jul 20 22:59:41 2008
@@ -23,7 +23,7 @@
 <body>
 <div id="main-content">
 <h1>WSRequest Host Object</h1>
-<h3>1.0 Introduction</h3>
+<h2>1.0 Introduction</h2>
 <p>The WSO2 Mashup Server automatically generates stubs to
 simplify the consumption of the Web Services it hosts. But if you're
 consuming a service from somewhere else, we don't yet provide the same
@@ -39,7 +39,8 @@
 <div class="code">
 <pre>function invokeGetVersion(){<br> var version = new WSRequest();<br> var 
options = new Array();<br> options.useSOAP = 1.2;<br> options.useWSA = 1.0;<br> 
options.action = 
"http://services.mashup.wso2.org/version/ServiceInterface/getVersionRequest";;<br>
 var payload = null;<br> try {<br> 
version.open(options,"http://localhost:7762/services/system/version";, 
false);<br> version.send(payload);<br> result = version.responseE4X;<br> } 
catch (e) {<br> system.log(e.toString(),"error");<br> return e.toString(); <br> 
}<br> return result;<br>}</pre>
 </div>
-<h3>2.0 WSRequest Object</h3>
+<p></p>
+<h2>2.0 WSRequest Object</h2>
 <h3>2.1 WSRequest Interface</h3>
 <p>interface WSRequest <br clear="all">
 { <br clear="all">
@@ -218,14 +219,15 @@
 </tr>
 </tbody>
 </table>
-<h3>3.0 Example Usage<br></h3><h3>2.1 Calling Services in a asynchronous 
manner</h3>Its
+<p></p>
+<h2>3.0 Example Usage</h2>
+<h3>2.1 Calling Services in a asynchronous manner</h3>Its
 important to note that when a service is called in the manner below
 (assynchronously) the thread will return to the caller immidiatly (Even
 before the result of the web service invocation is received).
 <div class="code">
 <pre>// Demonstrates calling the getVersion operation of the version service 
in a asynchronous manner using the open method<br>function 
invokeGetVersionAsync(){<br>    var version = new WSRequest();<br>    
version.onreadystatechange = function() {<br>                                   
         handleResponse(version);<br>                                        
};<br>    var options = new Array();<br>    options.useSOAP = 1.2;<br>    
options.useWSA = 1.0;<br>    options.action = 
"http://services.mashup.wso2.org/version/ServiceInterface/getVersionRequest";;<br>
    var payload = null;<br>    try {<br>        
version.open(options,"http://localhost:7762/services/system/version";, 
true);<br>        version.send();<br>    } catch (e) {<br>        
system.log(e.toString(),"error");<br>        return e.toString();        <br>   
 }<br>    return "Invoked getVersion in a asynchronous 
manner";<br>}<br><br>handleResponse.visible=false;<br>function 
handleResponse(version){<br> if (version.readyState == 4) {<br>              
system.log(version.responseText);<br>   }<br>}</pre>
 </div>
-<h3></h3>
 <div class="code">
 <pre>// Demonstrates calling the getVersion operation of the version service 
in a asynchronous manner using the openWSDL method<br>function 
invokeGetVersionAsync(){<br>    var request = new WSRequest();<br>    
request.onreadystatechange = function() {<br>                                   
             handleResponse(request);<br>                                       
 };<br>    
request.openWSDL("http://localhost:7762/services/system/version?wsdl",true);<br>
    request.send("getVersion",null);<br>    return "Invoked getVersion in a 
asynchronous manner";<br>}<br><br>handleResponse.visible=false;<br>function 
handleResponse(version){<br>      if (version.readyState == 4) {<br>            
  system.log(version.responseText);<br>   }<br>}</pre>
 </div>
@@ -236,9 +238,10 @@
 <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>
 </div>
-<h3></h3>See <a 
href="http://www.wso2.org/wiki/display/mashup/Ideas+for+evolving+WSRequest"; 
title="Ideas for evolving WSRequest">Ideas for evolving
+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.
-<h3>4.0 References</h3>
+<p></p>
+<h2>4.0 References</h2>
 <ul>
 <li><a href="http://www.wso2.org/wiki/display/mashup/WebServiceError"; 
title="WebServiceError">WebServiceError</a> </li>
 <li><span class="nobr"><a 
href="http://www.wso2.org/wiki/pages/createpage.action?spaceKey=mashup&amp;title=wsrequest_specification&amp;linkCreation=true&amp;fromPageId=888";
 title="Create Page: wsrequest_specification" 
class="createlink">wsrequest_specification</a></span></li>

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

Reply via email to