header('Content-Type: text/html; charset=utf-8');
$client = new SoapClient("http://api.isobil.com.tr/v2/isobil_API_XML.asmx?WSDL");
$dataxml="
KULLANICI ADI
ŞİFRE
FIRMA
17
";
$params = array( 'data' => $dataxml);
ob_start();
$client->GetUserAccount($params)->GetUserAccountResult;
$var = ob_get_clean();
function kes($a,$b){
$c=explode("<".$a.">",$b);
$c=explode("".$a.">",$c[1]);
return $c[0];
}
$companyname=kes("CompanyName",$var);
$name=kes("Name",$var);
$lastname=kes("LastName",$var);
?>
Bu şekilde kullanabilirsin