<Fault xmlns="http://schemas.microsoft.com/ws/2005/05/envelope/none"> - <Code> <Value>Sender</Value> - <Subcode> <Value xmlns:a="http://schemas.microsoft.com/ws/2005/05/addressing/none">a:ActionNotSupported</Value> </Subcode> </Code> - <Reason> <Text xml:lang="en-US">The message with Action '' cannot be processed at the receiver, due to a ContractFilter mismatch at the EndpointDispatcher. This may be because of either a contract mismatch (mismatched Actions between sender and receiver) or a binding/security mismatch between the sender and the receiver. Check that sender and receiver have the same contract and the same binding (including security requirements, e.g. Message, Transport, None).</Text> </Reason> </Fault>
<system.serviceModel> <bindings> <webHttpBinding> <binding name="webBinding"> <security mode="Transport"> </security> </binding> </webHttpBinding> </bindings> <services> <service name="MyService" behaviorConfiguration="BehConfig"> <endpoint contract="IMyService" address="" binding="webHttpBinding" bindingConfiguration="webBinding" /> </service> </services> <behaviors> <serviceBehaviors> <behavior name="BehConfig"> <serviceMetadata httpsGetEnabled="true"/> <serviceDebug includeExceptionDetailInFaults="false"/> </behavior> </serviceBehaviors> </behaviors> <serviceHostingEnvironment multipleSiteBindingsEnabled="true"/> </system.serviceModel>
<endpoint kind="webHttpEndpoint" binding="webHttpBinding" bindingConfiguration="wsBinding" contract="SS_Rest.ITestSOA" />
<?xml version="1.0" encoding="UTF-8"?> <configuration> <system.web> <compilation debug="true" strict="false" explicit="true" targetFramework="4.0" /> <httpRuntime /> <pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID" /> </system.web> <appSettings> <!--<add key="Constr" value="Data Source=;Initial Catalog=;User ID=;Password="/>--> <add key="Constr" value="YourConnection" /> </appSettings> <system.serviceModel> <services> <service name="MyService" behaviorConfiguration="BehConfig"> <endpoint address="" binding="webHttpBinding" contract="IMyService " behaviorConfiguration="web" /> </service> </services> <behaviors> <serviceBehaviors> <behavior name="BehConfig"> <serviceMetadata httpGetEnabled="true" /> <serviceDebug includeExceptionDetailInFaults="false" /> </behavior> </serviceBehaviors> <endpointBehaviors> <behavior name="web"> <webHttp /> </behavior> </endpointBehaviors> </behaviors> <serviceHostingEnvironment multipleSiteBindingsEnabled="true" /> </system.serviceModel> <system.webServer> <modules runAllManagedModulesForAllRequests="true" /> <!-- To browse web app root directory during debugging, set the value below to true. Set to false before deployment to avoid disclosing web app folder information. --> <directoryBrowse enabled="true" /> <httpRedirect enabled="false" /> </system.webServer> </configuration>
<?xml version="1.0" encoding="UTF-8"?> <configuration> <system.web> <compilation debug="true" strict="false" explicit="true" targetFramework="4.0" /> <httpRuntime maxUrlLength="500" /> </system.web> <appSettings> <add key="Constr" value="Data Source=YourConnection" /> </appSettings> <system.serviceModel> <services> <service name="MyService"> <endpoint address="" binding="webHttpBinding" bindingConfiguration="secureHttpBinding" contract="IMyService" behaviorConfiguration="web" /> </service> </services> <bindings><webHttpBinding><binding name="secureHttpBinding" > <security mode="Transport"> <transport clientCredentialType="None" /> </security> </binding> </webHttpBinding> </bindings> <behaviors> <endpointBehaviors> <behavior name="web"> <webHttp/> </behavior> </endpointBehaviors> <serviceBehaviors> <behavior> <!-- To avoid disclosing metadata information, set the value below to false and remove the metadata endpoint above before deployment --> <serviceMetadata httpsGetEnabled="true" httpGetEnabled="false" /> <serviceDebug includeExceptionDetailInFaults="false" /> </behavior> </serviceBehaviors> </behaviors> <serviceHostingEnvironment multipleSiteBindingsEnabled="true" /> </system.serviceModel> <system.webServer> <modules runAllManagedModulesForAllRequests="true" /> <httpRedirect enabled="false" /> </system.webServer> </configuration>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)