PDA

View Full Version : AWS script: WSDL error



fatnewt
10-08-2005, 07:25 AM
I'm getting a WSDL timeout error when trying to grab SOAP data from Amazon using an AWS script.

The script works find on my localhost... but on my live server (GoDaddy-hosted) it crashes. Any ideas?

I've tried increasing both PHP's script execution time and the response_timeout time.

This line in my AWS script:


$soapclient = new
soapclient("http://soap.amazon.com/schemas2/AmazonWebServices.wsdl",
true);

... is creating a $soapclient object from nuSOAP that's got this information:



<!--

soapclient Object
(
[title] => NuSOAP
[version] => 0.6.8
[revision] => $Revision: 1.85 $
[error_str] => wsdl error: HTTP ERROR: socket read of headers timed out
[debug_str] => 2005-10-08 07:02:20.174814 soapclient: instantiating wsdl class with doc: http://soap.amazon.com/schemas2/AmazonWebServices.wsdl
2005-10-08 07:02:20.175037 wsdl: initial wsdl URL: http://soap.amazon.com/schemas2/AmazonWebServices.wsdl
2005-10-08 07:02:20.175116 wsdl: getting WSDL http(s) URL http://soap.amazon.com/schemas2/AmazonWebServices.wsdl
2005-10-08 07:02:20.175266 soap_transport_http: scheme = http
2005-10-08 07:02:20.175326 soap_transport_http: host = soap.amazon.com
2005-10-08 07:02:20.175364 soap_transport_http: path = /schemas2/AmazonWebServices.wsdl
2005-10-08 07:02:20.175508 soap_transport_http: entered send() with data of length: 0
2005-10-08 07:02:20.175569 soap_transport_http: connect connection_timeout 0, response_timeout 60, scheme http, host soap.amazon.com, port 80
2005-10-08 07:02:20.175633 soap_transport_http: calling fsockopen with host soap.amazon.com
2005-10-08 07:02:20.182009 soap_transport_http: socket connected
2005-10-08 07:02:20.182100 soap_transport_http: HTTP request: GET /schemas2/AmazonWebServices.wsdl HTTP/1.1
2005-10-08 07:02:20.182149 soap_transport_http: HTTP header: Host: soap.amazon.com
2005-10-08 07:02:20.182191 soap_transport_http: HTTP header: User-Agent: NuSOAP/0.6.8 (1.85)
2005-10-08 07:02:20.182235 soap_transport_http: HTTP header: Accept-Encoding: gzip, deflate
2005-10-08 07:02:20.182278 soap_transport_http: HTTP header: Connection: close
2005-10-08 07:02:20.182318 soap_transport_http: HTTP header: Content-Length: 0
2005-10-08 07:02:20.182390 soap_transport_http: wrote data to socket, length = 175
2005-10-08 07:03:20.182814 soap_transport_http: read line of 0 bytes:
2005-10-08 07:03:20.182904 soap_transport_http: socket read of headers timed out after length 0
2005-10-08 07:03:20.182940 soap_transport_http: read before timeout:

2005-10-08 07:03:20.182982 soap_transport_http: end of send()
2005-10-08 07:03:20.183038 wsdl: HTTP ERROR: socket read of headers timed out
2005-10-08 07:03:20.183222 soapclient: got wsdl error: HTTP ERROR: socket read of headers timed out

...

-->


Any ideas? Thanks in advance.

Nick
10-08-2005, 04:35 PM
I've never encountered this problem. In fact, I've had quite the opposite. I have trouble getting my script to run locally, but on a remote server it's fine. I think it has something to do with my local server being run on windows.

You might want to try posting your question on a php forum (like the one over at SP).

fatnewt
10-08-2005, 05:12 PM
Haha... my question is in Sitepoint's PHP forum, but I've had no responses. I found an older thread in this forum that was somewhat relelvant, so I figured i'd try my luck here too.

alien
10-08-2005, 11:19 PM
It's probably your host (socket issues?). I have no problem running on WinXP/Apache or Linux with NuSOAP and AWS.