From 97dddf3cf23f7d2829d23efb9d44b746ac7d52cc Mon Sep 17 00:00:00 2001
From: knut <>
Date: Thu, 6 Jul 2006 19:45:32 +0000
Subject: Added a TSoapService prototype with a simple demo app
---
demos/soap/protected/pages/Home.page | 20 ++++++++++++++++
demos/soap/protected/pages/Home.php | 44 ++++++++++++++++++++++++++++++++++++
2 files changed, 64 insertions(+)
create mode 100644 demos/soap/protected/pages/Home.page
create mode 100644 demos/soap/protected/pages/Home.php
(limited to 'demos/soap/protected/pages')
diff --git a/demos/soap/protected/pages/Home.page b/demos/soap/protected/pages/Home.page
new file mode 100644
index 00000000..732022e9
--- /dev/null
+++ b/demos/soap/protected/pages/Home.page
@@ -0,0 +1,20 @@
+
+
+ TSoapService Demo
+
+
+TSoapService Demo
+Welcome to the TSoapService demo. See service description.
+
+
+Soap Calculator
+ + =
+
+Highlight source code
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/demos/soap/protected/pages/Home.php b/demos/soap/protected/pages/Home.php
new file mode 100644
index 00000000..98fbe6c6
--- /dev/null
+++ b/demos/soap/protected/pages/Home.php
@@ -0,0 +1,44 @@
+_client = new SoapClient($wsdl, array('soap_version' => SOAP_1_1,
+ //'use' => '',
+ // 'style' => ''));
+
+ // TODO: use classmap
+ $this->_client = new SoapClient(null, array('location' => $location, 'uri' => 'urn:SimpleService', 'soap_version' => SOAP_1_2));
+ }
+
+ public function onCompute($sender, $param) {
+ $a = $this->a->Text;
+ $b = $this->b->Text;
+
+ try {
+ $result = $this->_client->add($a, $b);
+ } catch(SoapFault $e) { // TODO: Prado wrapper for SoapFault (TSoapFaultException)
+ print $e;
+ }
+ //var_dump($result);
+ $this->result->Text = $result;
+ }
+
+ public function onHighlight($sender, $param) {
+ try {
+ $result = $this->_client->__soapCall('highlight', array(file_get_contents(__FILE__)));
+ } catch(SoapFault $e) { // TODO: Prado wrapper for SoapFault (TSoapFaultException)
+ print $e;
+ }
+ $this->SourceCode->Text = $result;
+ }
+
+}
+
+?>
\ No newline at end of file
--
cgit v1.2.3