Error: no data present after HTTP headers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I got a soapclient that most of the time doesn't give a response or it
returns Error: HTTP Error: no data present after HTTP headers or it returns
the right tekst.
I am testing this as a prove of concept so it on my localhost.

Does $client->Call('HelloWorld',array()); wait for an answer and than start
the rest of the script or not and if not how can I change that?

here is my code
<?php
// no direct access
echo '<div class="componentheading">HW Titel
</div>';
 print rand(1,100) . "<br>" ;


require_once("nusoap.php");
$client = new
nusoap_client('http://localhost/ServiceDJ/IsapiDJ.dll/soap/IServiceDJ',
false);

$antwoord = $client->Call('HelloWorld',array());

// Check for a fault
if ($client->fault) {
    echo '<p>Fault: ';
    print_r($antwoord);
    echo '</p>';
} else {
    // Check for errors
    $err = $client->getError();
    if ($err) {
        // Display the error
        echo '<p>Error: ' . $err . '</p>';
    } else {
        // Display the result
        print_r($antwoord) . "<br>" ;
    }
}
?>

The webservice is made in Delphi so I can change things at that site as
well.

-- 
View this message in context: http://www.nabble.com/Error%3A-no-data-present-after-HTTP-headers-tp26005921p26005921.html
Sent from the Php - Soap mailing list archive at Nabble.com.


-- 
PHP Soap Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Kernel Newbies]     [PHP Database]     [Yosemite]

  Powered by Linux