Click Here For More Information

Click Here For Sample Code

Array ( [0] => Array ( [title] => Trivia Day [description] => Learn a new piece of trivia or tell someone else an interesting fact ) )
XMLRPC_request

Received the following parameter list to send:

Array
(
    [0] => Array
        (
            [string] => 1
        )

    [1] => Array
        (
            [string] => 4
        )

)
XMLRPC_request

Sent the following request:

POST /projects/holidays/holidays-xml-rpc.php HTTP/1.0
Host: suda.co.uk
Connection: close
Content-Type: text/xml
Content-Length: 263

<?xml version="1.0" ?>
<methodCall>
	<methodName>suda.getHoliday</methodName>
	<params>
		<param>
			<value>
				<string>1</string>
			</value>
		</param>
		<param>
			<value>
				<string>4</string>
			</value>
		</param>
	</params>
</methodCall>
XMLRPC_request

Received the following response:

HTTP/1.1 200 OK
Date: Mon, 06 Feb 2012 00:23:25 GMT
Server: Apache
Connection: close
Served-By: Joyent
Content-Length: 600
Vary: Accept-Encoding
Content-Type: text/xml;charset=UTF-8

<?xml version="1.0" ?>
<methodResponse>
	<params>
		<param>
			<value>
				<array>
					<data>
						<value>
							<struct>
								<member>
									<name>title</name>
									<value>
										<string>Trivia Day</string>
									</value>
								</member>
								<member>
									<name>description</name>
									<value>
										<string>Learn a new piece of trivia or tell someone else an interesting fact</string>
									</value>
								</member>
							</struct>
						</value>
					</data>
				</array>
			</value>
		</param>
	</params>
</methodResponse>
 

Which was serialized into the following data:

Array
(
    [methodResponse] => Array
        (
            [params] => Array
                (
                    [param] => Array
                        (
                            [value] => Array
                                (
                                    [array] => Array
                                        (
                                            [data] => Array
                                                (
                                                    [value] => Array
                                                        (
                                                            [struct] => Array
                                                                (
                                                                    [member] => Array
                                                                        (
                                                                            [0] => Array
                                                                                (
                                                                                    [name] => title
                                                                                    [value] => Array
                                                                                        (
                                                                                            [string] => Trivia Day
                                                                                        )

                                                                                )

                                                                            [1] => Array
                                                                                (
                                                                                    [name] => description
                                                                                    [value] => Array
                                                                                        (
                                                                                            [string] => Learn a new piece of trivia or tell someone else an interesting fact
                                                                                        )

                                                                                )

                                                                        )

                                                                )

                                                        )

                                                )

                                        )

                                )

                        )

                )

        )

)
XMLRPC_request

Returning:

array(2) {
  [0]=>
  bool(true)
  [1]=>
  array(1) {
    [0]=>
    array(2) {
      ["title"]=>
      string(10) "Trivia Day"
      ["description"]=>
      string(68) "Learn a new piece of trivia or tell someone else an interesting fact"
    }
  }
}
1
1