Add SOAP read only API. API still unstable, might add limitations on number
[lhc/web/wiklou.git] / soap / client.php
1 <?php
2
3 require_once('nusoap.php');
4
5 $t = 'Hello, World!';
6
7 $s = new soapclient( 'http://localhost:80/soap/' );
8 print "==echoString==\n";
9 $r = $s->call( 'echoString', array( $t ) );
10
11 print( $r . "\n" );
12 print( "Error: ".$s->getError() . "\n" );
13
14 print "\n\n==getArticle==\n";
15 $r = $s->call( 'getArticle', array( 'Frankfurt' ) );
16
17 print_r( $r );
18 print( "Error: ".$s->getError() . "\n" );
19
20 print "\n\n==getArticleByVersion==\n";
21 $r = $s->call( 'getArticleByVersion', array( 'Frankfurt am Main', 0 ) );
22
23 print_r( $r );
24 print( "Error: ".$s->getError() . "\n" );
25
26 print "\n\n==getArticleRevisions==\n";
27 $r = $s->call( 'getArticleRevisions', array( 'Frankfurt am Main' ) );
28
29 print_r( $r );
30 print( "Error: ".$s->getError() . "\n" );
31
32 print "\n\n==searchTitles==\n";
33 $r = $s->call( 'searchTitles', array( 'furt', 1 ) );
34
35 print_r( $r );
36 print( "Error: ".$s->getError() . "\n" );
37
38 ?>
39