Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

HTTP ERROR: Unsupported HTTP response status

Help
2010-04-26
2013-06-06
  • Burkenstein
    Burkenstein
    2010-04-26

    I literally have no idea what I'm doing, but I have been tasked with making nusoap work on our system.

    Windows Server 2003, IIS6 and PHP 5.2.6

    The following three lines are the final output when running SOAP:
    2010-04-26 16:14:40.049848 wsdl: HTTP ERROR: Unsupported HTTP response status 403 Forbidden (soapclient->response has contents of the response)
    2010-04-26 16:14:40.050039 nusoap_client: checkWSDL
    2010-04-26 16:14:40.050463 nusoap_client: got wsdl error: HTTP ERROR: Unsupported HTTP response status 403 Forbidden (soapclient->response has contents of the response)

    The full transcript is available below. I've checked permissions on the soap folder and verified that the php.ini file is configured correctly. Let me know what information you need to help me figure this out. In the meantime, I'll be googleing away.

    Request

    Response

    Debug
    2010-04-26 16:14:32.089503 nusoap_client: ctor wsdl=wsdl timeout=0 response_timeout=30
    endpoint=string(49) "http://devspear.rediservice.com/service.asmx?WSDL"
    2010-04-26 16:14:32.089720 nusoap_client: will use lazy evaluation of wsdl from http://devspear.rediservice.com/service.asmx?WSDL
    2010-04-26 16:14:32.089890 nusoap_client: setUseCURL(0)
    2010-04-26 16:14:32.090098 nusoap_client: call: operation=SpearRegistrant, namespace=, soapAction=, rpcParams=1, style=rpc, use=encoded, endpointType=wsdl
    params=array(3) {
      =>
      array(9) {
        =>
        string(3) "kjh"
        =>
        string(4) "lkjh"
        =>
        string(4) "lkjh"
        =>
        string(4) "lkjh"
        =>
        string(2) "LA"
        =>
        string(4) "lkjh"
        =>
        string(14) "lkjh@dfgh.sdfg"
        =>
        string(1) "0"
        =>
        string(9) "WebSource"
      }
      =>
      string(11) "SpearPharma"
      =>
      string(7) "$5ir*ke"
    }
    headers=bool(false)
    2010-04-26 16:14:32.090281 nusoap_client: instantiating wsdl class with doc: http://devspear.rediservice.com/service.asmx?WSDL
    2010-04-26 16:14:32.090464 wsdl: ctor wsdl= timeout=0 response_timeout=30
    2010-04-26 16:14:32.090624 wsdl: parse and process WSDL path=
    2010-04-26 16:14:32.090790 wsdl: setCredentials username= authtype= certRequest=
    array(0) {
    }
    2010-04-26 16:14:32.091326 wsdl: parse and process WSDL path=http://devspear.rediservice.com/service.asmx?WSDL
    2010-04-26 16:14:32.091483 wsdl: parse WSDL at path=http://devspear.rediservice.com/service.asmx?WSDL
    2010-04-26 16:14:32.091640 wsdl: getting WSDL http(s) URL http://devspear.rediservice.com/service.asmx?WSDL
    2010-04-26 16:14:32.091819 soap_transport_http: ctor url=http://devspear.rediservice.com/service.asmx?WSDL use_curl=0 curl_options:
    array(0) {
    }
    2010-04-26 16:14:32.092937 soap_transport_http: parsed URL scheme = http
    2010-04-26 16:14:32.093093 soap_transport_http: parsed URL host = devspear.rediservice.com
    2010-04-26 16:14:32.093243 soap_transport_http: parsed URL path = /service.asmx
    2010-04-26 16:14:32.093395 soap_transport_http: parsed URL query = WSDL
    2010-04-26 16:14:32.095979 soap_transport_http: set header Host: devspear.rediservice.com
    2010-04-26 16:14:32.096162 soap_transport_http: set header User-Agent: User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.0.10) Gecko/2009042315 Firefox/3.0.10
    2010-04-26 16:14:32.096315 soap_transport_http: set header Referer: https://app.loopt.com/loopt/sess/signup-start.aspx
    2010-04-26 16:14:32.096467 soap_transport_http: set header Cookie: SESS608326f5cec5112264c63510ce2bce8e=1bfa666f7a3f086d8661af70a5c98143; __utma=81432330.4554466660250456600.1242164150.1242230870.1242234487.3; __utmz=81432330.1242164150.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utma=26172141.4174499135055095300.1242164343.1242230874.1242234489.3; __utmz=26172141.1242164343.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); ASP.NET_SessionId=qf0cmlrzo34aibilkcwvum45; VSUK_48418265=HKIv4DQsvxnucJW6XDiVFA; __BIT_K_2590X=4OC6SwS3vPrgso2jzm9jlw==; __utmc=81432330; __utmc=26172141; __utmb=81432330.1.10.1242234487; __utmb=26172141.1.10.1242234489
    2010-04-26 16:14:32.096619 soap_transport_http: set header X-AntiCSRF: schmarrr
    2010-04-26 16:14:32.096787 soap_transport_http: set header Accept-Encoding: gzip, deflate
    2010-04-26 16:14:32.096940 soap_transport_http: set header Connection: close
    2010-04-26 16:14:32.097095 soap_transport_http: entered send() with data of length: 0
    2010-04-26 16:14:32.097277 soap_transport_http: connect connection_timeout 0, response_timeout 30, scheme http, host devspear.rediservice.com, port 80
    2010-04-26 16:14:32.097494 soap_transport_http: calling fsockopen with host devspear.rediservice.com connection_timeout 0
    2010-04-26 16:14:39.754309 soap_transport_http: set response timeout to 30
    2010-04-26 16:14:39.754516 soap_transport_http: socket connected
    2010-04-26 16:14:39.754692 soap_transport_http: set header Content-Length: 0
    2010-04-26 16:14:39.754850 soap_transport_http: HTTP request: GET /service.asmx?WSDL HTTP/1.1
    2010-04-26 16:14:39.755005 soap_transport_http: HTTP header: Host: devspear.rediservice.com
    2010-04-26 16:14:39.755157 soap_transport_http: HTTP header: User-Agent: User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.0.10) Gecko/2009042315 Firefox/3.0.10
    2010-04-26 16:14:39.755309 soap_transport_http: HTTP header: Referer: https://app.loopt.com/loopt/sess/signup-start.aspx
    2010-04-26 16:14:39.755460 soap_transport_http: HTTP header: Cookie: SESS608326f5cec5112264c63510ce2bce8e=1bfa666f7a3f086d8661af70a5c98143; __utma=81432330.4554466660250456600.1242164150.1242230870.1242234487.3; __utmz=81432330.1242164150.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utma=26172141.4174499135055095300.1242164343.1242230874.1242234489.3; __utmz=26172141.1242164343.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); ASP.NET_SessionId=qf0cmlrzo34aibilkcwvum45; VSUK_48418265=HKIv4DQsvxnucJW6XDiVFA; __BIT_K_2590X=4OC6SwS3vPrgso2jzm9jlw==; __utmc=81432330; __utmc=26172141; __utmb=81432330.1.10.1242234487; __utmb=26172141.1.10.1242234489
    2010-04-26 16:14:39.755612 soap_transport_http: HTTP header: X-AntiCSRF: schmarrr
    2010-04-26 16:14:39.755763 soap_transport_http: HTTP header: Accept-Encoding: gzip, deflate
    2010-04-26 16:14:39.755914 soap_transport_http: HTTP header: Connection: close
    2010-04-26 16:14:39.756064 soap_transport_http: HTTP header: Content-Length: 0
    2010-04-26 16:14:39.756423 soap_transport_http: wrote data to socket, length = 946
    2010-04-26 16:14:40.046124 soap_transport_http: read line of 24 bytes: HTTP/1.1 403 Forbidden
    2010-04-26 16:14:40.046344 soap_transport_http: read line of 22 bytes: Content-Length: 1549
    2010-04-26 16:14:40.046499 soap_transport_http: read line of 25 bytes: Content-Type: text/html
    2010-04-26 16:14:40.046653 soap_transport_http: read line of 27 bytes: Server: Microsoft-IIS/6.0
    2010-04-26 16:14:40.046808 soap_transport_http: read line of 23 bytes: X-Powered-By: ASP.NET
    2010-04-26 16:14:40.046962 soap_transport_http: read line of 37 bytes: Date: Mon, 26 Apr 2010 20:14:40 GMT
    2010-04-26 16:14:40.047117 soap_transport_http: read line of 19 bytes: Connection: close
    2010-04-26 16:14:40.047272 soap_transport_http: read line of 2 bytes:
    2010-04-26 16:14:40.047459 soap_transport_http: found end of headers after length 179
    2010-04-26 16:14:40.047662 soap_transport_http: want to read content of length 1549
    2010-04-26 16:14:40.048046 soap_transport_http: read buffer of 1549 bytes
    2010-04-26 16:14:40.048762 soap_transport_http: read to EOF
    2010-04-26 16:14:40.048916 soap_transport_http: read body of length 1549
    2010-04-26 16:14:40.049068 soap_transport_http: received a total of 1728 bytes of data from server
    2010-04-26 16:14:40.049484 soap_transport_http: closed socket
    2010-04-26 16:14:40.049659 soap_transport_http: end of send()
    2010-04-26 16:14:40.049848 wsdl: HTTP ERROR: Unsupported HTTP response status 403 Forbidden (soapclient->response has contents of the response)
    2010-04-26 16:14:40.050039 nusoap_client: checkWSDL
    2010-04-26 16:14:40.050463 nusoap_client: got wsdl error: HTTP ERROR: Unsupported HTTP response status 403 Forbidden (soapclient->response has contents of the response)

     
  • Scott Nichol
    Scott Nichol
    2010-04-26

    The WSDL you have specified is at http://devspear.rediservice.com/service.asmx?WSDL.  The NuSOAP code is trying to read the WSDL from that URL.  When it does this, it gets the HTTP error.  When I try to access that same URL from Firefox, I get "HTTP Error 403.6 - Forbidden: IP address of the client has been rejected."  This extra information "IP address of the client has been rejected" is an important clue.  The admin for the web server in question has limited the access to some range of IP addresses.  For your PHP/NuSOAP code to access the WSDL, the IP address of the machine the PHP/NuSOAP is running on must be added to the allowed list.