get error with using php nusoap for web service.

Posted by mohammad mirzadeh on Stack Overflow See other posts from Stack Overflow or by mohammad mirzadeh
Published on 2010-04-11T13:22:05Z Indexed on 2010/04/11 13:33 UTC
Read the original article Hit count: 439

Filed under:
|

i want get data from a webserver (.net) and display it into my website.

my code is :

$client = new soapclient('http://www.tsetmc.com/WebService/TsePublic.asmx?WSDL', true);
$client->useHTTPPersistentConnection(); 

$user = array('UserName' => 'etc');
$pass = array('Password' => 'etc');

$result = $client->call('Board', $user, $pass);

print_r( $result );

and i get this error :

Warning: Illegal offset type in isset or empty in /home/mmdicir/public_html/lib/nusoap-0.7.3/lib/nusoap.php on line 7211 Array ( [faultcode] => soap:Server [faultstring] => Server was unable to process request. ---> String reference not set to an instance of a String. Parameter name: s [detail] => )

© Stack Overflow or respective owner

Related posts about php

Related posts about webservice