[SOAP] Error: no data present after HTTP headers

[email protected] (AJR65)
Newsgroups php.soap
Message-ID <[email protected]>
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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.