Thank You for Your answer very much.. ;) it works
and I have one more quastion about this-
to $date variable I want put another information, I want that information which is showing on a screen be written to a file. I show what I have in another script (below):
in my script I have classes, ex.
class GetProductList
{
public $GetProductListRequest;
}I have arrays
$map = array, ex.
"GetProductListRequest"=>"GetProductListRequest"and of course I have public function, ex.
- Code: Select all
public function getProductList () {
try
{
$this->init();
$request = new GetProductListRequest();
$request->Filters = new ArrayOfFilter();
$language = new Filter();
$language->Name = "Language";
$language->Value= "lt-lt";
$currency = new Filter();
$currency->Name = "Currency";
$currency->Value = "LTL";
$request->Filters->Filter = array( $language,$currency);
$params = new GetProductList();
$params->GetProductListRequest = $request;
$result = $this->soapClient->GetProductList($params);
foreach ($result->GetProductListResult->ProductList->Product as $p)
{
print $p->SupplierCode." ".$p->Name."<br />";
}
//echo "<pre>". print_r($result,1) . '</pre>';
}
catch(SoapFault $e) {
echo '<xmp>' . $this->soapClient->__getLastRequestHeaders() . $this->soapClient->__getLastRequest() . '</xmp>';
echo "<pre>". print_r($e,1) . '</pre>';
}
}
I dont know what to write to
$data.. do I need to write
$p->SupplierCode." ".$p->Name."<br />"; explain me plese
