I have implemented a WCF service hosted on Windows Service. I want to consume it with PHP. Everything works OK for now, but problem is when I stop my win. service.
. NET uygulama ile onu tüketen ben EndpointNotFoundException olsun. Internal Server Error - Ama PHP kullanarak HTTP Hatası 500.0 olsun
Bu benim PHP kodu:
<?php
header('Content-Type: text/plain');
try
{ 
    $client = new 
        SoapClient( 
            "http://localhost:8000/TestService/service?wsdl" 
        );      
    $webService = $client->CheckStatus();       
    $wsResult = $webService->CheckStatusResult;
    print  $wsResult;
} 
catch (Exception $e) 
{
    print  "Caught exception: " .  $e->getMessage(). "\n";
} ?>
Benim soru: uç erişilebilir olup olmadığını kontrol etmek için nasıl, ben açıklanan hata zaman aşımından sonra oluşur. Ben hızlı bir şekilde bu kontrol etmek istiyorum, ve iç sunucu hatası almazsınız