小编Huz*_*pal的帖子

.NET 4 WCF SOAP服务Http POST返回404 NOT Found

我有WCF托管的SOAP服务,我可以在发出HTTP GET请求时从浏览器和我的SOAP客户端点击,但是,在执行任何HTTP POST请求时,响应是404 Not Found.

我的Web.config看起来像:

<system.serviceModel>
    <behaviors>
        <serviceBehaviors>
            <behavior>
                <!-- To avoid disclosing metadata information, set the value below to false and remove the metadata endpoint above 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="true"/>
            </behavior>
        </serviceBehaviors>
    </behaviors>
    <serviceHostingEnvironment multipleSiteBindingsEnabled="true" aspNetCompatibilityEnabled="true" />
    <bindings>
        <wsHttpBinding>
            <binding>
                <security mode="Transport">
                    <transport clientCredentialType="Certificate" />
                </security> …
Run Code Online (Sandbox Code Playgroud)

wcf soap wcf-binding

8
推荐指数
1
解决办法
2万
查看次数

标签 统计

soap ×1

wcf ×1

wcf-binding ×1