Update of /cvsroot/phpwiki/phpwiki
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23134
Modified Files:
index.php
Added Files:
SOAP.php PhpWiki.wdsl
Log Message:
And this is the SOAP server. Just a view methods for now. (page content)
I would like to see common-wiki soap wdsl.
"SOAP is a bloated, over engineered mess of a perfectly trivial concept. Sigh."
-- http://www.wlug.org.nz/SOAP
--- NEW FILE: SOAP.php ---
<?php
/* Taken from http://www.wlug.org.nz/archive/
*/
define ("WIKI_SOAP", "true");
require_once('lib/prepend.php');
include_once("index.php");
//require_once('lib/stdlib.php');
require_once('lib/nusoap/nusoap.php');
require_once('lib/WikiDB.php');
require_once('lib/config.php');
$server = new soap_server;
$server->register('getPage');
function getPage($pagename) {
$dbi = WikiDB::open($GLOBALS['DBParams']);
$page = $dbi->getPage($pagename);
$rev = $page->getCurrentRevision();
$text = $rev->getPackedContent();
return $text;
}
$server->service($GLOBALS['HTTP_RAW_POST_DATA']);
// (c-file-style: "gnu")
// Local Variables:
// mode: php
// tab-width: 8
// c-basic-offset: 4
// c-hanging-comment-ender-p: nil
// indent-tabs-mode: nil
// End:
?>
--- NEW FILE: PhpWiki.wdsl ---
<?xml version="1.0" encoding="UTF-8" ?>
<definitions name="Wiki"
targetNamespace="http://phpwiki.sourceforge.net/phpwiki/PhpWiki.wsdl"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:tns="http://phpwiki.sourceforge.net/phpwiki/PhpWiki.wsdl"
xmlns:xsd="http://www.w3.org/1999/XMLSchema"
xmlns="http://schemas.xmlsoap.org/wsdl/"
>
<message name="getPageRequest">
<part name="page" type="xsd:string"/>
</message>
<message name="getPageResponse">
<part name="pageData" type="xsd:string"/>
</message>
<portType name="wikiPortType">
<operation name="getPage">
<input message="tns:getPageRequest"/>
<output message="tns:getPageResponse"/>
</operation>
</portType>
<binding name="wikiBinding" type="tns:wikiPortType">
<soap:binding style="rpc"
transport="http://schemas.xmlsoap.org/soap/http" />
<operation name="getPage">
<soap:operation
soapAction="http://phpwiki.sourceforge.net/phpwiki/SOAP.php"/>
<input>
<soap:body use="encoded"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</input>
<output>
<soap:body use="encoded"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</output>
</operation>
</binding>
<service name="wikiService">
<port name="wikiPortType" binding="tns:wikiBinding">
<soap:address
location="http://phpwiki.sourceforge.net/phpwiki/SOAP.php" />
</port>
</service>
</definitions>
Index: index.php
===================================================================
RCS file: /cvsroot/phpwiki/phpwiki/index.php,v
retrieving revision 1.127
retrieving revision 1.128
diff -u -2 -b -p -d -r1.127 -r1.128
--- index.php 28 Feb 2004 21:18:29 -0000 1.127
+++ index.php 29 Feb 2004 02:06:05 -0000 1.128
@@ -897,4 +897,6 @@ if (!defined('AUTHORPAGE_URL')) define('
//if (!defined('DISABLE_HTTP_REDIRECT')) define ('DISABLE_HTTP_REDIRECT',
true);
+if (defined('WIKI_SOAP')) and WIKI_SOAP) return;
+
////////////////////////////////////////////////////////////////
// PrettyWiki
@@ -932,4 +934,11 @@ if (defined('VIRTUAL_PATH') and defined(
// $Log$
+// Revision 1.128 2004/02/29 02:06:05 rurban
+// And this is the SOAP server. Just a view methods for now. (page content)
+// I would like to see common-wiki soap wdsl.
+//
+// "SOAP is a bloated, over engineered mess of a perfectly trivial concept.
Sigh."
+// -- http://www.wlug.org.nz/SOAP
+//
// Revision 1.127 2004/02/28 21:18:29 rurban
// new SQL auth_create, don't ever use REPLACE sql calls!
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
|
|