![]() |
| socket read of headers timed out |
|
Site Admin
|
yes threre are two timeouts - connection timeout and responce timeout. Both can be set in the soapclient() constructor call.
|
||||||||||||
|
|
|||||||||||||
|
Hi,
i tried those but there is no change in behaviour. I set $timeout = 600 and $response_timeout = 600 just to see if there is any change at all. In my desperation i even changed the default timeout values in the nusoap.php file. Nothing helped at all. It returns the error way before the given timeouts (after ~24 seconds). I am also using the WSDL functionality, but i also set those timeout values high. this is what i get:
client
am i doing anything wrong? |
||||||||||||||||
|
|
|||||||||||||||||
|
Site Admin
|
It looks like your serever did not return any data but closed connection.
timeout won't help, check server logs. |
||||||||||||
|
|
|||||||||||||
|
the error log is empty. |
||||||||||||||
|
|
|||||||||||||||
|
Site Admin
|
try to run http://yourhost/soap.php?wsdl directly in the browser.
|
||||||||||||
|
|
|||||||||||||
|
we just beat argentina... need to party a bit now.
will do some further investigation tomorrow (e.g. try without wsdl, if that could be a cause) |
||||||||||||
|
|
|||||||||||||
|
hi again,
i just removed wsdl functionality... now it works. no error. i will see if i can make the service user live without wsdl. but i think i'll need it. any clue what could be the cause? |
||||||||||||
|
|
|||||||||||||
|
Site Admin
|
it depends.
What if the server changes WSDL? |
||||||||||||
|
|
|||||||||||||
|
im not sure if i know what you mean.
i create the server with:
client:
thats how it does NOT work. at least not if 'getItems' returns LOTS of data (2000+ Items). with only a couple of hundred items there is no problem. This is the server without wsdl:
runs fine with client:
unfortunately the wsdl description is needed for the other side to create their client. as far as i get the idea, wsdl does only describe the types of data needed for the service and enforces their presence/format. |
||||||||||||||||||||
|
|
|||||||||||||||||||||
|
Site Admin
|
Oh, sorry I didn't get you right.
You can try to cache WSDL on the client and do not request it each time your make a call. Regarding "timeout", I'd highly recommend to dump out server object immediately after such failured call. Maybe it's server closes connection and does not output anything. |
||||||||||||
|
|
|||||||||||||
|
Hi,
sorry for the delayed answer. I solved the problem by only adding the wsdl functionality when the GET parameter "wsdl" is passed. Otherwise it will run without wsdl which is ok as wsdl is only needed for the client creation. |
||||||||||||
|
|
|||||||||||||
| socket read of headers timed out |
|
||
|
Content © NuSphere Corp., PHP IDE team
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by


RSS2 Feed