Unsupported HTTP response status 403

Help
severin
2009-12-13
2013-06-06
  • severin
    severin
    2009-12-13

    Hello,

    i'm developing a website consuming a webservice on PHP 5.2.11 on a Linux/Apache Box. I'm using the following code:

        $wsdl="http://ws.cdyne.com/WeatherWS/Weather.asmx?wsdl";
        $client=new nusoap_client($wsdl,'true');
        $param=array(
        'ZIP'=>'90210'
        );
        $result= $client->call('GetCityWeatherByZIP',$param, '', '', false, true);
    I've tried accessing several different Services and everytime i get the following error message in $client->getError().:

    wsdl error: HTTP ERROR: Unsupported HTTP response status 403 Forbidden (soapclient->response has contents of the response)

    The same code works perfectly fine on another Box with PHP 4.4.7

    Does anyone have any idea if there's a php-setting which could cause this, or what else might be the reason?

    thx in advance
    Severin

     
  • severin
    severin
    2009-12-13

    ok, it seems to be a problem at the hoster. it's proxy doesn't pass on soap requests but returns an access denied error.