PHP Soap Server / Client

Server

<?php
class info {
    function version() { return php_version(); }
    function name() { return php_uname(); }
}

$server = new SoapServer("urn:Object"); // create SOAP server object
$server->setClass('info'); // set available methods based on a class
$server->handle(); // handle requests
?>

Client

<?php
    // instantiate SOAP client object
    $client = new SoapObject("http://example.com/soap_server.php", "urn:Object");
    echo $client->version(); // call version() method
?>

Loading ...

Related Results :

  1. PHP Soap Server / Client
Note :
  • Related Posts are generally User Blog posts.
  • or Other tutorials from other networks of w3clan.com.
  • Any registered user can create related posts based on search term tags.

About the Author