The type of the codeigniter XMLRPC class during data exchange

Source: Internet
Author: User
Tags php source code codeigniter

Introduction: This is a detailed page about the type of the codeigniter XMLRPC class during data exchange. It introduces PHP, related knowledge, skills, experience, and some PHP source code.

Class = 'pingjiaf' frameborder = '0' src = 'HTTP: // biancheng.dnbc?info/pingjia.php? Id = 339655 'rolling = 'no'>

When using the XMLRPC class of codeigniter for Client/Server Request Response, the client needs to send request parameters to the server. After receiving the parameters, the server performs parameter analysis, after splitting parameters, assign them to the correct method for processing. After processing, report a response to the client.

The request sent by the client is similar to this

$ Request = array ('parameters00', 'parameters01 ');

In client requests, you can specify the parameter data type. You can separate each parameter into an array and specify the parameter data type in the second position of the array, similar

$ Request = array (Array ('parameters00', 'string'), array ('parameters01 ', 'boolean'), array ('parameters02', 'struct '), array ('parameters03', 'int '),);

The response returned by the server has a hard requirement. The array must be formatted and there must be only one primary array in the response array, like this:

$ Response = array (Array (parameters00 => array ('para00', 'string'), parameters01 => array ('para01', 'struct '), parameters02 => array ('para02', 'boolean'),), 'struct ');

If you want to use the joined array, pay attention to the problem of specifying the type of the joined array, such:

$ Request = array (Array ('parameters00' => array (Array ('paraoo' => 'value'), 'struct '), 'parameters01' => array ('para01', 'string'),), 'struct ');

AuthorAI bangcompeting talent NetworkFounderGao Xueping

Love J2EE follow Java Michael Jackson video station JSON online tools

Http:// pageno: 7.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.