<?php
require_once('nusoap.php');

//parameters
$param = array(
 'user_id'=>'5a194cff-­‐c913-­‐3c79-­‐5415-­‐551a4fbc4ec5',
 'password' =>'hTJLnXH6ZZyqLw',
 'fname'=>'ali',
 'lname' =>'ghaderi',
 'email' =>'i...@parsishop.ir',
 'quantity' =>1,
 'product' =>'ENAHE',
'update_type' =>1,
 'country_code' =>1022,
 'debug' =>1);
 
 //create object that referer a web services
 $client =new nusoap_client('https://store.esetme.com/remote/webshop.php');
 
 //call a function at server and send parameters too
 $response =$client->call('CreateNewLicense',$param);
 //process result
 if($client->fault){
         echo "FAULT:<P>Code:".$client->faultcode."</p>";
         echo "string:".$client->faultstring;
 }else{
        if($response['error']==")}
         //Request is Successful
         //Handle Response Data
        echo $response=['username'];
        echo<br/>;
        echo $response=['password'];
        echo<br/>;
        echo $response=['expiration_data'];
       
        else{
         //an error occurred
         //handle error 
         echo$response=['error'];
         
         
         
        }
                
        
 
?>
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to