<?php$client = new SoapClient( null, array( "location" => "https://PRODUCTION/soap/cmd.php", "uri" => "http://PRODUCTION/soap" ) );$params = array ( "data" => array ( "login" => "demo", "password" => "password", ));$response = $client->__call("Login",$params);$token = $response["data"]["ssid"];unset($params);$con["name"] = "Pepa";$con["surname"] = "Novák";$con["org"] = "domena s.r.o.";$con["street"] = "Bořivojova 35";$con["city"] = "Prague";$con["cc"] = "CZ";$con["pc"] = "130 00";$con["phone"] = "+1.234567890";$con["email"] = "info@domena.tld";$con["id"] = "G-000008";$params = array ( "data" => array ( "ssid" => $token, "contact" => $con ));$response = $client->__call("Update_Contact",$params);?> INPUT: [data] => Array ( [ssid] => abcdef123 [contact] => Array ( [name] => Pepa [surname] => Novák [org] => Firma s.r.o. [street] => Bořivojova 35 [city] => Prague [cc] => CZ [pc] => 130 00 [phone] => +1.234567890 [email] => info@domena.tld [id] => �G-000008 ) ) OUTPUT: [status] => ok
<?php$client = new SoapClient( null, array( "location" => "https://PRODUCTION/soap/cmd.php", "uri" => "http://PRODUCTION/soap" ) );$params = array ( "data" => array ( "login" => "demo", "password" => "password", ));$response = $client->__call("Login",$params);$token = $response["data"]["ssid"];unset($params);$con["name"] = "Pepa";$con["surname"] = "Novák";$con["org"] = "domena s.r.o.";$con["street"] = "Bořivojova 35";$con["city"] = "Prague";$con["cc"] = "CZ";$con["pc"] = "130 00";$con["phone"] = "+1.234567890";$con["email"] = "info@domena.tld";$con["id"] = "G-000008";$params = array ( "data" => array ( "ssid" => $token, "contact" => $con ));$response = $client->__call("Update_Contact",$params);?>