2010-04-11 4 views
1

웹 서버 (.net)에서 데이터를 가져 와서 내 웹 사이트에 표시하고 싶습니다.웹 서비스에 php nusoap을 사용하면 오류가 발생합니다.

$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); 

그리고 난이 오류를 얻을 :

내 코드는

경고 : 불법이는 isset 입력하거나 /홈/mmdicir/public_html을/lib 디렉토리/nusoap- 빈 오프셋 0.7.3/LIB/ nusoap.php의 라인 7211

어레이 ([faultCode를] => 비누 : 서버 [faultString으로] => 서버,617,요청을 처리 할 수 ​​없습니다. ---> 문자열 참조가 문자열 인스턴스로 설정되지 않았습니다. 매개 변수 이름 : 잘못 인 이유뿐만 아니라 표시/변경에 대해 의 [상세] =이>)

답변

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

$user = array('UserName' => 'etc', 'Password' => 'etc'); use like this its will work 
//$pass = array('Password' => 'etc'); // wrong 

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

print_r($result); 
+0

더 많은 정보를 추가하십시오. – PhoneixS

관련 문제