[Klug-general] php array/soap question

Karl Buckland buckland.karl at gmail.com
Tue Jul 22 08:08:43 UTC 2014


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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.lug.org.uk/pipermail/kent/attachments/20140722/1c7e9a3b/attachment.html>


More information about the Kent mailing list