Click here to Skip to main content
15,887,746 members
Everything / WCF

WCF

WCF

Great Reads

by Daniel Vaughan
Calcium provides much of what one needs to rapidly build a multifaceted and sophisticated modular application. Includes a host of modules and services, and an infrastructure that is ready to use in your next application.
by Roman Kiss
This article describes a design, implementation and usage of the Custom Routing Manager for managing messages via Routing Service built-in .Net 4 Technology.
by Roman Kiss
This article describes a design, implementation and tooling of model driven WorkflowServices logically centralized in the Repository and physically decentralized for their runtime projecting.
by Max Paulousky
This article presents the techniques and caveats of building Silverlight applications that can be notified about database state changes via polling duplex. WSHttp binding and CLR triggers are used to implement the solution as well.

Latest Articles

by NikStar
Using OutgoingMessageProperties and OperationContextScope to implement authorization by http header for WCF client that communicates with non WCF-based web services.
by ToughDev
How to fix PlatformNotSupportedException when running WCF apps
by lvmcastro
A tutorial showing how to use a smartcard API, a SharePoint extension and web services, to add a qualified electronic signature (QES) to a PDF file located in a SharePoint online library.

All Articles

Sort by Title

WCF 

1 Jun 2013 by freeheartxiii
Hi, there!I am the new guy on WCF. These days, I'am learning that.I made a empty solution, and this solution contains 4 projects: two c# libs, and two consoles as host and client. the programs ran well, but when client started after host, it raise this info in debug output window: "A first...
2 Jun 2013 by PrissySC
Actually, I will almost bet that while this is the exception that was caught that it is not the problem. You could catch and handle this and ignore it, but you need to find the underlying cause. Check your output, and do a try catch on the block that you suspect. Print out the exception in a...
26 Nov 2009 by gselvamoorthy
Please help me urgent, Why dataset is not working in WCF service after installed in serverIt's throwing "Dataset not be serialized" error
27 Nov 2009 by Christian Graus
1 - don't tell us it's urgent, it's not to us2 - post some code3 - post the FULL error, not your summary.4 - if it's urgent, google the exact error message, in quotes.
4 Jul 2012 by .net333
hi friendz, i am getting the huge amount of data(Contacts) from Sql server..i am getting the following error...Error:An error occurred while receiving the HTTP response to http://localhost:8732/Design_Time_Addresses/ICloudServices/ContactService/. This could be due to the...
5 Jul 2012 by Libish Varghese Jacob
Here this kind of exception can happen if your receiveTimeout is not large enough.Here in your configuration, you are setting receiveTimeout="05:00:00" in "binding name="basicHttpBindingSettings" " but you are not associating it with your end point. Either remove the name attribute from the...
12 Nov 2014 by Member 11223520
I do all the instruction to build odata with wcf data service but i need $format=json working
14 Nov 2016 by Member 11589429
I have created WCF Rest service that input/para from client and save it in database and knowledge with identity of table in which data is added.When I am consuming service throgh client that is nothing but web application making url as web request and getting proper output.But when I am...
14 Nov 2016 by Tadit Dash (ତଡିତ୍ କୁମାର ଦାଶ)
Refer - c# - Run WCF methods from a browser - Stack Overflow[^] for the steps.
13 Jan 2013 by Tharaka MTR
A solution to the problem
3 Jul 2012 by andrusha007
I have N quantity of "clients", and each one has to implement a web service for my .Net app to consume. I dont want to add a service reference for each client because they can change at any moment, as well as the URLs, so I store the URLs on a database and dinamycally create the endpoint...
4 Nov 2012 by snell_ramesh
Hi good folks,I am trying to open a file and read the data using Silverlight where the file/Stream is effectively opened via a WCF class that encapsulates a stream.When I attempt to implement what is described above the Async event handier return parameter, e.Result returns a Byte[] rather...
28 Sep 2012 by prince_arjun
Im trying to access a service through service reference in my .Net client applicationWhen im accessing the service method, i get the below error: System.Xml.XmlException was caught Message=End element 'Body' from namespace 'http://schemas.xmlsoap.org/soap/envelope/' expected....
20 Jan 2010 by Vinayaka Krishna Shenoy
.NET Coding Best Practices - Vinayak's thumb rulesDo not hard code strings/ numerics. Instead of that use constants as shown below.Bad practice int Count; Count = 100; if( Count == 0 ) { // DO something… }Good practice int Count; Count = 100; private...
27 Dec 2006 by Anil Kr. Sharma
10 Jan 2011 by rajesh_ncc
Hi,This is Rajesh Kumar K. from Chennai based company.I am working with .net framework 2.0.I am very new to .net framework 4.0. Could you please guide me to a tutorial or sample or guide or notes. Thanks for your future help.regards,Rajesh Kumar K.
29 Dec 2010 by #realJSOP
No. That subject is way to broad to be answered here. The best thing you can do is develop some initiative and google ".Net 4.0". There are MILLIONS of results awaiting your perusal.
29 Dec 2010 by Hiren solanki
Yes why not ?See the big tutorial HERE[^]
29 Dec 2010 by Abhinav S
Go to the msdn website - you should get some real good videos and quickstarts there.
10 Jan 2011 by Anupama Roy
Take a look at this to know about Optional Parameters & Some New features in .Net 4.0http://dotnetforyou.wordpress.com/category/net/net4-0/[^]
22 Jan 2014 by Akashkumar Bammrotwar
I had developed a WCF Service in .net framework 4.0 and Client in .net framework 3.5. Does it create a problem? I mean it is possible to for .net framework 3.5 can consume the service which is build on .net framework 4.0 and using binding "wsDualHttpBinding"? I had tested in the two situation...
22 Jan 2014 by Sampath Lokuge
No,Always you can do this.B'cos it's having backward compatibility with the earlier version.So, if you're having something wrong,it should give the same error on your local host also.Hence, you don't have any problem with local host means where may be the problem with something else.So try to...
31 Aug 2010 by Livio Francescucci
How to create an ASP.NET gridview AJAX enabled connected with WCF SOAP and REST webservices.
12 May 2014 by Brad Joss
[RegSave] your property to the Registry, and more.
31 Jan 2012 by Survalent
I am unable to handle and suppress errors in my service without clients knowing about them. Someone tell me what I am doing wrong.Given a WCF service function as followspublic MyType GetMyType(bool blCry) { try { if(blCry) throw...
1 Oct 2019 by Chuck Salerno
I have an MVVM WPF application I'm trying to upload a large byte[] to the server to store in a stable but running into content mismatch and Request too large errors. I have converted over to using the Stream capability on the Web service but not sure I have the client code correct. //Client...
29 May 2015 by jigar001
I have 1 wcf service which have 4 method and we have 2 wcf client. Now we want client 1 got only method 1 & 2 and client 1 got only method 3 & 4. We can do this by took 2 interface and create individual proxy for both client but when we provide the end point to client that can be access...
29 May 2015 by Manuele Camilletti
You could implement multiple endpoints to provide to clientOtherwise you could check the header of message using MessageContract An example for second option:http://dotnetmentors.com/tutorial-on-wcf-message-contract-by-example.aspx[^]
22 Nov 2013 by Vagif Abilov
The article describes limitations of WCF Data Services client and shows how Simple.OData.Client can become a better alternative
4 Jul 2014 by Imran Abdul Ghani
Here are 2 simple ways to configure WCF binding
26 May 2014 by Imran Abdul Ghani
This post discusses 3 techniques for instance management in WCF.
16 Jun 2014 by Imran Abdul Ghani
In Windows Communication Foundation, for a client application to communicate with a WCF Service, we have following options: Using ChannelFactory Generating Proxies I have already discussed about difference between ChannelFactory and Proxies in one of my previous WCF Tutorial on this blog. In this ar
13 Aug 2010 by Shivprasad koirala
4 simple steps to consume WCF service using Silverlight
28 Mar 2010 by Shivprasad koirala, Anup Hosur
4 steps to enable instrumentation in WCF
23 Jun 2015 by Member 8832682
HI to all,I had tried to make a wcf service and call that wcf service using the ajax post but i got a error 405 method not allowed i am running both application in the different port and different domain. but i got a 405 method not allowed error.
25 Jun 2015 by abhishek_singh
Please try this one $.support.cors = true;in your jquery files.
17 May 2016 by hussainasdsd
i created a wcf service in asp.net for phone gap application where i will access those method using ajax in phonegap.. method working on Working Linkbut when i am tring same method locally it giver 405 error:Request URL:http://www.halawiat.com/Services/Service.svc/GetCustomersRequest...
17 May 2016 by Debendra0256
That is CORS related issue .these problem you might face when your WCF service is hosted in one domain and your client in another,There are several tricks are there to fix this issue,as i have worked in WEBAPI there are several document available in net by which i fixed the issue.Please check...
23 Sep 2013 by Imran Abdul Ghani
5 simple steps to create your first RESTful service
31 Jan 2012 by sjones_30
I can navigate to http://localhost:8731 but I get the 503 error when trying to hit http://localhost:8731/Design_Time_Addresses/RackleyService.DataConnection/AcordConnection/ ...
9 Feb 2012 by killabyte
Sounds like you might need to configure your crossdomain.xml file a little more to allow request throughhttp://msdn.microsoft.com/en-us/library/cc197955(VS.95).aspx[^]
20 May 2010 by Shivprasad koirala
6 steps to implement DUAL security on WCF using User name + SSL
12 Aug 2010 by Shivprasad koirala
In this article, we will look at how we can do database operations using SilverLight.
30 Apr 2012 by James Poulose
Pass meta data from host to implementation
23 Apr 2013 by ponnapuhanu
I am getting fiddler 504 error when am calling wcf rest service using fiddler. But it is working fine when i change the response format to xml.anybody resolve the problem.The source code given below.[OperationContract][WebInvoke( ...
4 Feb 2016 by Dave Kreskowiak
I seriously doubt you'll ever find one that covers all those topics in one plan.You'll stuff that covers sections of those topics, for example, Introduction to the .NET Framework, Introduction to C#, Unit Testing for Beginners, but you'll never anything that covers all of this stuff advanced...
24 Nov 2013 by Henry Hunt
I have been trying for a few days to get something working but have had no success so I have got to the the point where I want to ask someone directly. I am trying to make an application that has a central server/responder on a computer that has the data I need and a client on another computer...
24 Nov 2013 by Sergey Alexandrovich Kryukov
You can find some introduction with simplest code sample in many places, but why not looking at MSDN documentation first? You can start, say, here: http://msdn.microsoft.com/en-us/library/dd936243.aspx[^].A complete demo sample is available.—SA
14 Aug 2012 by cutie1
In my [OperationContract] attribute I have written three methods like: [OperationContract(Name="RolebyName")] [WebInvoke(UriTemplate = "Role/{name}", Method = "GET", RequestFormat =WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json,BodyStyle = WebMessageBodyStyle.Bare)]...
14 Aug 2012 by Kenneth Haugland
Im sorry but I have not seen a single example were this is done in the way you want. Think they would have to be implemented per method as you have done now :)
13 Mar 2013 by Ger Hayden
I'm having a problem with a WCF call where [ServiceKnownType] is required.the relevant service contract has [ServiceKnownType(typeof(List
21 Jun 2013 by Abdi tombang
Dear Friends,I want to measure the quality of my web application based Service Oriented Architecture.There are a standard for webservice quality factor from OASIS :Web Services Quality Factors Version...
11 Apr 2011 by Brian C Hart
I am getting a really annoying newbie problem.I am utilizing an N-tier architecture. I have a DataEntity layer and a DataAccess tier and then a WCF service sandwiched in between the data entity layer and the ASP.NET Web Site-based Presentation layer.I went ahead and added a Service...
18 Jun 2011 by Brian C Hart
I also found that you'll want to set up a connection to the adapter as follows:using System;using System.Web.UI.WebControls;public partial class _Default : System.Web.UI.Page{ DataServiceReference.AbstractsClient _abstractsClient = null; protected void Page_Load(object...
19 Jun 2011 by Chandan Prasad Das
I think the problem is with specifying TypeName="DataServiceReference.DataServiceClient". Specify it as Your ProjectName.DataServiceReference as DataServiceClient is the class created by WCF automatically for you to handle all low level calls.
23 Feb 2011 by #realJSOP
I have a WCF service that I've created, and when a client calls one of the service methods, I want to post an event from the service host to the app that instantiated it (NOT to the client app), and have the app that handle those events. I tried this:public class MyService :...
25 Jan 2011 by Nish Nishant
John,For this to work, your service has to be a singleton service. Otherwise you have no control over the instance of the service class that's being used at any time.And once you have a singleton service, you can use the SingletonInstance property (you'll need to cast it to your service...
23 Feb 2011 by #realJSOP
While Nish's answer steered me in the right direction, the more precise solution was to add the following attribute to the service declaration:[ServiceBehavior(InstanceContextMode=InstanceContextMode.Single)]
10 Feb 2011 by Jimmy_Al
HelloI am running a web service, that works fine on http.But when running the same service on https i get this error when I call a service method:"Could not find any resources appropriate for the specified culture or the neutral culture. Make sure "System.Web.resources" was correctly...
9 Feb 2011 by #realJSOP
Contact the manufacturer and describe your problem.I googled "wcf web service using https binding", anBTW, I d got 242,000 results.I then googled "Could not find any resources appropriate for the specified culture or the neutral culture.", and got back 57,300 results.
22 Dec 2015 by MarcusCole6833
A basic tutorial on how to Use WCF service with the Entity Framework
6 Jun 2013 by Ankurkumarbora
This tip contains a solution for a Batch process which invokes a RESTful WCF Service.
16 Jul 2015 by Math08avan
A simple example for CRUD actions using WCF service in ASP.NET
8 May 2013 by Ger Hayden
The purpose of this article is to create a service which accepts messages from any client and redistributes those messages to all subscribed clients, and a client that can subscribe to the service, send messages to it and receive unrelated messages from it regardless of how many it sends.
11 Dec 2011 by Raj Lal
Chapter 11 of "Fun with Silverlight 4" More information at http://silverlightfun.com
1 Mar 2013 by Rahul Rajat Singh
This article discusses about exception handling in WCF services, FaultExceptions and introduces the FaultContract.
2 Apr 2013 by Rahul Rajat Singh
This article discusses about the various ways of managing the WCF service class instances.
13 Dec 2012 by Rahul Rajat Singh
We will try to see the basic concepts behind WCF and will try to implement a small WCF service.
3 Apr 2013 by Rahul Rajat Singh
In this article we will try to understand what are WCF REST services and how can we create one.
22 Feb 2013 by Rahul Rajat Singh
In this article we will see how we can host a WCF service(IIS Hosting and Self Hosting).
25 Mar 2013 by Rahul Rajat Singh
This article talks about managing sequence of operations in a WCF service.
9 Feb 2009 by Rahman Masudur
This article shows how to use a WCF service in XBAP or a WPF browser application.
29 Jan 2007 by jdkulkarni
The article describes details of WCF and also has source code for different types of binding.
9 May 2011 by Alaa'.Kabbani
Hello ExpertsI'm working on an Archiving System.Which I have to make for the user a tool to specify the Document-Life as a workflow. and then he just press run to be executed.A scenario for example: a specify document goes to HR department then they check if its correct then sign it then...
28 Aug 2012 by kaakad
Hi,I have created a windows service and added that service reference to my metro application.I have created a package and installed the package in another system and also the windows service. The application has installed successfully. Now I try to run the application. the below...
28 Aug 2012 by BobJanova
Here's your clue:http://localhost:8732/Design_Time_Addresses/TFSClientWindowsService/TFSCClientWindowsService/Do you know what 'localhost' is? It's the local machine. You're telling your web service client to go and find a service on the same machine! Of course that works on your dev...
28 Aug 2012 by kaakad
Hi Bobjanova,Thanks for your response.I basically created a windows service setup and metro application Package.Now I install both service and package in other machine . So service should be local for that machine.I have also removed the port and gave the base address as...
8 Sep 2008 by cesar_boucas
A custom derivative of ServiceHostFactory to control how WCF service hosts are created.
19 Jun 2014 by Simon Gulliver
How to write your own customised ORM, targeted at multi-tier applications
19 Sep 2009 by jebarson
New features of Visual Studio 2010 discussed
27 Jul 2010 by Raymund Macaalay
A Dynamic Word Template that Generates information from SQL
27 Jul 2009 by Nish Nishant
The article shows how to interop between a WCF service and a WWS client, and also how to rewrite the WCF service in WWS retaining compatibility with existing WCF clients.
3 Feb 2010 by User 4677916
This article presents a reusable class and technique for easily doing Asynchronous Programming using the Begin/End Pattern and the new Reactive Extensions for .NET (Rx) library.
7 Jul 2014 by Michael Bergman
Using Windows Communication Foundation to build a simple web server
27 Jan 2016 by wells cheung
AJAX Progress Bar for ASP.NET.
3 Feb 2010 by Dr. Song Li
This article introduces a more flexible and secure method to configure Silverlight applications using the Web.config file from the ASP.NET host application.
11 Sep 2012 by Ws Hu
This article tries to introduce a decoupled, unit-testable, deployment-flexible, implementation-efficient and validation-flexible N-Tier architecture in .NET
15 Dec 2011 by lizichao1983
The result of AppDomain.CurrentDomain.BaseDirectory.ToString() is alway like D:\C\WpfApplication2\ConsoleApp\bin\Debug\.But in WCF,the result is like D:\C\WpfApplication2\ConsoleApp\bin\Debug.I wonder why?
15 Dec 2011 by seravan
Kindly refer here:http://msdn.microsoft.com/en-us/library/system.appdomain.basedirectory.aspx[^]
14 May 2007 by Jason Henderson
An example of how to use Windows Communication Foundation services.
29 Oct 2015 by Rion Williams
A quick rundown of web services in ASP.NET: Web API and WCF
1 Nov 2015 by 1234ctk
when I tried to run my user interface in the client computer (in the same network) I got a message of the current error:"A remote side security requirement was not fulfilled during authentication. Try increasing the ProtectionLevel and/or ImpersonationLevel."my wcf service is using...
18 May 2017 by Jon Campbell
How to utilize WCF to allow a single instance of any WPF application without needing mutexes, extra assemblies, or special "hacks".
15 Nov 2008 by marc_anic
A derivation of XmlWriterTraceListener that manages the size of your trace files automatically
28 Dec 2010 by Krishnan Srinivasan
I have self hosted a WCF Service over BasicHttpBinding consumed by an ASMX Client. I'm simulating a concurrent user load of 1200 users. The service method takes a string parameter and returns a string. The data exchanged is less than 10KB. The processing time for a request is fixed at 2 seconds...
30 Aug 2009 by Xavier Spileers
An introduction on Silverlight for developers of administrative applications. The article starts by explaining the basics of WPF and then delves deeper in the business-oriented aspects.