logo       


CVS: phpwiki SOAP.php,NONE,1.1 PhpWiki.wdsl,NONE,1.1 index.php,1.127,1.128: msg#00186

Subject: CVS: phpwiki SOAP.php,NONE,1.1 PhpWiki.wdsl,NONE,1.1 index.php,1.127,1.128
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


Ruby Jobs
Java Jobs
Jobs in California
more...
what
job title, keywords
where
city, state, zip
jobs by job search
Search:
Java, servers, webhosting, windows, cisco ...
more...
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
encryption.gpg....    ietf.rfc822/199...    freebsd.devel.i...    lang.haskell.li...    mail.squirrelma...    web.zope.plone....    yellowdog.gener...    text.xml.xalan....    recreation.phot...    kde.devel.educa...    hardware.bus.ca...    printing.ghosts...    voip.peering/20...    assembly/2006-0...    org.user-groups...    culture.interne...    network.i2p/200...    boot-loaders.ya...    xfree86.render/...    qnx.openqnx.dev...    jakarta.velocit...    user-groups.pal...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe