wcf

WCF Service - MaxReceivedMessageSize Error

Hello there, I have my WCF Service hosted in Windows Service. The client application is a website project to which I add Service reference. Now, Windows Service configuration file has the right settings for MaxReceivedMessageSize: <netTcpBinding> <binding name="netTcp" maxBufferPoolSize="50000000" maxReceivedMessageSize="5000000...

How do I use .Net Remoting through a web proxy?

Hi guys, An application I'm writing needs to use .Net Remoting (I'm aware that WCF is the 'new thing', but it is unfortunately not an option available to us at this time). Anyway, everything works fine if I don't try to use the application through a proxy. However, the application needs to be able to function through proxy web servers....

Scaling singletons

After having some difficult hours mulling over some architecture issues for my server-based application, I feel I am going to have to use singletons to accomplish my goal. Purely for the following reasons (justifying my smell): I don't need to pass expensive objects deep into a call stack I can perform functions on singleton management...

WCF - Error Handling

Hello there, I have my WCF Service hosted in Windows Service. The client application is a website project to which I added the Service reference. I was not using any error logging/tracing... but now I feel I should implement as it will help me not to make void guesses. Please guide me for the best practice so that I can quickly handle...

How do you set up HTTP ACL's for a WCF 3.0 REST application on Windows 7 ?

Hi, I have been reading O'Reilly's "RESTful .NET" and am working with the example program on pg. 24 - 25. This sets up a custom binding for handling REST requests. When I execute the code, it fails as it does not have permission to set up listening on http://localhost:8889/TestHttp According to MSDN (http://msdn.microsoft.com/en-us/l...

WCF Receive-Request Communication In C# Aplication

Hello, I want to use WCF for server to client communication. Start clinet which will send message to server , ones server recive message its display that message in from of MessageBox Confirmation For Asked Question. So reply will be Yes/No which sent back to client. As per result of Yes/No clinet will process ahed ... How can i achiv...

Ideas for a generic WCF Result for Asp.Net MVC

First a bit of background: We have a growing RESTful service layer supporting web pages, gadgets and now the iPhone. These have been implemented in WCF using WebServiceHostFactory to expose JSON and XML endpoints, and we now have a nice backend for easily adding new REST endpoints for other areas of the business after a process of fa...

For WCF, when is it necessary to statically tell a serializer about a data type?

I am using the WCF JSON serializer to produce JSON for use as return data for the ASP.NET MVC framework. I am doing this because the built-in JsonAction does not provide any way to control the naming of public properties in the serialized JSON. public override void ExecuteResult(ControllerContext context) { ... if (Data != null...

IPv4 remote address in WCF

Related to http://stackoverflow.com/questions/391142/how-to-get-the-ip-address-of-a-wcf-remote-endpoint I am using this code to retrieve the remote IP address when a workflow method is invoked: private static string GetRemoteIP() { var oc = OperationContext.Current; var mp = oc.IncomingMessageProperties; var remp = mp[RemoteEndpo...

WCF custom context in Message Headers or Context Binding?

What are the pros/cons of sending context state in WCF Message Headers vs. using one of the WCF Context Bindings? Both seem to be able to solve my problem of out-of-band context state. All of the context data that I have can be serialized as string key-value pairs. I'm currently leaning toward Message Headers as it seems like it might ...

Do WCF 3.5 REST endpoints call associated methods asynchronously?

Hi, When a WCF 3.5 REST endpoint (via WebServiceHost) handles a URI request, does it invoke the associated procedure asynchronously? Thanks, Scott ...

WCF with Message Serialization

Hi, I'm write a simple wcf service that submit request to some gateway to be processed. The request are being executed by executing something like that: I'm writing a WCF service that submit a request to some service which expect to get something like this: gatewayService.SendRequest(request); where gatewayService is the WCF proxy ...

How do I make a client-side helper class in Silverlight?

In Silverlight, I call my Silverlight-enabled WCF service asynchronously to retrieve, say, a list of values for a combobox. On the server, I cache these values for performance. But I want to cache them on the client to prevent the unnecessary round-trip. Now, I understand how to use local storage to cache them except that I do not want ...

Configure WCF endpoint for Plain Old XML (POX)?

Is there anyway to configure WCF endpoint/binding to send the data "as-is" without wrapping as a soap message (with the Envelope tag, etc.)? I'm trying to send an xml using WCF and its ended up wrapped as a soap and i would like that the server side would get it as plain xml (exactly as the original) because i can't change the server s...

Book to know more about XML Web Services in ASP.NET

Hi all, I am involved in a project with UI comprising mainly of Action Script. My role as an ASP.NET programmer is to pull data from DB using Web Services and supply it as XML to the Action Script. It would help me immensely if I could learn more about XML Web Services in ASP.NET. I searched for a new book in this topic but couldn't fi...

Would you create a WCF service for...?

This is a design question. If you had to create a solution with tops 5 clients looking at the SQL Server (clients could read different databases with same schema though) in a Local Network only, would you create a WCF service for the database work (CRUD) or just leave the Data Access Layer direct in the client? which this makes the clie...

Is it possible to use MS Sync Framework + WCF and using streaming instead of buffered messaging?

I have not found any document for using MS Sync Framework + WCF and using streaming instead of buffered messaging. Does anyone have any reference on how to implement it? Thanks! ...

WCF REST WebProtocolException and EnsureStatusIsSuccessful

I am using WCF REST Starter Kit Preview 2 and i have problem with catching exceptions in client side. I am using HttpClient.EnsureStatusIsSuccessful() method to catch my new WebProtocolException(HttpStatusCode.InternalServerError, "Hello World!"); in the client. And since when an InternalServerError happens an ArgumentOutOfRangeE...

how to test if the wcf is really in streaming mode?

I have a operation contract that is like this: public interface ISearch { [OperationContract] System.IO.Stream DownloadFile(string file); } the binding is nettcpbinding, and when i set buffered and streamed transfer mode, the wcf seems both work. so how can i test whether the wcf is working in streamed mode? ...

Get the message of exception when calling a wcf service from jquery

Im calling a WCF service from jquery ajax. Sometimes the service throw some custom errors and when it does I need to get the message of that error. In the error function of my ajax call I have the following code: error: function(data) { alert("responseText: " + data.responseText); } And the respon...