php: sabun istemci, sınıf veri almak

0 Cevap php

i sabun istemci çalıştırın:

$dir = "http://address.com/?Version=1.0,wsdl=1";

$client = new SoapClient($dir);

Ve bu sunucu sınıfı:

all_user

    * return: array
    * access: public

all_user_dt[] get_user(string $id)

    * string $id

how get information from this class? I try:

$client->all_user->get_user('213');

Ama yanlış, ben hata alıyorum:

Fatal error: Uncaught SoapFault exception: [HTTP] Unauthorized in C:\www\index.php:38 Stack trace: #0 [internal function]: SoapClient->__doRequest('<?xml version="...' ...

0 Cevap