Author: keith
Date: Sat Jan 26 23:48:15 2008
New Revision: 12990

Log:

Removing reduntant doc section



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

Modified: trunk/mashup/java/xdocs/generatedresources.html
==============================================================================
--- trunk/mashup/java/xdocs/generatedresources.html     (original)
+++ trunk/mashup/java/xdocs/generatedresources.html     Sat Jan 26 23:48:15 2008
@@ -3,66 +3,84 @@
 <head>
 
 
+
     
   
+  
   <meta http-equiv="content-type" content="">
 
 
+
     
     
   
   
+  
+  
   <title>Automatically Generated Resources</title>
   <link href="styles.css" rel="stylesheet" type="text/css" media="all">
 </head>
 
 
 <body>
+
 <h2>&nbsp; &nbsp; &nbsp; &nbsp;Automatically Generated Resources
 </h2>
+
 <div id="main-content">
 
 <p></p>
 
 
 
+
 <p><strong>Table of Contents</strong></p>
 
 
 
+
 <div class="toc">
     
 <ul>
 
 
+
         <li><a href="#WSDL">WSDL (?wsdl2, ?wsdl)</a></li>
 
 
+
         <li><a href="#Schema">XML Schema (?xsd)</a></li>
 
 
+
         <li><a href="#JavaScript">JavaScript Stubs (?stub)</a></li>
 
 
+
         <li><a href="#Try-it">Try-it (?tryit)</a></li>
 
 
+
         <li><a href="#Documentat">API Documentation (?doc)</a></li>
 
 
+
         <li><a href="#Source">Source Code (?source)</a></li>
 
 
+
     
 </ul>
 
 
+
 </div>
 
 
 
 
 
+
 <p>Just by virtue of deploying the service, the WSO2 mashup
     server generates
     a number of descriptive artifacts and tools to make it easy to consume
@@ -79,112 +97,147 @@
 
 
 
+
 <table class="MsoTableGrid" style="margin-left: 0.5in; border-collapse: 
collapse;" border="1" cellpadding="5" cellspacing="0">
 
 
+
     <caption></caption>
     <tbody>
 
 
+
         <tr>
 
 
+
             <td>?wsdl2</td>
 
 
+
             <td>WSDL 2.0 description of the service</td>
 
 
+
         </tr>
 
 
+
         <tr>
 
 
+
             <td>?wsdl</td>
 
 
+
             <td>WSDL 1.1 description of the service</td>
 
 
+
         </tr>
 
 
+
         <tr>
 
 
+
             <td>?xsd</td>
 
 
+
             <td>XML Schema description of the service</td>
 
 
+
         </tr>
 
 
+
         <tr>
 
 
+
             <td>?stub</td>
 
 
+
             <td>JavaScript or E4X stub for accessing the service</td>
 
 
+
         </tr>
 
 
+
         <tr>
 
 
+
             <td>?tryit</td>
 
 
+
             <td>Ajax client for simple, generic interactions with the 
service</td>
 
 
+
         </tr>
 
 
+
         <tr>
 
 
+
             <td>?source</td>
 
 
+
             <td>The JavaScript source code for the service</td>
 
 
+
         </tr>
 
 
+
         <tr>
 
 
+
             <td>?doc</td>
 
 
+
             <td>Documentation for the service</td>
 
 
+
         </tr>
 
 
+
     
   
+  
   </tbody>
 </table>
 
 
 
+
 <p></p>
 
 
 
+
 <h2 id="WSDL">WSDL (?wsdl2, ?wsdl)</h2>
 
 
 
+
 <p>By appending '?wsdl2' to the endpoint URI, you can retrieve an
     automatically-generated WSDL 2.0 document describing the service. For the
     helloworld service, try <a 
href="http://localhost:9762/service/helloworld?wsdl2";>http://localhost:7762/service/bob/helloworld?wsdl2</a>
 (Assuming bob is the author of helloworld).
@@ -197,46 +250,58 @@
     are:</p>
 
 
+
 <ol>
 
 
+
     <li>SOAP 1.2 over HTTP</li>
 
 
+
     <li>SOAP 1.1 over HTTP</li>
 
 
+
     <li>Plain old XML/REST over HTTP</li>
 
 
+
     <li>SOAP 1.2 over HTTPS</li>
 
 
+
     <li>SOAP 1.1 over HTTPS</li>
 
 
+
     <li>Plain old XML/REST over HTTPS</li>
 
 
+
 </ol>
 
 
 
+
 <p>One can also get a WSDL 1.1 description of the service by appending
     '?wsdl' to the endpoint URI. For the helloworld service, try <a 
href="http://localhost:9762/service/helloworld?wsdl";>http://localhost:7762/service/bob/helloworld?wsdl</a>.
 </p>
 
 
 
+
 <p>For more information on precisely how the Mashup Server generates WSDL,
     see <a href="annotations.html">JavaScript Annotations</a>.</p>
 
 
 
+
 <h2 id="Schema">XML Schema (?xsd)</h2>
 
 
 
+
 <p>Although accessing '?wsdl' or '?wsdl2' gives you a service description
     that includes an XML Schema description of the XML structure, you can also
     ask for the XML Schema separately using the '?xsd' option. For the
@@ -245,10 +310,12 @@
 
 
 
+
 <h2 id="JavaScript">JavaScript Stubs (?stub)</h2>
 
 
 
+
 <p>Most Web Service toolkits can successfully use the WSDL description to
     provide a nice programming model for accessing the service. For instance,
     WSO2 Web Services Application Server (WSAS) provides a utility wsdl2java
@@ -257,6 +324,7 @@
 
 
 
+
 <p>Similarly, the Mashup Server provides a tool for interacting with a
     service in a manner friendly to JavaScript programmers. The '?stub' option
     returns a JavaScript file that can be included in a Web page or another
@@ -264,28 +332,15 @@
     example, if a web page is to interact with the hello world service, you 
only
     have to include the stub and you can use the WSRequest object -- available
     natively in the Mashup Server, or a simple version in native JavaScript 
(shown
-    below) -- to call the Web service simply and naturally.</p>
-
-
-
-<p></p>
-
-
-
-<pre class="Code">&lt;html&gt;<br>    &lt;head&gt;<br>        
&lt;title&gt;Simple Client for the helloworld service&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>    <br>        
&lt;script type="text/javascript"&gt;<br>    <br>            function 
callhelloworld() {<br>                try {<br>                    
helloworldReturn = helloworld.hello();<br>                } catch (e) {<br>     
               alert(e)<br>                }<br>                
alert(helloworldReturn);<br>            }<br>        &lt;/script&gt;<br>    
&lt;/head&gt;<br>    &lt;body&gt;<br>        &lt;input type="button" value="say 
hello" onclick="callhelloworld()"&gt;&lt;/input&gt;<br>    
&lt;/body&gt;<br>&lt;/html&gt;<br></pre>
-
-
-
-<p></p>
-
-
-
-<p>The '?stub' option further more accepts additional parameters:</p>
+    below) -- to call the Web service simply and naturally. Please refer <a 
href="helloworldclient.html">Writing a Helloworld client</a> for further 
details.</p>
+<br>
+The '?stub' option further more accepts additional parameters:
 
 
 <ul>
 
 
+
     <li><b>lang</b>: Whether the stub should use native E4X XML datatypes, or
         use DOM to represent XML. The value 'e4x' indicates that native E4X
         datatypes should be used, the values 'js', 'ecmascript', and 
'javascript'
@@ -294,35 +349,42 @@
     </li>
 
 
+
     <li><b>service</b>: When a WSDL 2.0 document from which the stub is
         generated contains more than one &lt;service&gt; element, this 
parameter
         can be used to select which service to build a stub for. By default the
         first &lt;service&gt; is used. When writing services in JavaScript, 
each
         file corresponds to a single service.</li>
 
+
   <li><span style="font-weight: bold;">localhost</span>: When set to
 true returns a stub that has the endpoint reference as localhost
 instead of using an IP. Optimum for a Mashup hosted on this server
 (especially for including).</li>
 
 
+
 </ul>
 
 
 
+
 <p>For more information on using stubs, especially on using them
     asynchronously, see <a href="consumingservices.html">Using Stubs</a>.</p>
 
 
 
+
 <p></p>
 
 
 
+
 <h2 id="Try-it">Try-it (?tryit)</h2>
 
 
 
+
 <p>The first thing you might want to do with your new service is try it out.
     The '?tryit' option provides a quick and easy way to exercise the service
     right out of the box. The try-it window for a service might look something
@@ -330,10 +392,12 @@
 
 
 
+
 <p><img src="images/storexml_tryit.png" title="Try the Service"></p>
 
 
 
+
 <p>You can choose the operation you'd like to invoke from the list on the
     left hand side, fill in the necessary parameters, and invoke the operation 
to
     view the result. If you need more typing space (for instance, the parameter
@@ -342,17 +406,21 @@
 
 
 
+
 <p>A few notes about the Try-it page:</p>
 
 
+
 <ul>
 
 
+
     <li>The documentation from the documentation annotation is displayed, and
         good documentation makes the try-it much nicer to use. I hope this
         encourages you to use the available documentation facilities!</li>
 
 
+
     <li>The input fields for the parameters initially show the XML Schema type
         of data that's expected. 'anyType' means an XML element. Note that you
         are responsible for keeping the XML for these types of services
@@ -360,12 +428,14 @@
     </li>
 
 
+
     <li>The try-it page is a full Ajax client and interacts with the service
         just as any other client would, so it's a good way to verify that a
         service not only works, but is reachable by the clients.
     </li>
 
 
+
     <li>The try-it page can dynamically switch between the available endpoints
         using the expand to change link. You can choose an appropriate 
endpoint,
         manually edit the endpoint address if necessary (e.g., to redirect
@@ -377,6 +447,7 @@
     </li>
 
 
+
     <li>The try-it page is fully asynchronous, so it doesn't block while a Web
         service is being invoked. You could invoke several operations before 
one
         of them completes (though it doesn't have a way to see the results of 
the
@@ -384,41 +455,50 @@
     </li>
 
 
+
 </ul>
 
 
 
+
 <p>Feel free to take the Try-it as the basis for a custom Ajax-style Web
     application to interact with your service. You'll find the source code 
quite
     minimal.</p>
 
 
 
+
 <h2 id="Documentat">API Documentation (?doc)</h2>
 
 
 
+
 <p>The documentation for a service, as defined in by the <a 
href="annotations.html#documentat">'documentation' annotations</a>, can be
     accessed with the '?doc' query. The returned HTML format is intended for 
reference,
     printout, etc.</p>
 
 
 
+
 <h2 id="Source">Source Code (?source)</h2>
 
 
 
+
 <p>The source code for a service can be accessed through the '?source'
     option. By default, the source code is available for each service, but in
     a future release, we will allow you to prevent others from viewing, 
copying,
     adapting, or even fixing your code with an option in the administrative 
console.</p>
 
 
+
 </div>
 
 
+
 <p>� WSO2 Inc.</p>
 
 
+
 </body>
 </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:48:15 2008
@@ -29,6 +29,7 @@
 <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> (Assuming 
the author of the helloworld service is bob):</p>
+<p>Note: The Mashup server should be running the helloworld service for this 
to work.</p>
 
 
     

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

Reply via email to