> Debug info of server data follows...
> XML-RPC Fault #2: Invalid return payload: enable debugging to examine
> incoming payload (XML error at line 1, check URL)
> this error.
> Why it is appear?
> Thanks in advance.
The response you are seeing is a default error reponse that the client object
returns to the application when the server did not respond to the call with a
valid xmlrpc response.
Most likely cause is that you are not using the correct URL when creating the
client object, or you do not have approriate access rights to the web page you
are requesting, or some other common http misconfiguration.
Since the xml parsing error states 'xml error at line 1', the case migth also
be that you are receiving an empty page as reponse, ie. no data. This usually
happens when there is a fatal php error server side and dispaly_errors has been
set to off.
To find out what the server is really returning to your client, you have to
enable the debug mode of the client:
$client = new xmlrpc_client(whatever);
$resp = $client->send(new xmlrpcmsg(whatever));
This will cause it to echo to screen the complete http request it is sending
and the response received.
phpxmlrpc mailing list