Hello
I wan't to use a client PHP XMLRPC with my Java server XMLRPC.
For simple type, all works fine.
But for type like array, my server java lose my parameters !
How can I know if it comes from my PHP client or my Java server ?
here is my code
---------------
Client :
$myArray = new xmlrpcval(
array(
1 => new xmlrpcval("Tom" ),
3 => new xmlrpcval("Dick "),
5 => new xmlrpcval("Harr y")
),
"array");
executerRequete HTTP("testVecto r",$myArray) ;
function executerRequete HTTP($nomMethod e,$args) {
include("./config.php");
// construction du client
$client=new xmlrpc_client($ server_path,$se rver_hostname,$ server_port);
$message=new xmlrpcmsg($nomM ethode,$args);
$result=$client->send($message, 0,'http');
if (!$result->faultCode()) {
$result=$result->value();
$tab=xmlrpc_dec ode($result);
}
else {
fatalError($res ult);
}
return $tab;
}
---------------
Server :
public void testVector(Vect or vec) {
System.out.prin tln("testVector (vec)");
System.out.prin tln("vec : "+vec);
}
public String testVector() {
System.out.prin tln("testVector ()");
return "OK";
}
---------------
testVector() is always executed and I don't know why ...
Could you help me ?
thanks,
BOYER Eric
I wan't to use a client PHP XMLRPC with my Java server XMLRPC.
For simple type, all works fine.
But for type like array, my server java lose my parameters !
How can I know if it comes from my PHP client or my Java server ?
here is my code
---------------
Client :
$myArray = new xmlrpcval(
array(
1 => new xmlrpcval("Tom" ),
3 => new xmlrpcval("Dick "),
5 => new xmlrpcval("Harr y")
),
"array");
executerRequete HTTP("testVecto r",$myArray) ;
function executerRequete HTTP($nomMethod e,$args) {
include("./config.php");
// construction du client
$client=new xmlrpc_client($ server_path,$se rver_hostname,$ server_port);
$message=new xmlrpcmsg($nomM ethode,$args);
$result=$client->send($message, 0,'http');
if (!$result->faultCode()) {
$result=$result->value();
$tab=xmlrpc_dec ode($result);
}
else {
fatalError($res ult);
}
return $tab;
}
---------------
Server :
public void testVector(Vect or vec) {
System.out.prin tln("testVector (vec)");
System.out.prin tln("vec : "+vec);
}
public String testVector() {
System.out.prin tln("testVector ()");
return "OK";
}
---------------
testVector() is always executed and I don't know why ...
Could you help me ?
thanks,
BOYER Eric