<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<?php
require_once 'nusoap.php';
$login = array
(
"dealer-login" => "xzxxzzxxzz",
"dealer-password" => "xzxxzx",
"country-code" => 48,
"webapi-key" => "zxzxzxzxzxzxzxzxzxxzxzx" );
$client = new Soapclient('http://beta.otomoto.pl/webapi/server.php?wsdl', 'wsdl' );
$logowanie = $client->call('doDealerLogin', $login);
$session = $logowanie ['session-id'];
$webapi = $login['webapi-key'];
$zdjecie = ("cos.jpg");
$zlap = fopen("$zdjecie", "r");
$calosc = fread($zlap, filesize($zdjecie)); fclose($zlap);
$base64data = base64_encode ($calosc);
$obraz = array(
'number' => '<1>',
);
$parameters = array (
"photo" => $obraz,
"insertion" => 'zxxzxz',
"session-id"=> $session,
"webapi-key" => $webapi,
);
$response1 = $client->call('doPhotoEdit', $parameters);
echo "
<pre>"; print_r($response1); echo "
</pre>";
?>
naprawdę nikt nie wie co z tym zrobić?