I have a WCF Service with a method decorated with [OperationContract(IsOneWay=true)].
[ServiceContract]
public interface IService
{
[OperationContract(IsOneWay=true)]
void DoThis(DateTime value);
}
When I call this method, no exception was raised. However, nothing inside the WCF method was executed such as database operations (insert, update, ...)
What am I missing?
My WCF Configuration
<system.serviceModel>
<bindings>
<basicHttpBinding>
<binding closeTimeout="00:10:00" openTimeout="00:10:00" receiveTimeout="00:10:00" sendTimeout="00:10:00"
maxBufferSize="50000000" maxBufferPoolSize="50000000" maxReceivedMessageSize="50000000">
<readerQuotas maxDepth="500000000" maxStringContentLength="500000000" maxArrayLength="500000000"
maxBytesPerRead="500000000" maxNameTableCharCount="500000000" />
</binding>
</basicHttpBinding>
</bindings>
<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"/>
<!-- 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"/>
<dataContractSerializer ignoreExtensionDataObject="true" maxItemsInObjectGraph="6553600"/>
<serviceThrottling maxConcurrentCalls="500" maxConcurrentInstances="500" maxConcurrentSessions="500"/>
</behavior>
</serviceBehaviors>
</behaviors>
<serviceHostingEnvironment multipleSiteBindingsEnabled="true" />
</system.serviceModel>
How I call my service:
MyService proxy = new MyService();
proxy.DoThis(DateTime.Now);
Other WCF methods work as expected, just without the [OperationContract(IsOneWay=true)].
Thanks in advance.
IsOneway=false? You only said that other methods work as expected. - Clemens