topical media & game development

talk show tell print

server-webapi-code-05-nusoapGeneration.php / php



  <?php
  require('../lib/nusoap.php');
  client = new soapclient("http://library.example.com/api/soap/wsdl/", true);
  params = array(
    'devkey'   => '123',
    'action'   => 'search',
    'type'     => 'book',
    'keyword'  => 'style'
  );
  namespace = 'library.example.com';
  action = 'library.example.com/api/soap/search';
  method = "SearchRequest";
  result = client->call(method, 
    array('SearchRequest' => params), 
    namespace, action);
  
  ?>


(C) Æliens 20/2/2008

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.