Results 1 to 4 of 4

Thread: AWS script: WSDL error

  1. #1
    Registered fatnewt's Avatar
    Join Date
    Nov 2003
    Location
    Ottawa, Canada
    Posts
    57

    AWS script: WSDL error

    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:

    PHP Code:
    $soapclient = new
       
    soapclient("http://soap.amazon.com/schemas2/AmazonWebServices.wsdl",
       
    true); 
    ... is creating a $soapclient object from nuSOAP that's got this information:

    PHP Code:
    <!--

    soapclient Object
    (
        [
    title] => NuSOAP
        
    [version] => 0.6.8
        
    [revision] => $Revision1.85 $
        [
    error_str] => wsdl errorHTTP ERRORsocket read of headers timed out
        
    [debug_str] => 2005-10-08 07:02:20.174814 soapclientinstantiating wsdl class with dochttp://soap.amazon.com/schemas2/AmazonWebServices.wsdl
    2005-10-08 07:02:20.175037 wsdlinitial wsdl URLhttp://soap.amazon.com/schemas2/AmazonWebServices.wsdl
    2005-10-08 07:02:20.175116 wsdlgetting WSDL http(sURL http://soap.amazon.com/schemas2/AmazonWebServices.wsdl
    2005-10-08 07:02:20.175266 soap_transport_httpscheme http
    2005
    -10-08 07:02:20.175326 soap_transport_httphost soap.amazon.com
    2005
    -10-08 07:02:20.175364 soap_transport_httppath = /schemas2/AmazonWebServices.wsdl
    2005
    -10-08 07:02:20.175508 soap_transport_httpentered send() with data of length0
    2005
    -10-08 07:02:20.175569 soap_transport_httpconnect connection_timeout 0response_timeout 60scheme httphost soap.amazon.comport 80
    2005
    -10-08 07:02:20.175633 soap_transport_httpcalling fsockopen with host soap.amazon.com
    2005
    -10-08 07:02:20.182009 soap_transport_httpsocket connected
    2005
    -10-08 07:02:20.182100 soap_transport_httpHTTP requestGET /schemas2/AmazonWebServices.wsdl HTTP/1.1
    2005
    -10-08 07:02:20.182149 soap_transport_httpHTTP headerHostsoap.amazon.com
    2005
    -10-08 07:02:20.182191 soap_transport_httpHTTP headerUser-AgentNuSOAP/0.6.8 (1.85)
    2005-10-08 07:02:20.182235 soap_transport_httpHTTP headerAccept-Encodinggzipdeflate
    2005
    -10-08 07:02:20.182278 soap_transport_httpHTTP headerConnectionclose
    2005
    -10-08 07:02:20.182318 soap_transport_httpHTTP headerContent-Length0
    2005
    -10-08 07:02:20.182390 soap_transport_httpwrote data to socketlength 175
    2005
    -10-08 07:03:20.182814 soap_transport_httpread line of 0 bytes
    2005-10-08 07:03:20.182904 soap_transport_httpsocket read of headers timed out after length 0
    2005
    -10-08 07:03:20.182940 soap_transport_httpread before timeout:

    2005-10-08 07:03:20.182982 soap_transport_httpend of send()
    2005-10-08 07:03:20.183038 wsdlHTTP ERRORsocket read of headers timed out
    2005
    -10-08 07:03:20.183222 soapclientgot wsdl errorHTTP ERRORsocket read of headers timed out

    ...

    --> 
    Any ideas? Thanks in advance.

  2. #2
    Half of it is 70% smarts Nick's Avatar
    Join Date
    Jan 2004
    Location
    Denver
    Posts
    104
    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).

  3. #3
    Registered fatnewt's Avatar
    Join Date
    Nov 2003
    Location
    Ottawa, Canada
    Posts
    57
    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.

  4. #4
    Registered Alien
    Join Date
    Aug 2004
    Location
    .au/.sg
    Posts
    58
    It's probably your host (socket issues?). I have no problem running on WinXP/Apache or Linux with NuSOAP and AWS.

Similar Threads

  1. Simple PHP Error
    By ozgression in forum Website Programming & Databases
    Replies: 5
    Last Post: 01-16-2005, 03:27 PM
  2. Flash MX 2004 Action Script confusion!!
    By DTOXX in forum Graphics & Multimedia
    Replies: 23
    Last Post: 11-10-2004, 09:30 PM
  3. Error on JavaScript Snippet with HTML Text Links
    By ETpro in forum HTML, CSS, Layout, and Design
    Replies: 1
    Last Post: 08-28-2004, 10:52 PM
  4. biz-directory script
    By Percept in forum General Management Issues
    Replies: 0
    Last Post: 07-02-2004, 01:22 PM
  5. Redirect script with statistics, graphs, etc
    By emke in forum Website Programming & Databases
    Replies: 7
    Last Post: 05-20-2003, 03:44 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •