I am experiencing some difficulties using the NuSoap classes to connect to a .NET based web service. We run PHP4 on our server for various reasons so we are not able to use the built-in SOAP functionality of PHP5.
I am able to connect to the web service and retrieve a result from a method. However, it takes forever. Every single request takes EXACTLY 20 seconds. No less, no more at any time.
When I check the debugger, it appears as if it is our server that takes forever to connect. Here is where all time is spent:
2010-02-27 20:31:21.387007 soap_transport_http: connect connection_timeout 0, response_timeout 30, scheme http, host [REMOTE SERVER OF WEB SERVICE], port 80
2010-02-27 20:31:21.387090 soap_transport_http: calling fsockopen with host [REMOTE SERVER OF WEB SERVICE] connection_timeout 0
2010-02-27 20:31:41.403328 soap_transport_http: set response timeout to 30
2010-02-27 20:31:41.403415 soap_transport_http: socket connected
Every other part of the process goes well it seems.
Does anyone have any clue as to what the problem could be? Any tips or hints would be highly appreciated.