xmlrpc_encode_request メソッドリクエスト用の XML を生成する &reftitle.description; stringxmlrpc_encode_request stringmethod mixedparams arrayoutput_options &warn.experimental.func; &reftitle.parameters; method コールするメソッドの名前。 params メソッドのシグネチャに対応したパラメータ。 output_options 出力オプションを指定する配列。以下の内容が指定できます (強調してあるものがデフォルトです)。 output_type: php, xml verbosity: no_white_space, newlines_only, pretty escaping: cdata, non-ascii, non-print, markup (単一の値を表す文字列、あるいは複数の値の配列となります) version: simple, xmlrpc, soap 1.1, auto encoding: iso-8859-1, その他 iconv がサポートする文字セット &reftitle.returnvalues; リクエストを表す XML 文字列を返します。 &reftitle.examples; XMLRPC クライアント関数の例 [ 'method' => "POST", 'header' => "Content-Type: text/xml", 'content' => $request, ] ]); $file = file_get_contents("http://www.example.com/xmlrpc", false, $context); $response = xmlrpc_decode($file); if ($response && xmlrpc_is_fault($response)) { trigger_error("xmlrpc: $response[faultString] ($response[faultCode])"); } else { print_r($response); } ?> ]]> &reftitle.seealso; stream_context_create file_get_contents xmlrpc_decode