0
我已經實現了Windows服務上託管的WCF服務。我想用PHP來使用它。 現在一切正常,但問題是當我停止我的勝利。服務。WinService託管WCF + PHP客戶端,並禁用服務
與.NET應用程序一起使用我得到EndpointNotFoundException。但是,使用PHP,我得到HTTP錯誤500.0 - 內部服務器錯誤
這是我的PHP代碼:
<?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";
} ?>
我的問題是:如何檢查端點是可訪問的,因爲我描述錯誤超時後發生。我想快速檢查這一點,並沒有得到內部服務器錯誤