[Klug-general] php array/soap question

Dan Attwood danattwood at gmail.com
Tue Jul 22 08:15:27 UTC 2014


I just get:
looks like we got no XML document error with the XXXXXX Service 2 looks
like we got no XML document

>From my reading there is a hard limit on the array size but it's huge and
I've got far bigger array on other servers that work fine - and like you
say I would expect a pretty clear out of memory error.


dan


On 22 July 2014 09:08, Karl Buckland <buckland.karl at gmail.com> wrote:

> Hi Dan,
>
> What do you mean when you say it stops working? What is returned in all
> instances? I often find a packet inspector helpful to see everything that
> was returned at the networking level as this can sometimes help.
>
> Does it work if you return a different, predefined array perhaps?
>
> If you were running out of memory then there would be a clear error in the
> logs, or wherever you direct your errors. I don't believe there is a limit
> to how much data can be returned, except for any limiting RAM and execution
> time.
>
> Karl
>
>
> On 22 July 2014 08:45, Dan Attwood <danattwood at gmail.com> wrote:
>
>> hi all
>>
>> I've got a new server set up that contains  two websites. One is a set of
>> php soap services and the other is a php site that consumes these services.
>>
>> My soap service is returning an array like:
>>
>>  $infoReturned = array(
>>         'studentInfo' => $studentInfo,
>>         'Course' => $courses,
>>         'Attendance' => $attendance,
>>         'TargetGrade' => $targetGrade,
>>         'Profiler' => $profiler,
>>         'Quals_on_Entry' => $quals,
>> }
>>
>> return $infoReturned;
>>
>> When I call this is fails to return any xml. If I comment out any two of
>> the array values then it stops working. I can serialize the returned array
>> and that works but this is an extra step i'd like to avoid.
>>
>> I'm seeing any errors in the logs but this looks like it could be a php
>> setting related to size.
>>
>> Does anyone have any insights please?
>>
>> _______________________________________________
>> Kent mailing list
>> Kent at mailman.lug.org.uk
>> https://mailman.lug.org.uk/mailman/listinfo/kent
>>
>
>
> _______________________________________________
> Kent mailing list
> Kent at mailman.lug.org.uk
> https://mailman.lug.org.uk/mailman/listinfo/kent
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.lug.org.uk/pipermail/kent/attachments/20140722/605a32ea/attachment.html>


More information about the Kent mailing list