我正在將解決方案連接到基於WCF SOAP的Web服務。該URL的格式爲:爲什麼我必須添加對URL/service.svc的引用,但是它會爲URL/service.svc/soap創建一個綁定?
然而,當我添加引用的配置出現下列要求:
<client>
<endpoint address="http://upload.pete.vls.com/api/HmlApi.svc/soap"
binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IHmlApi"
contract="ServiceReference1.IHmlApi" name="BasicHttpBinding_IHmlApi" />
</client>
林困惑,爲什麼當我加入參考/肥皂/到底它不工作。但是當我不添加它時,'添加引用'功能找到該服務並將其添加到/ soap /中。