Click here to Skip to main content
15,886,137 members
Everything / WCFServices

WCFServices

WCFServices

Great Reads

by Nejimon CR
This article describes how to put your WCF client configuration in a class library's config file instead of client application's config file
by Khunt Suchit
How to use a WCF Service without adding a Proxy or Service Reference in ASP.net MVC Application
by Srinivas Kumar Pasumarthi
This tip gives information about tools and consumption of WCF Services.
by supreetph
Creating and consuming WCF

Latest Articles

by Sibeesh Passion
How to write unit test cases for our WCF Service with a framework called NUnit
by sajidur rahman
This article describe the way of writing your WCF Service in Professional Application
by Khunt Suchit
How to use a WCF Service without adding a Proxy or Service Reference in ASP.net MVC Application
by Herman.Instance
Very simple problem to solve unexpected easily in IIS Manager

All Articles

Sort by Score

WCFServices 

3 Dec 2015 by Nejimon CR
This article describes how to put your WCF client configuration in a class library's config file instead of client application's config file
30 Dec 2013 by Sandip.Nascar
Same way you protect a web request call, you can follow the same while making an ajax call.Your ajax call is hitting a wcf and you want to hide the wcf url.But only by hiding will not solve your purpose.Like I can easily track the url from the page you are calling even if there is no...
18 Jul 2016 by Khunt Suchit
How to use a WCF Service without adding a Proxy or Service Reference in ASP.net MVC Application
15 Jan 2016 by Wendelius
If you don't want to allow all the methods to be called, simply don't publish them. From the calling side point of view the client sees only the methods your interface defines. You can decide what to include in the interface and what is not inlcuded.If you want to include all of the methods...
12 Dec 2013 by Developer Hemu Patel
I have created wcf service. I m using PerSession for the InstanceContextMode.Is it possible to manually release the instance of service created by wcf service per user request ?Means How to terminate session of user manually by any of the WCF Service Method ?Thanks.
2 Jan 2014 by Srinivas Kumar Pasumarthi
This tip gives information about tools and consumption of WCF Services.
1 May 2014 by Sergey Alexandrovich Kryukov
Before learning .NET serialization, you need to learn what it means and what are the general purposes: http://en.wikipedia.org/wiki/Serialization[^].If you still cannot understand the purpose, think about this: during runtime, you create and modify certain objects in memory. What happens to...
13 Jul 2014 by ArunRajendra
Check SoapUI[^]. It used to be free. I guess its paid now.
10 Sep 2014 by Raul Iloc
1.The first solution, related wit the debugging of any Widnows Service aaplication, is to attach your project from Visual Studio to the to the installed process. You can see details here:http://msdn.microsoft.com/en-us/library/7a50syb3(v=vs.110).aspx[^]2. Because in fact you want to test...
10 Sep 2014 by Sergey Alexandrovich Kryukov
Please see my past answer where I suggest different approaches: Configure Windows Service with UI[^].—SA
17 Sep 2014 by Sergey Alexandrovich Kryukov
Please see my comment to the question. I got an impression that you confused two unrelated concepts.Read about the proxy servers:http://en.wikipedia.org/wiki/Proxy_server[^].As to the WCF proxy, the concept came from the concept of stub as it is understood in distributed...
29 Oct 2014 by Kats2512
Hi,I am having a weird issue, I have multiple WCF services that work fine but every once in a while they all keep returning a message to say that it is undefined, this does not happen all the time, it occurs on a few occasions and then goes back to normal after some time.Any idea what...
11 Nov 2014 by Member 10922498
Hi all, I have just finished a web Service(.SCV) with 5 methods and it's running with out any problem by using WCFTestClient. I successfully invoked all methods with the right expected result.In order to insure of performance and stability of all methods, i'd like to make some stress and...
5 May 2016 by F-ES Sitecore
If it's a REST service then the fact that it is implemented by WCF is irrelevant, just google for articles on "call rest service javascript" and you'll find lots of examplesGetting Started · Consuming a RESTful Web Service with jQuery[^]
1 Nov 2016 by Harpreet05Kaur
HI,Its upto the requirements , whether development of service is required .If You are going to create one Genralized operation for multiple users then service can be created.Others thing could be :REST or SOAPAuthetication and AuthorizationTransfer typeand many more...
15 Nov 2017 by Rajesh Pandya
Hi, I have got the expected out by applying following changes in my code: 1. Changed return type from String to Stream 2. Replaced the code return (new JavaScriptSerializer().Serialize(dict)); with WebOperationContext.Current.OutgoingResponse.ContentType = "application/json; charset=utf-8";...
12 Jul 2020 by Garth J Lancaster
Given your content type is JSON, should not this DataContractSerializer ser = new DataContractSerializer(typeof(Message)); be this DataContractJsonSerializer ser = new DataContractJsonSerializer(typeof(Message)); It's the only thing that is...
5 Nov 2013 by Vishnu Prajapati
Please refer following link :---------------------------Upload file from Html form (multipart/form-data) to WCF REST service as a stream without streaming the whole form's inputs?[^][Edit member="Tadit"]Link text added to reflect the Article/QA title.[/Edit]
18 Nov 2013 by Imadoddin
Hi,I have a project in which I have to use WCF service build by THIRD PARTY. I am trying to consume it by following way given by this but when I click on 'Add Service Reference' same window opens as in this (same) tutorial.. but when I enter url given by Service developer it gives...
26 Nov 2013 by Maciej Los
As Sergey had mentioned, if you can create service, you should be able to call another service ;)There are tons of examples:WCF Data Services[^]Hosting and Consuming WCF Services[^]Calling Service Operations (WCF Data Services)[^]How to: Call WCF Service Operations...
6 Dec 2013 by sankarsan parida
See you did one more mistake passing data in jquery method and use your commented path where it will access webmethod there.I have just copied your code tried it should like $("#btnStartChat").click(function () { //debugger; var U=...
15 Dec 2013 by Developer Hemu Patel
Hello,I have Created WCF REST API which use the EWS Managed API to use the Exchange server functionality. WCF REST API provides the request and and response format in json.But for each client request, I need to do authentication and to create Exchange service object on WCF Rest...
12 Dec 2013 by valza
Sure.All you have to do is mark:[OperationContract(IsInitiating=false, IsTerminating=true)]public void CloseSession(){}And session is gone...You can also set method that's allowed to create session:OperationContract(IsInitiating=true, IsTerminating=false)]public...
15 Dec 2013 by Developer Hemu Patel
Hello,I am developing the WCF REST API for mobile app which required the request and response format in the JSON. Response has the common format like this{"statusCode":"200/400/401/404/405","errorDescription":"blah blah","methodName":{"To":"", "subject":"", }}if Method name...
16 Dec 2013 by dan!sh
You can add another service as a service reference in the WCF service application.
16 Dec 2013 by markand911
I have written a code to stringify an object in JSON format using jquery. var o = new Object();o.Price = "56";o.Reason = "Tea";var followupDate = "17-12-2013";o.Date = new Date(followupDate);var str = JSON.stringify(o);Here the 'str' is the string in which i get a...
16 Dec 2013 by Nirav Prabtani
try this..:)JsonConvert.SerializeObject(this, Formatting.None, new IsoDateTimeConverter() { DateTimeFormat = "yyyy-MM-dd hh:mm:ss" });
17 Dec 2013 by Tejas Vaishnav
you need to increase upload file size limit as per your requirement. and its realted to changes in web.config maxRequestLength [^]also refer this like WCF Streaming: Upload/Download Files Over HTTP[^]
25 Dec 2013 by Peter Leow
Check this out:Webhooks, webhook URLs and a sample implementation example of webhooks[^]
2 Jan 2014 by Bernhard Hiller
Actually you have to send events from the server to the client. It is possible with WCF, Microsoft uses to call such a service a "duplex service". With that search term, you'll find some more detailed help on the web.
7 Jan 2014 by Vic91
I'm building a Windows Service that takes care of our ETL process by executing packages and SQL commands on different cues, like files dropped in a folder and such. This must be done in a windows service hosted on our data warehouse server, because it needs to be monitored from different...
7 Jan 2014 by Reshma Babu
You can use AJAX or JQuery.. Refer these links. WCF RESTful services and consuming them in an HTML page[^] http://weblogs.asp.net/stevewellens/archive/2013/02/03/calling-wcf-services-with-jquery-stripped-down.aspx[^]Please do study the WCF sevices(refer MSDN) first to...
16 Jan 2014 by yakhtarali
I have a wcf ksoap2 service that returns Dictionary>; Now at android side I want to fill my Dictionary> diction; from wcf response. I am new to wcf and android/java, I don't have idea how to do this. Please provide me some better example...
26 Jan 2014 by ponnapureddy
I create sample wcf rest application using entity framework database first approach.I want to serialize and deserialize entity objects to xml format.I am able to serialize with custom classes instead of using Entity classes but unable to serialize and deserialize entity objects (like Person,...
4 Feb 2014 by suhel_khan
Just added this line in my service.cs.previously added all the changes in web.config is backed out.[AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]and its working fine.Thanks everyone.. specially CodeProject...
7 Feb 2014 by OriginalGriff
If you are "always getting struck" by the same error, then it's probably time you stopped doing that...Look at your code: Database dblogin = null; DbConnection dbconn = null; DbCommand lgncmd; string Sp_login = string.Empty; string Str_Details =...
28 Feb 2014 by Krunal Rohit
Very well. You can achieve through it.Web Services are the web components which works in platform independent manner. If you're using .NET framework, then you may find 2 kind of services in it. 1.) ASP .NET Service (.asmx) 2.) WCF Service (.svc)The following describes the...
24 Mar 2014 by Peter Leow
Refer: connect-android-to-ms-sql-server-tutorial[^]
10 Apr 2014 by Animesh Datta
try this way Right Click on your project --> go to properties window -->go to web tab-->clear the specific Page thanks
1 May 2014 by RahulMGunjal
Read following articleFault Contract - Handling Errors in WCF and A Very Simple WCF Service Implementation[^]
4 May 2014 by Vedat Ozan Oner
yes, it is quite possible. actually they are NOT the same services. they are different services running on different machines, having the same interface and data types (service contract+data contract). service, as the name implies, a process listening for other processes (local or remote,...
9 May 2014 by José Amílcar Casimiro
web.config JAFC
14 May 2014 by Abhinav S
Try ExpandWalkthrough: Creating and Accessing WCF Services[^]How to: Access WCF Services with One-Way and Request-Reply Contracts[^]Creating and Consuming Your First WCF Service[^]
29 May 2014 by Richard MacCutchan
Type your question into Google and read the customer reviews. There is no such thing as "best", since everyone's opinion will be based on their own opinions and views. You just need to avoid all the books that get downvoted by lots of people.
9 Jun 2014 by vJay Yadav
try change ur application pool 4.0 / 4.5 to 4.0 / 4.5 classic
11 Jun 2014 by Nirav Prabtani
you can pass it like that.. :)data: "{'a':'"+No1+"','b':'"+No2+"'}",see whole snippet.. :) $(document).ready(function () { $('#BtnRegister').click(function () { debugger; var No1 = document.getElementById('TxtFirstNumber').value; ...
13 Aug 2014 by Sreejesh T J Nair
Create an installer using visual studio Installer setup project.you can create a project likeFile->New Project->Other project Type->Visual Studio Installer->SetUp ProjectAnd Right Click on the Application Folder on left side panel of the windowthenAdd->Assembly and select...
17 Sep 2014 by shivammpi123
Hello All, I want to make a wcf restfull service to upload multiple files.Can anybody have any idea about it.Please help me.....Thanks In Advance
9 Oct 2014 by Sergey Alexandrovich Kryukov
You can find a number of articles on CodeProject: http://www.codeproject.com/search.aspx?q=parallel+port+%28%22.NET%22+OR+%22%23C%22+OR+%22VB.NET%22%29&doctypeid=1[^].—SA
11 Oct 2014 by Sergey Alexandrovich Kryukov
Please see this thread: https://social.msdn.microsoft.com/Forums/en-US/18fc5fc9-8a8f-422f-a891-f584f6b7ce6f/creating-a-wcf-web-service-that-will-be-comsumed-by-a-php-web-app?forum=wcf[^].The answer is useful, it references good articles on related topics, so you could put it all together.—SA
4 Nov 2014 by Member 10619915
I consume wcf service with wsHttpBinding then i face following error"The security timestamp is invalid because its creation time ('2014-11-05T06:23:30.868Z') is in the future. Current time is '2014-11-05T06:17:07.406Z' and allowed clock skew is '00:05:00'."Use this code in config file...
4 Nov 2014 by Praneet Nadkar
Hi,This exception occurs when the service binding has a security binding element, and the difference of the client/server clocks is larger than the allowed value (the default is 5 minutes). In your case it seems like they are apart by about 5'16". There are two alternatives you can consider...
30 Nov 2014 by Kornfeld Eliyahu Peter
There is build-in solutions for secure WCF service.1. Username/password2. SSL (HTTPS) connection3. Client-side certificateBut! First read about WCF security...Use...
15 Dec 2014 by Sergey Alexandrovich Kryukov
Member 10506003 wrote:Actually we are providing services to clients and client have many users so for tracking all the users we match the ip address of the client to ensure client's user is validate or not. If we only use username name and password then it not ensure the client's user is...
19 Dec 2014 by Shahan Ayyub
Instead of sending it like this, try sending a multipart request.Send request from iOS like this[^]Handle it on server side like this[^] (This is a c# code to give you an example).I have used it and it works perfect for both when we have some arguments along with image data or just...
24 Feb 2015 by Sergey Alexandrovich Kryukov
Converting data to base64 is supposed to make considerably larger chunk of data. (What else would you possibly expect?) It just makes no sense except the cases when it is done to use some transport which requires only 8-bit or 7-bit text data. One example is sending data in e-mail the way...
27 Mar 2015 by Abhinav S
Use the ManagementObject class[^].Run a query similar to using (var searcher = new ManagementObjectSearcher(@"Select * From Win32_USBHub"));Here is an example that uses this class - Obtain System Information Using Windows Management Instrumentation Calls[^].
30 Apr 2015 by Suvendu Shekhar Giri
It is very much possible that your service is throwing an error and you have set to redirect to an HTML error page if error occurs. But as it is expecting xml result, that's causing this error. To find the actual error/exception details try disabling html error page redirection. Debugging with...
13 May 2015 by Santhosh Babu Mahimairaj
17 Jun 2015 by Member 11151142
Hello, I have implementing realtime functionality in my project like Realtime charts,real time value in gridview etc. I have also used WCF service. Its working fine but after some time if we want to move on to another page then it tooks time. So what can i do?? How to avoid this situation...
29 Jul 2015 by E.F. Nijboer
You could create a WCF service decorator (which by itself is also a WCF service). This service can then simply expose all methods of the original (pass-through) and decorate it with your additional method(s).Good luck!
8 Sep 2015 by AbubakerIT
Alsalaam Aleykum.All you have to do is to respond to the error. I mean change the date format so the json can parse it to the web service.your code should look like this:var o = new Object();o.Price = "56";o.Reason = "Tea";var followupDate = "17-12-2013";o.Date = new...
25 Sep 2015 by Rajneesh Kumar Verma
Using OData and WCF Service and visualize result using LinqPad
13 Nov 2015 by ZurdoDev
Pretty clear error. Somewhere you are trying to reference something called "Insert\,Update\,Delete" and that is a very bad name. You need to fix that.
14 Dec 2015 by Richard Deeming
Read the following Microsoft knowledgebase article:Considerations for server-side Automation of Office[^]Microsoft does not currently recommend, and does not support, Automation of Microsoft Office applications from any unattended, non-interactive client application or component (including...
27 Apr 2016 by F-ES Sitecore
If security is a concern then WCF will be your best bet.
23 Jun 2016 by F-ES Sitecore
Your class structure needs to match the json structure otherwise the deserialiser doesn't know what properties to populate with what[DataContract]public class Order{ [DataMember(EmitDefaultValue = false)] public string orderMode { get; set; } [DataMember] public...
18 Oct 2016 by #realJSOP
Go here and read up on the various security modes. Only you can make the right decision, because only you have the information needed to answer the question.Authentication and Authorization in WCF Services - Part 1[^]
18 Feb 2017 by OriginalGriff
Look at the error message:Exception In Account Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'.Your WCF service does not run as a "normal user" - it runs under a special anonymous login. So when you try to use Integrated Security as part of your connection string, it fails because it...
14 Jun 2017 by vajihe-ha
Add the following code to the web.config server project ...
5 Jul 2017 by Karthik_Mahalingam
Convert DataTable to Generic List [^] and then use Json.NET [^] to convert the List to JSON[^]. Is converting DataTable data to JSON string a good approach? No, It needs lot of formatting to get the exact output (handling nullable types, date etc )
9 Aug 2017 by Kornfeld Eliyahu Peter
As PhoneGap (or maybe Cordova) uses JavaScript, the question is how to call WCF services using JavaScript... for that you can use JQuery's ajax method (of course you have to enable HTTP/S bindings on your WCF and better to use JSON format for return values)... There is a nice sample of all this...
9 Aug 2017 by David_Wimbley
The problem with a question like this, and what Graeme_Grant brings up is that the company wants you to answer these questions, not get strangers on the internet to answer them for you. If you were to use google and research the fundamentals of your issues you bring up yourself that's one thing...
15 Nov 2017 by Rajesh Pandya
Hello I have created WCF webservice using c# and it return json format data. My code is like below: public string SampleService(Stream data) { string sJSONdata = ""; StreamReader reader = new StreamReader(data); sJSONdata = reader.ReadToEnd(); //'now convert the JSON into a data table...
13 Dec 2017 by PureNsanity
I've got an answer, but I've also got an alternative recommendation for WCF callbacks... Passing data throughout an application should be done via services (in the DDD sense) and a bus. So what will happen is, the service object calling the WCF service will receive the callback information...
5 Oct 2018 by Dave Kreskowiak
If you're asking how to run an executable on the client machine from javascript running in the client browser, you can't. This is a MASSIVE security risk.
4 Nov 2013 by Ranjan.D
Please download the basic skeleton of WCF Solution which I coded for you. http://sdrv.ms/16Bkt2r[^]Don't get me wrong. First of all you need to understand the basics of WCF. 1. The Address , Binding, Contract. 2. How to Create and Consume Service3. How to host the service....
5 Nov 2013 by Lokesh Kondapalli
Hello friends, am facing little bit problem while uploading files to server using wcf restful service.using RestFul - POST method - saving user details its working but when am trying to upload a file its not working. actually am new to this..any helpful links or samplesThanks in...
6 Nov 2013 by Abdullatif M. Abu Al Rub
Hello guys,i'm new to WCF, i want to build a webservice that will be consumed from various clients.. My question: in what cases should i use service-based (mdf) and what other cases to use local database (sdf)..Thanks in advance
7 Nov 2013 by Pratik Bhuva
Here is Good articles on WCF for beginners.A Beginner's Tutorial for Understanding Windows Communication Foundation (WCF)[^]A Beginner's Tutorial on Creating WCF REST Services[^]And for MDF vs SDF read Good discussion over herelocal database (.sdf) or service-based database...
7 Nov 2013 by Atul Pachori
I have a link of wcf service and i used this in my applicationis there any way that i can check wcf service is restful or simple service
14 Nov 2013 by s.amittyagi
Hi FriendsFriend I want to develop an application which use wcf services over HTTP to access live web cam of other wcf client.Please suggest Some Blogs.Like video chatthanks
8 Nov 2013 by thatraja
Why didn't you use Google? :(Streaming over HTTP with WCF[^]Live c# video streaming webcam server and client[^]How to stream video in asp.net using WCF rest service[^]
8 Nov 2013 by Mishra Laxmikant
this was because of network/bandwidth problem or some installed software was responsible. i restarted my server, and it seems successful till now, but still keep watching this scenario.
10 Nov 2013 by sathish4303
I had created wcf service named as "WcfSample1"(which is hosted in server's iis) and created win App Named as "WinSamp"(Which is in one of my local system). In WinSamp app added servicereference for "WcfSample1"I try the below two methods.private void button1_Click(object sender,...
10 Nov 2013 by ArunRajendra
Its evident from the error that the issue with the authentication when call from two different environment. Try this options. Might be it give you some clue.how-do-i-pass-credentials-in-an-iis-hosted-wcf-service[^]not-passing-credentials-to-wcf-service-resulting-in-a-401[^]
11 Nov 2013 by ashokshettym
Hi,I need to consume wcf (soap and rest ) service using Backbone.jsNeed to use simple htmlfile wtc Backbone architecture.The data returned from service will be a collection of data and i need to store data in collectionusing backbone.From collection, need to bind tha data using...
11 Nov 2013 by thatraja
Googled? :( Find more in webConsuming XML Web services in Backbone.js using Jath[^]Backbone.js and RESTful web services[^]
12 Nov 2013 by lilom
hi allI do working one app, have 3 project in solution.1 project selthost,1 project wcf service, 1 project clinet.i want save connectstring connect database sql in app.config of project selthost, when wcf service run will get connectstring in project selthost.how I do??
13 Nov 2013 by Avinash6474
Hi All,I had a wcf service which is hosted on windows 8.1 enterprise version OS. When I am trying to access the service in Intra net, the IIS is allowing http connections. I had generated a self signed certificate and added a https binding on IIS. When I am trying to access...
13 Nov 2013 by Sampath Lokuge
Quote:If you can access the .svc endpoint and ?wsdl page correctly from remote client machine(while the other users cannot), I'd suggest you try putting a simple ASP.NET aspx page in the same application to see if the same access issue also occurs for that user. If the same issue occurs for web...
13 Nov 2013 by ravithejag
hi ,i am developing an WCF REStful service,i want to know which is better for developing this.whether to use ado.net Entity model or by using SQL connections.Please help me regarding this.
13 Nov 2013 by Carlos1907
Any one of them will work.It won't make any difference to the clients that will consume your service.Take the one that you're more comfortable...
13 Nov 2013 by Bhuvanesh Mohankumar
Hi,The type of approach is purely based on the Application and how you are using it.Entity Framework : This is very easy once you are fine with LINQ query, where the Connection and handling data will be taken care by Entity Frame work.Linq will be very easy and simple way to query a...
14 Nov 2013 by jayapen
i am using a rest service to access a method with GET..It works fine When i run that method throught the browser ,but it crashes and gives an exception message when i run it thro the client code string Orderid = 12345 uri = "http://localhost/Rest/RestServiceImpl.svc/testGEt/orderid/"...
14 Nov 2013 by ravithejag
Hi,I am using ADO.NET Entity Model,I need to fetch data from more than 2 store procedures present in the one SP (i am executing more than one SP in this)My SP somewhat looks like thiscreate PROCEDURE [dbo].[SP_ReadAllData] @Id intAS BEGIN IF(@Id is not...
14 Nov 2013 by Simon_Whale
A quick google shows these[^]this was the best article on the subject that I could see from the search.Stored Procedures in the Entity Framework[^]Also here on Code project there is Entity Framework CRUD Operations Using Stored Procedures[^]