Phpdoc comments
[mediawiki.git] / soap / client.php
blob2efa4cb3b6460b1d3ba7ce09907afe047e9baed8
1 <?php
3 require_once('nusoap.php');
5 $t = 'Hello, World!';
7 $s = new soapclient( 'http://localhost:80/soap/' );
8 print "==echoString==\n";
9 $r = $s->call( 'echoString', array( $t ) );
11 print( $r . "\n" );
12 print( "Error: ".$s->getError() . "\n" );
14 print "\n\n==getArticle==\n";
15 $r = $s->call( 'getArticle', array( 'Frankfurt' ) );
17 print_r( $r );
18 print( "Error: ".$s->getError() . "\n" );
20 print "\n\n==getArticleByVersion==\n";
21 $r = $s->call( 'getArticleByVersion', array( 'Frankfurt am Main', 0 ) );
23 print_r( $r );
24 print( "Error: ".$s->getError() . "\n" );
26 print "\n\n==getArticleRevisions==\n";
27 $r = $s->call( 'getArticleRevisions', array( 'Frankfurt am Main' ) );
29 print_r( $r );
30 print( "Error: ".$s->getError() . "\n" );
32 print "\n\n==searchTitles==\n";
33 $r = $s->call( 'searchTitles', array( 'furt', 1 ) );
35 print_r( $r );
36 print( "Error: ".$s->getError() . "\n" );