summaryrefslogtreecommitdiff
path: root/demos/soap/protected/pages/Home.page
blob: f0811b30f791e1f2615553f453c3933a7c24e953 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" >

<head>
<meta http-equiv="Expires" content="Fri, Jan 01 1900 00:00:00 GMT"/>
<meta http-equiv="Pragma" content="no-cache"/>
<meta http-equiv="Cache-Control" content="no-cache"/>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta http-equiv="content-language" content="en"/>
<title>TSoapService Demo</title>
</head>

<body>

<h1>TSoapService Demo</h1>
<p>
This demo shows basic usage of TSoapService which provides integrated
SOAP service for PRADO applications.
</p>
<p>
The demo includes both a SOAP server and a client (this page).
The SOAP server supports two operations which are provided by <tt>SimpleService</tt> class:
</p>
<ul>
<li><tt>highlight()</tt>: takes a string and returns the highlighted version.</li>
<li><tt>add()</tt>: takes two numbers and returns the addition of them.</li>
</ul>
<p>
For more details about the server, see its 
<a href="<%=$this->Request->AbsoluteApplicationUrl.'?soap=calculator.wsdl'%>">WSDL specification</a>.
</p>

<com:TForm>
<h2>SOAP Calculator</h2>
<com:TTextBox ID="Number1" Columns="3"/> + 
<com:TTextBox ID="Number2" Columns="3"/> = 
<com:TTextBox ID="AdditionResult" ReadOnly="true" Columns="3" /> 
<com:TButton Text="Compute" OnClick="computeButtonClicked"/>

<h2>Source Code Highlighter</h2>
<p>
Click on the button below to show the highlighted source code of
this page class:
</p>
<com:TButton Text="Highlight" OnClick="highlightButtonClicked"/>
<br/>
<div style="background:lightyellow">
<com:TLiteral ID="HighlightResult" />
</div>

</com:TForm>
</body>
</html>