note 52758 added to ref.soap
| From: | flobee at gmail dot com | Date: | Wed, 11 May 2005 20:25:20 +0000 |
| Subject: | note 52758 added to ref.soap | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-89287@lists.php.net to get a copy of this message | ||
wow, actually a cool program and soap is new for me.
I found out some interessting things i can not debug because the scripts exit without any error
messages or notes. :-(
you may have problems with the memory and/or especially on "shared servers" when server
load is high.
sometimes the script does the job, sometimes it just stopping at any unknown point.
these are the steps my script does:
* get data from remote server ( ~ 4.5 MB)
* parsing requested object and store the data in a database.
the return with debug messages was intressting:
-> check Mem limit: 30M
-> $client = new new SoapClient($url_wsdl, $options);
-> Memory usage: 185888
-> $client->[requested_method_to_get_data]();
-> check: __getLastResponseHeaders() - after:
-> HTTP/1.1 200 OK // remote server is fine with me :-)
-> Content-Length: 4586742 // I got the data
-> check: Memory usage now: 23098872 // ups !!! this can't be true!!
so, and if now someone on the server takes the rest of RAM the walk thought the data breaks :-(
so, i need to store the xml tree ($client->client->__last_response) and parsing it by the
classical way. (if you would request more RAM, you may get in trouble with the admin if you run a
script like this more often! (on shared servers)
----
Manual Page -- http://www.php.net/manual/en/ref.soap.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+52758
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+52758&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+52758&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+52758&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+52758&report=yes&reason=useless
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+52758&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+52758&report=yes
Search -- http://master.php.net/manage/user-notes.php