2012-07-30 4 views
0

somefile.ashx에서 원격 IIS 서버에 메서드가 있습니다. 호출하려고 시도하는 메서드 중 하나가 'UserLogInReq'입니다.xmlrpc php로 지원되지 않는 메서드 호출

UserLogInReq은 다음과 같은 멤버를 가지고 :

문자열 : 사용자 이름
는 문자열 : 비밀번호
문자열 : 나는로 이동하면

$request = xmlrpc_encode_request('UserLogInReq', array("UserName" => '$username',"Password" =>'$password',"ClientType" => '')); 

$context = stream_context_create(array('http' => array(
'method' => "POST", 
'header' => "Content-Type: text/xml", 
'content' => $request 
))); 

$file = file_get_contents("http://someserver/somepage.ashx", false, $context); 

$response = xmlrpc_decode($file); 

if ($response && xmlrpc_is_fault($response)) { 
    trigger_error("xmlrpc: $response[faultString] ($response[faultCode])"); 
} else { 
    print_r($response); 
} 

:하여 clientType

이 지금까지 내 스크립트입니다 내 웹 서비스 페이지 인 somepage.ashx에서이 메소드가 모두 나열됩니다. 나는이 스크립트를 실행할 때, 나는 점점 오전 : 내가 찾을 수

Notice: unsupported method called: UserLogInReq (0) 

모든 도움은 어떻게 든 일반적인 XML-RPC의 인맥/호출되지 않은 관련이있다.

웹 서비스 사용 권한 문제입니까? 내가 뭘 잘못하고 있니?

감사합니다.

답변

0

이것은 결국 내 오해였습니다. XML-RPC requriers structs는 PHP의 중첩 배열과 동일합니다. PHP 배열에서 몇 단계 아래로 내려 가야했습니다.

관련 문제