我有一个服务部署在IIS和Defaultwebsite节点下的服务 - > Example.SampleService 下面我有SVC文件名为SampleService.svc 所以,当我浏览它在IE中像http://localhost/Example.SampleService/SampleService.svc brwoser显示它很好。 我试图通过添加具有相同地址的WSDL与SOAP UI测试它提到关于该项目得到了在SOAPUI创建,但是当我提交请求我得到这样的错误: HTTP/1.1 404未找到 的Cache-Control:私人 服务器:Microsoft-IIS/7.5 X-ASPNET-版本:4.0.30319 X供电,通过:ASP.NET 日期:星期一,2015年10月19日7时54分36秒GMT 的Content-Length:0WCF - 基于SOAP UI测试的基址问题
web.confg低于:
<bindings>
<wsHttpBinding>
<binding name="wsUserName" maxReceivedMessageSize="262144" receiveTimeout="00:10:00" sendTimeout="00:10:00" openTimeout="00:10:00" closeTimeout="00:10:00">
<security mode="Transport">
<!--<message clientCredentialType="UserName" negotiateServiceCredential="false" establishSecurityContext="false" />-->
<transport clientCredentialType="None" />
</security>
</binding>
</wsHttpBinding>
</bindings>
<services>
<service name="Example.SampleService.SampleService">
<host>
<baseAddresses>
<add baseAddress="http://localhost/Example.SampleService/" />
</baseAddresses>
</host>
<endpoint address="" binding="wsHttpBinding" bindingConfiguration="wsUserName" contract="Example.IVaultService" />
<endpoint address="mex" binding="mexHttpsBinding" contract="IMetadataExchange" />
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior>
<!--To avoid disclosing metadata information, set the values below to false before deployment-->
<serviceMetadata httpGetEnabled="true" httpsGetEnabled="true"/>
<!--To receive exception details in faults for debugging purposes, set the value below to true. Set to false before deployment to avoid disclosing exception information-->
<serviceDebug includeExceptionDetailInFaults="false"/>
<serviceCredentials useIdentityConfiguration="true">
</serviceCredentials>
</behavior>
</serviceBehaviors>
</behaviors>
你与WCF测试客户端第一测试(https://msdn.microsoft.com/en-us/library/bb552364.aspx)?这是最明显的方法,在尝试SoapUI之前 – Mimas