からデータを取得:PHP:SOAPクライアント、私は、SOAPクライアントで実行クラス
$dir = "http://address.com/?Version=1.0,wsdl=1";
$client = new SoapClient($dir);
そして、このサーバでは、クラスである:
all_user
* return: array
* access: public
all_user_dt[] get_user(string $id)
* string $id
どのようにこのクラスから情報を取得しますか? 私が試してみてください。
$client->all_user->get_user('213');
しかし、間違っている、私はエラーを取得:
Fatal error: Uncaught SoapFault exception: [HTTP] Unauthorized in C:\www\index.php:38 Stack trace: #0 [internal function]: SoapClient->__doRequest('<?xml version="...' ...
こんにちは、folowingコードを試してみましたか? )$ client-> get_user( '213'); ' –
はい、同じエラー – user319854