.NET 4 WCF SOAP Service Http-POST wird 404 not Found

Ich habe gehostete WCF-SOAP-service, die ich bin in der Lage zu schlagen aus dem browser sowie aus meinem SOAP-client gut, wenn Sie HTTP-GET-Anfragen, jedoch, wenn Sie mit HTTP POST-Anfragen, die Antwort ist ein 404 Nicht Gefunden.

Meine Web.config sieht wie folgt aus:

<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>
                <readerQuotas maxDepth="15" maxStringContentLength="524288" maxArrayLength="16384" maxBytesPerRead="4096" maxNameTableCharCount="16384" />
            </binding>
        </wsHttpBinding>
        <basicHttpBinding>
            <binding>
                <readerQuotas maxDepth="15" maxStringContentLength="524288" maxArrayLength="16384" maxBytesPerRead="4096" maxNameTableCharCount="16384" />
            </binding>
        </basicHttpBinding>
    </bindings>
</system.serviceModel>

Mein service definiert ist, in das markup mit dem .svc-Datei als:

<%@ ServiceHost Language="C#" Debug="true" Service="Boca.WebServices.Billing.QBService" CodeBehind="QBService.svc.cs" %>

Wieder, ich schlagen können meinen service über den browser und ein SOAP-client wie folgt mithilfe einer HTTP-GET, aber nicht mit HTTP POST:

Was mache ich falsch? Sollte ich nicht mit dem .svc-markup und einfach definieren, meinen Dienst im Web.config?

UPDATE:

Wenn ich "start debug" mein WCF-Projekt innerhalb von VS 2010 mit IIS Express auf einem localhost:8181 port, der HTTP-POSTS an die service-arbeiten. Es ist nur, wenn der service gehostet wird, über den IIS HTTP-POST an den Dienst abgelehnt werden oder gar nicht gefunden.

Schreibe einen Kommentar