<?php $request = xmlrpc_encode_request("middler.getUserDetailInfo", array('aaa@kingsoft.com','0')); $context = stream_context_create(array('http' => array( 'method' => "GET", 'header' => "Content-Type: text/xml", 'content' => $request ))); $file = file_get_contents("http://xxx/middlers/middlerxmlrpcservlet", false, $context); $response = xmlrpc_decode($file); echo '<pre>'; var_dump($response);