<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE xsl:stylesheet [
<!ENTITY nbsp " ">
<!ENTITY copy "©">
<!ENTITY reg "®">
<!ENTITY trade "™">
<!ENTITY mdash "—">
<!ENTITY ldquo "“">
<!ENTITY rdquo "”">
<!ENTITY pound "£">
<!ENTITY yen "¥">
<!ENTITY euro "€">
]>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" encoding="iso-8859-1" omit-xml-declaration="yes"/>
<xsl:template match="/">
<div style="padding: 0 10px 0 10px;">
<form method="post" action="">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>Enter your firstname into the text box below. Then select the output method you would like to see returned</td>
</tr>
<tr>
<td>What is your first name? <input type="text" name="firstname" id="firstname" />
<input type="hidden" name="action" id="modulename" value="{concat($PHRITZ_URL,'/Test/TestModule/TestResponse')}"/></td>
</tr>
<tr>
<td><select name="output" onChange="loadModule();" id="outputmethod">
<option value="ajax" selected="selected">AJAX</option>
<option value="soap">SOAP</option>
<option value="rpc">RPC</option>
<option value="wap">WAP</option>
</select></td>
</tr>
<tr>
<td><input type="button" value="Get Content" onClick="loadModule();"/></td>
</tr>
<tr>
<td id="response_mesasge"> </td>
</tr>
</table>
</form>
<p>The following table cells display the server response after receiving a request in a number of different formats. Each of the XML protocols that are received can be processed by the requesting client. For example, a javascript client requesting Ajax upon receiving the XML response would check for a fault element to determine if an error or exception was caught. If not, the RESPONSE element contains all of the data returned by the server.</p>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td width="50%" valign="top"><table border="1" cellpadding="0" cellspacing="0" width="100%" style="height: 100%;">
<tr>
<th>Request</th>
</tr>
<tr>
<td style="height: 100%;"><div id="request_cell" style="height: 300px; overflow: auto;"></div></td>
</tr>
</table></td>
<td width="50%" valign="top"><table border="1" cellpadding="0" cellspacing="0" width="100%" style="height: 100%;">
<tr>
<th>Response</th>
</tr>
<tr>
<td style="height: 100%;"><div id="response_cell" style="height: 300px; overflow: auto;"></div></td>
</tr></table></td>
</tr>
<tr>
<td colspan="2"><table border="1" cellpadding="0" cellspacing="0" width="100%">
<tr>
<th>WSDL</th>
</tr>
<tr>
<td><div id="wsdl" style="height: 200px; overflow: auto;"></div></td>
</tr>
</table></td>
</tr>
</table>
</div>
</xsl:template>
</xsl:stylesheet>
|