Author: keith
Date: Sat Jan 26 23:41:19 2008
New Revision: 12988

Log:

Updating the details



Modified:
   trunk/mashup/java/xdocs/helloworldclient.html

Modified: trunk/mashup/java/xdocs/helloworldclient.html
==============================================================================
--- trunk/mashup/java/xdocs/helloworldclient.html       (original)
+++ trunk/mashup/java/xdocs/helloworldclient.html       Sat Jan 26 23:41:19 2008
@@ -1,61 +1,59 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
 <html>
 <head>
-    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
-    <title></title>
-    <link href="styles.css" rel="stylesheet" type="text/css" media="all">
+
+    
+  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
+
+    
+    
+  <title></title>
+  <link href="styles.css" rel="stylesheet" type="text/css" media="all">
 </head>
 
 <body>
 
+
 <div id="main-content">
-    <h1>Writing a Hello World Client</h1>
+    
+<h1>Writing a Hello World Client</h1>
 
-    <p>The Mashup Server supports the quick and easy creation of Web services
-        clients written in HTML and JavaScript. You can use the <a
-            href="generatedresources.html#stub">javascript stubs(?stub)</a> 
generated by
+
+    
+<p>The Mashup Server supports the quick and easy creation of Web services
+        clients written in HTML and JavaScript. You can use the <a 
href="generatedresources.html#stub">javascript stubs(?stub)</a> generated by
         the Mashup Server to invoke the mashup services from your web page.</p>
 
-    <p>Mashup server also has the concept of bundling a custom UI along with 
the
+
+    
+<p>Mashup server also has the concept of bundling a custom UI along with the
         service. Follow these simple steps to write &amp; expose a simple 
client for
-        the <a href="helloworldservice.html">helloworld service</a>:</p>
+        the <a href="helloworldservice.html">helloworld service</a> (Assuming 
the author of the helloworld service is bob):</p>
 
-    <h2>Step 1:</h2>
 
-    <p>In Notepad or your favorite html editor, type the following text:</p>
-<pre class="Code">&lt;html&gt;
-    &lt;head&gt;
-        &lt;META http-equiv="Content-Type" content="text/html; 
charset=UTF-8"&gt;
-        &lt;title&gt;Hello World Client&lt;/title&gt;
-        &lt;script type="text/javascript" 
src="/js/wso2/WSRequest.js"&gt;&lt;/script&gt;
-        &lt;script type="text/javascript" 
src="../helloworld?stub"&gt;&lt;/script&gt;
-    &lt;/head&gt;
-    &lt;body&gt;
-        &lt;p&gt;  
-            &lt;script&gt;
-                &lt;!-- set the address to match the scheme of the page 
address --&gt;
-                    helloworld.setAddress(helloworld.endpoint, 
"/services/helloworld");
-                &lt;!-- use the generated stub to call the mashup service 
--&gt;
-                    var response = helloworld.hello("&lt;test/&gt;");
-                &lt;!-- write the response by converting to a string 
(browser-independent) --&gt;
-                document.write(WSRequest.util._serializeToString(response));
-            &lt;/script&gt; 
-        &lt;/p&gt;   
-    &lt;/body&gt;
-&lt;/html&gt;</pre>
+    
+<h2>Step 1:</h2>
 
-    <h2>Step 2:</h2>
 
-    <p>Save the above as "index.html" in the directory
-        "scripts/helloworld.resources/www" within the Mashup Server directory. 
Now
-        you'll be able to see the newly created page when browse to the service
-        endpoint (eg: http://localhost:7762/services/helloworld).</p>
+    
+<p>In Notepad or your favorite html editor, type the following text:</p>
 
-    <p>You can also host this page independently of the mashup server by using
-        the absolute path to the imported scripts as follows.</p>
-<pre class="Code">        &lt;script type="text/javascript" 
src="http://<i>yourip</i>:7762/js/wso2/WSRequest.js"&gt;&lt;/script&gt;
-        &lt;script type="text/javascript" 
src="http://<i>yourip</i>:7762/services/helloworld?stub"&gt;&lt;/script&gt;</pre>
+<pre class="Code">&lt;html&gt;<br>    &lt;head&gt;<br>        &lt;META 
http-equiv="Content-Type" content="text/html; charset=UTF-8"&gt;<br>        
&lt;title&gt;Hello World Client&lt;/title&gt;<br>        &lt;script 
type="text/javascript" src="/js/wso2/WSRequest.js"&gt;&lt;/script&gt;<br>       
 &lt;script type="text/javascript" 
src="/services/bob/helloworld?stub"&gt;&lt;/script&gt;<br>    &lt;/head&gt;<br> 
   &lt;body&gt;<br>        &lt;p&gt;  <br>            &lt;script&gt;<br>        
        &lt;!-- use the generated stub to call the mashup service --&gt;<br>    
                var response = helloworld.hello();<br>                &lt;!-- 
write the response to the browser --&gt;<br>                
document.write(response);<br>            &lt;/script&gt; <br>        &lt;/p&gt; 
  <br>    &lt;/body&gt;<br>&lt;/html&gt;</pre>
 
+
+    
+<h2>Step 2:</h2>
+
+
+    
+<p>Save the above as "index.html" in the directory
+        "scripts/bob/helloworld.resources/www" within the Mashup Server 
directory. Now
+        you'll be able to see the newly created page when browse to the service
+        endpoint (eg: http://localhost:7762/services/bob/helloworld).</p>
+<p>Thats it, its so simple.</p>
+<p></p>
 </div>
-<p>&copy; WSO2 Inc.</p>
+<p>© WSO2 Inc.</p>
+
 </body>
 </html>

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

Reply via email to