-
-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy path11-wsdl-info.php
More file actions
22 lines (17 loc) · 706 Bytes
/
11-wsdl-info.php
File metadata and controls
22 lines (17 loc) · 706 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?php
require __DIR__ . '/../vendor/autoload.php';
$browser = new React\Http\Browser();
$wsdl = isset($argv[1]) ? $argv[1] : 'http://www.thomas-bayer.com/axis2/services/BLZService?wsdl';
$browser->get($wsdl)->done(
function (Psr\Http\Message\ResponseInterface $response) use ($browser) {
$client = new Clue\React\Soap\Client($browser, (string)$response->getBody());
echo 'Functions:' . PHP_EOL .
implode(PHP_EOL, $client->getFunctions()) . PHP_EOL .
PHP_EOL .
'Types:' . PHP_EOL .
implode(PHP_EOL, $client->getTypes()) . PHP_EOL;
},
function (Exception $e) {
echo 'Error: ' . $e->getMessage() . PHP_EOL;
}
);