NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Array is getting full?


Joined: 15 Dec 2007
Posts: 3
Reply with quote
Hello,

I use nusoap for my application. Almost everything works fine.
The only problem is that I want to get the size of my response-array. I discovered that earlier received data does not delete itself. So the response array keeps increasing!!

Question: How to delete the earlier received data in the response-array, because once it will crash?

My code:

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

$message= "****your message****";

$param = array('****message name*****' => $name); 

$wsdl = "*****your wsdl*****";

$client = new soapclient($wsdl,true);

$response = $client->call('***your function****', $param);

$result = sizeof($response['****answername****']);
echo $result; //THIS KEEPS INCREASING!!!!!!!!
?>
View user's profileFind all posts by nktSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
They can't increase as you create all the object and array instances everytime when you run a call().
You may want to check your server if it accumulates something on its side.

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 15 Dec 2007
Posts: 3
Reply with quote
dmitri wrote:
They can't increase as you create all the object and array instances everytime when you run a call().
You may want to check your server if it accumulates something on its side.

Thank you for your fast reaction.
I thought that too, but that seems not to be the case. The size of the array keeps increasing. Until after midnight, then it resets itself.
I noticed this using the following code:
Code:
$result = sizeof($response['****answername****']);
echo $result; //THIS KEEPS INCREASING!!!!!!!!
View user's profileFind all posts by nktSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
once again. There is no persistent data in your client script implemented with nusoap. It can't increase by itself. It must be something returned from the soap server that increases with every soap call you do.

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 16 Dec 2007
Posts: 5
Reply with quote
hi,
is the client caching the wsdl somewhere
on the machine.
View user's profileFind all posts by trini00Send private message
Array is getting full?
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic