Loading ...
Sorry, an error occurred while loading the content.

Help - http error

Expand Messages
  • sandroonline
    *** Soap Client (windows) $client = new soapclient( http://200.230.16.15/soap/server001.php? wsdl , wsdl ); $proxy = $client- getProxy(); $resultado =
    Message 1 of 1 , Dec 5, 2003
    • 0 Attachment
      *** Soap Client (windows)


      $client = new soapclient('http://200.230.16.15/soap/server001.php?
      wsdl','wsdl');
      $proxy = $client->getProxy();

      $resultado = $proxy->teste001(array('parametro'=>'Teste'));
      if($proxy->getError()){
      echo 'Debug log: <pre>'.$proxy->debug_str.'</pre>';
      echo $proxy->getError();
      }else{
      echo $resultado;
      }

      *** Soap Server (linux)

      <?php
      require_once('nusoap.php');
      $server = new soap_server;
      $server->configureWSDL('TESTE','http://soapinterop.org/');
      $server->wsdl->schemaTargetNamespace = 'http://soapinterop.org/xsd/';
      $server->register('teste001',array('parametro'=>'xsd:string'),
      array('retorno'=>'xsd:string'),
      'http://soapinterop.org/');


      $HTTP_RAW_POST_DATA = isset($HTTP_RAW_POST_DATA) ?
      $HTTP_RAW_POST_DATA : '';
      $server->service($HTTP_RAW_POST_DATA);

      function teste001($parametro)
      {
      $retorno = "Parametro recebido : $parametro";
      return new soapval('retorno','string',$parametro);
      }
      ?>


      when i access de soap client,
      this happening the following error:

      -soap_proxy_11342: Error: HTTP Error: server failed to send headers
      -HTTP Error: server failed to send headers

      As it resolve this problem?

      It is lacking configure something in the servant soap, or some
      configuration in the linux?

      tank you
      sandro
    Your message has been successfully submitted and would be delivered to recipients shortly.