我是Codeigniter的新手,但最近三天以来我一直在谷歌搜索,但没有机会。
这是远程服务器应该接收的内容
Header content
(
[0] => Content-type: text/xml
[1] => Content-length: XXX
[2] => User-Agent: XXXXX/4.1/1.0
[3] => Authorization: Basic base64_encode("login:password");
)
<?xml version="1.0"?>
<methodCall>
<methodName>UpdateBalanceAndDate</methodName>
<params>
<param>
<value>
<struct>
<member>
<name>originNodeType</name>
<value>
<string>EXT</string>
</value>
</member>
<member>
<name>originHostName</name>
<value>
<string>XXXX</string>
</value>
</member>
<member>
<name>originTransactionID</name>
<value>
<string>XXXXXX</string>
</value>
</member>
<member>
<name>originTimeStamp</name>
<value>
<dateTime.iso8601>XXXXXXX</dateTime.iso8601>
</value>
</member>
<member>
<name>subscriberNumber</name>
<value>
<string>XXXXXXX</string>
</value>
</member>
<member>
<name>transactionCurrency</name>
<value>
<string>XOF</string>
</value>
</member>
<member>
<name>adjustmentAmountRelative</name>
<value>
<string>XXXXX</string>
</value>
</member>
<member>
<name>transactionCode</name>
<value>
<string>11</string>
</value>
</member>
<member>
<name>transactionType</name>
<value>
<string>XXXX</string>
</value>
</member>
</struct>
</value>
</param>
</params>
</methodCall>
<?xml version="1.0" encoding="utf-8"?>
这是我的代码:
$this->load->library('xmlrpc');
$this->xmlrpc->server('server_ip_adress', 80);
$this->xmlrpc->method('UpdateBalanceAndDate');
$request = array('My Photoblog', 'http://www.my-site.com/photoblog/');
$request = array(
array(
array(
'originNodeType' => 'EXT',
'originHostName'=>'XXXX',
'originTransactionID'=>'XXXXXX',
'originTimeStamp'=>'XXXXXXX',
'transactionCurrency'=>'XOF',
'adjustmentAmountRelative'=>'XXXXX',
'transactionCode'=>'11',
'transactionType'=>'XXXX'
),
'struct'
)
);
$this->xmlrpc->request($request);
if ( ! $this->xmlrpc->send_request())
{
echo $this->xmlrpc->display_error();
}
出问题了,但是我没有从服务器收到任何错误消息,我正在检查以下内容。
谢谢