コード例 #1
0
ファイル: bsoapclient.php プロジェクト: gmgj/gjsoap
<?php

/*
 * PHP SOAP - How to create a SOAP Server and a SOAP Client
 */
$options = array('location' => 'http://localhost/gjsoap/bsoapserver.php', 'uri' => 'http://localhost/');
//create an instante of the SOAPClient (the API will be available)
$api = new SoapClient(NULL, $options);
//call an API method
echo $api->hello();
コード例 #2
0
ファイル: client.php プロジェクト: Acedrin/PGROU
<?php

ini_set("soap.wsdl_cache_ttl", 1);
$client = new SoapClient("http://localhost/github/PGROU/testsCedric/testWS/test.wsdl");
$var = "Machine";
$res = $client->hello(new SoapParam($var, "name"));
print $res . "<br/>\n";