I have a WCF service and I am creating the client using the "Add service reference" from VS 2010.
The issue is that service is being invoked asynchronously though "Generate Asynchronous Operations" options unchecked.
So how can I call the service Synchronously ? Where is this behavior defined (on the client or server) ? I am kind of new to WCF.Kindly enlighten
Client is a console application.
I have the "Generate asynchronous operations" unchecked. Even then the proxy contains the following lines which indicate that the method is called Asynchronously.Dont know why :)
[System.ServiceModel.OperationContractAttribute(IsOneWay=true, Action="urn:COBService")]
[System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults=true)]
[System.ServiceModel.ServiceKnownTypeAttribute(typeof(MemberType))]
void ABC(TestProject.ServiceReference1.ProcessCOBRecord request);
[System.ServiceModel.OperationContractAttribute(IsOneWay=true, AsyncPattern=true, Action="urn:COBService")]
System.IAsyncResult BeginABC(TestProject.ServiceReference1.ProcessCOBRecord request, System.**AsyncCallback** callback, object asyncState);
void EndABC(System.IAsyncResult result);