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.

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;