NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
huge string problem


Joined: 30 May 2006
Posts: 2
Reply with quote
i've a web service which has a method returning huge string in XML format.
Result XML is obtained from another URL.I get the xml by file_get_contents function.
When i want to learn string length,it is OK.But when i return the result XML,client gets an empty string.
I don't know problem is related with PHP or nusoap limits. Is there any solution for returning large amount of string data from nusoap web service?
Thanks in advance.
View user's profileFind all posts by sciragSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8334
Reply with quote
There is no known limitation on the data size you can transfer with nusoap.
Could you please try to find a length of the string at which it will go through?
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 30 May 2006
Posts: 2
Reply with quote
1 function GetResultXML ( $url ) {
2 $result = file_get_contents($url);
3 $resultLength = strlen($result);
4 return $result;
5 }

There is no problem with line 3.I got 2576576 for $resultLength;
But client side has got an empty string.I considered that there was a limit since
i could have been returning an amount of XML with substr as following;

1 function GetResultXML ( $url ) {
2 $result = file_get_contents($url);
3 return substr($result,1,10000);
4 }
View user's profileFind all posts by sciragSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8334
Reply with quote
well, if roughly 10KB can go through nusoap, please try (10KB + 2MB)/2 and so forth. Either there are problems with transport layer or data content interferes with SOAP-XML it is packed into.
View user's profileFind all posts by dmitriSend private messageVisit poster's website
huge string problem
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