<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>Jaggery - Delicious Javascript</title>
    <meta name="description" content="">
    <meta name="author" content="">

    <!-- Le HTML5 shim, for IE6-8 support of HTML elements -->
    <!--[if lt IE 9]>
    <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->

    <!-- Le styles -->
    <link href="../css/bootstrap.css" rel="stylesheet">
    <style type="text/css">
        body {
            padding-top: 60px;
        }
    </style>
    <link href="../css/prettify.css" rel="stylesheet">
    <!-- Le fav and touch icons -->
    <link rel="shortcut icon" href="../images/favicon.ico">
    <link rel="apple-touch-icon" href="../images/apple-touch-icon.png">
    <link rel="apple-touch-icon" sizes="72x72"
          href="../images/apple-touch-icon-72x72.png">
    <link rel="apple-touch-icon" sizes="114x114"
          href="../images/apple-touch-icon-114x114.png">
</head>

<body>

<%
    include('/includes/topnavi.jag');
%>

<div class="container-fluid" style="width: 960px; margin: auto;">
<div class="row">
    <div class="span16">
        <div class="page-header">
            <h1>
                Documentation
                <small>API documentation for Jaggery.js</small>
            </h1>
        </div>
    </div>
</div>

<div class="row">
<div class="span4">
    <div class="well">
        <%
        include('/includes/navi.jag');
%>

    </div>

</div>
<div class="span12">
<div class="content" id="stub" name="stub">
<h3>WSStub</h3>

            <pre class="prettyprint linenums">
&lt%
var ws = require('ws');
var stub = new ws.WSStub('http://stratoslive.wso2.com/services/Version?wsdl');
var getVersion = stub.services['Version'].operations['getVersion'];

print(getVersion.request(null));
%&gt
</pre>
<%
var wsCode = '&lt%'
+ '\n var ws = require(\'ws\');'
+ '\n var stub = new ws.WSStub(\'http://stratoslive.wso2.com/services/Version?wsdl\');'
+ '\n var getVersion = stub.services[\'Version\'].operations[\'getVersion\'];'
+ '\n'
+ '\n print(getVersion.request(null));'
+ '\n %&gt';

var codeSnip = encodeURIComponent(wsCode)
var urlString = '../tryitframe.jag?code='+codeSnip;

include('/includes/tryit_but.jag');
%>

<div id="pageLinks">
                <a class="navilink" href="#overview">Overview</a>
                <a class="navilink" href="#members">Members</a>
                <a class="navilink" href="#operations">Operations</a>
                </div>
                 <section id="overview">


                <h4>Overview</h4>
                <p class="description"><code>WSStub</code> provides a web service client from a given WSDL</p>

                </section>
 <section id="members">
     <h4>Members</h4>
<table class="clsStd member-table">

<tbody>

<tr>

    <th>Member</th>
    <th>Type</th>
    <th>Description</th>

</tr>

<tr>

    <td><code>services</code>
    </td>
     <td>Array</td>
    <td><pre class="prettyprint">
var versionService = stub.services['Version'];
    </pre>
Provides the set of services defined in a given WSDL
     </td>

</tr>
<tr>

    <td><code>operations</code>
    </td>
     <td>Array</td>
    <td><pre class="prettyprint">
var getVersion = stub.services['Version'].operations['getVersion']
    </pre>
A member of a given service
     </td>

</tr>


</tbody>
</table>
                </section>
<section id="operations">
    <h4>Operations</h4>

    <table class="clsStd operations-table">
    <tbody>
    <tr>
        <th>Operation</th>
        <th>Returns</th>
        <th>Description</th>
    </tr>
    <tr>

    <td><code>request()</code></td>
    <td>String</td>
    <td>
        <td><pre class="prettyprint">
var getVersion = stub.services['Version'].operations['getVersion'];
print(getVersion.request(null));
     </pre>
     <code>request()</code> is a part of the operations for a given service.
    </tr>
    </tbody>

    </table>

</section>
                

</div>
<!-- /stub div -->
<br>
<br>
</div>

</div>
<%
include('/includes/footer.jag');
%>

</div>

<!-- /container -->
<%
include('/includes/scripts.jag')
%>

	<script>	
		
		$(document).ready(function(){
        $('#wsstub').toggleClass('active')
		$('#docs').addClass('active')
        })
	</script>
</body>
</html>