7
最近我開發了一個wcf服務。 昨天工作正常。我能夠在構建的WCF測試客戶端中使用VS2010測試它 。 由於昨天我無法在WCF Test客戶端看到我的服務。 當我按下F5時,它會打開Wcf測試客戶端窗口,並在底部 顯示Servie已成功添加。但它不會加載任何服務。 我試圖從文件/添加服務手動添加它,但它不加載。 可能是什麼問題。 我真的很感謝你的幫助。 這是我的Web.config。WCF測試客戶端未加載服務
<system.serviceModel>
<serviceHostingEnvironment aspNetCompatibilityEnabled="true"/>
<bindings/>
<client/>
<services>
<service behaviorConfiguration="myproj.ServiceBehavior" name="myproj.Service">
<endpoint address="" binding="webHttpBinding" contract="myproj.IService" behaviorConfiguration="REST">
<identity>
<dns value="localhost"/>
</identity>
</endpoint>
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/>
</service>
</services>
<behaviors>
<endpointBehaviors>
<behavior name="REST">
<webHttp/>
</behavior>
</endpointBehaviors>
<serviceBehaviors>
<behavior name="myproj.ServiceBehavior">
<serviceMetadata httpGetEnabled="true"/>
<serviceDebug includeExceptionDetailInFaults="false"/>
</behavior>
</serviceBehaviors>
</behaviors>
</system.serviceModel>
謝謝,但有沒有什麼辦法可以調用REST應用程序的測試客戶端? –
@SreekanthKarumanaghat:對於REST,您需要使用其他工具 - 如[Fiddler](http://fiddler2.com/get-fiddler)。 WCF測試客戶端不*** ***不爲REST –
@marc_s工作.. 我在.NET 新手有沒有使用WCF服務應用程序託管在IIS的服務器,如果是什麼什麼問題?使用wcf服務庫有沒有優勢?考慮到在使用IIS之前使用Cassini進行測試的事實,WCF服務庫如何通過按F5在Cassini中工作,但我無法直接將其託管在IIS中,爲什麼會出現這種情況? 請給我一些關於這方面的見解。 –