wcf

The maximum message size quota for incoming messages (65536) has been exceeded.

My WCF Service has an OperationContract that accepts, as a parameter, an array of objects. This can potentially be quite large. After looking for fixes for Bad Request: 400, I found the real reason: the maximum message size. I know this question has been asked before in MANY places. I've tried what everyone says: "Increase the sizes ...

Getting "on the wire" Size of Messages in WCF

While I'm making SOAP or REST invocations to WCF, I'd like to have the channel stack on either end (client and server) record the on-the-wire size of the data received. So I'm guessing I need to add a custom behavior to the channel stack on either side. That is, on the server side I'd record the IP-header advertised size that was recei...

Return multiple values with stream

Hi, I have method: var listOfFiles=service .GetFiles(pathsOfFiles.ToArray(); service is my wcf service with streaming ,and I want to have method on this service like : public List<Stream, file> GetFiles(string[] paths) { List<Stream, file> files =new List<Stream, file> foreach(string path in pathsOfFiles) { files.add(path, new File...

What is the purpose of WCF reliable session?

The documentation around this topic is poor. I use WCF services with NetTcpBinding hosted in Windows service. The problem is that a session is dropped when it is inactive for some time. What I need is the session which is always alive. Is WCF reliable session something that can help? Or I can just play with timeout settings? ...

Problems connecting to WCF Service via NetNamedPipeBinding

I'm having trouble figuring out how to get a named pipe WCF service to work. The service is in a seperate assembly from the executable. The config looks like this: <system.serviceModel> <bindings> <netNamedPipeBinding> <binding name="NoSecurityIPC"> <security mode="None" /> </binding> </netNa...

How to programmatically generate WSDL for a WCF service?

Hi All, Kindly let me know how to create WSDL for a WCF service programmatically. Thanks & Regards, Priya.R ...

WCF Publish/Subscribe and using callbacks to send data to specific users

Hello thanks for looking, I'm working on a project at the moment and have become a little stuck. I'm creating a client server app, which allows a client to subscribe to the server to have messages forwarded to it. The issue I'm having is that when the client subscribes I wish for them to only recieve updates that relate to them. The s...

WCF service behind ISA Firewall 2004

Hi, I'm having an issue when trying to access a WCF service behind an ISA Firewall 2004. Apparently my Windows client can connect and receive data when using Buffered mode but not when using Streamed mode. The error I'm getting is 400 Bad Request - Unsupported headers, so I'm not sure what Streamed mode adds to the message headers that...

TargetInvocationException on multiple WCF-service calls

I'm using SL 4 and a .net-4 WCF service with a PollingDuplexHttpBinding. Calling the service and calling the client back from the service works fine. But as soon as I call the service, say 15 times without waiting for the async answer, I receive a TargetInvocationException after getting 0, 1 or 2 successful answers. My attributes for th...

WCF Web Services - Multiple Hop impersonation on the same server

Hi Folks I have 3 web services, all located on the same server. My Client calls Service A, which impersonates the client to call Service B, and all is well. Now, I want to impersonate the caller of service B (which is my username) to call Service C. When I use the same technique as before (AllowedImpersonationLevel = Impersonate, u...

Problems with WCF reliable session (reliable messaging)

Hi, In our WCF application I am trying to configure reliable sessions. Service: <wsHttpBinding> <binding name="BindingStabiHTTP" maxBufferPoolSize="524288" maxReceivedMessageSize="2097152" messageEncoding="Text"> <reliableSession enabled="true" ordered="true" inactivityTimeout="00:10:00"/> ...

Is using jquery to call a WCF Data Service from the UI violating the MVC pattern.

I'm fairly new to ASP.Net MVC 2 and understand the MVC pattern in itself. But my question is what's the best way to populate dropdownlists in the UI sticking to the MVC pattern. Should I be going through the controller? Every article I've seen to do this shows how to do it using javascript and jquery. I have a test application that I'...

Philosophy of [WebInvoke(ResponseFormat = WebMessageFormat.Json)]

Hi everyone, I'm writing what I'm referring to as a POJ (Plain Old JSON) WCF web service - one that takes and emits standard JSON with none of the crap that ASP.NET Ajax likes to add to it. It seems that there are three steps to accomplish this: Change "enableWebScript" to "webHttp" in the endpoint's tag Decorate the method with [We...

Data Services with POCO that are dynamicly Created

Try to understand what the options might be with use of WCF Data Services, Basicly i'm trying to abstract a 3rd party http API by making a RestFull services from the 3rd Party set of api calls. On top of this im intrested in the Odata representation and Api support that Data Services. Example 3rd Party Call, 1)GetAll Vehicles I ...

EF4 POCO WCF Serialization problems (no lazy loading, proxy/no proxy, circular references, etc)

OK, I want to make sure I cover my situation and everything I've tried thoroughly. I'm pretty sure what I need/want can be done, but I haven't quite found the perfect combination for success. I'm utilizing Entity Framework 4 RTM and its POCO support. I'm looking to query for an entity (Config) that contains a many-to-many relationship...

WCF: DataContractAttribute and Namespace

When I auto-generate my client classes I get these attributes. <System.Diagnostics.DebuggerStepThroughAttribute(), _ System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0"), _ System.Runtime.Serialization.DataContractAttribute(Name:="FeedStatusReport", [Namespace]:="http://schemas.datacontract.org/200...

debug=true in .svc file?

Our WCF svc files contain the following: <%@ ServiceHost Service="Foo" Factory="Bar" Language="C#" Debug="true" %> What does debug=true mean in this case? web.config has debug=false, but I don't know what this one means and can't find a reference on MSDN. ...

Ensuring that all callbacks were completed before sending a new request through a DuplexChannel using WCF

I am experiencing some issues when using a Callback in a WCF project. First, the server invokes some function Foo on the client which then forwards the request to a Windows Forms GUI: GUI CLASS delegate void DoForward(); public void ForwardToGui() { if (this.cmdSomeButton.InvokeRequired) { DoForward d = new DoForward(Forwa...

Silverlight RIA Services. WCF. Any Query that requests more than 1.5MB fails. Load operation Failed.

Been working on this a couple of days now. We're starting a LOB app with Silverlight and we're running into a big obstacle right away. Began using Fiddler to examine what was going on and found out something very interesting. Any queries (IQueryable functions on the server solution) that return more than 1.5MB of data will fail with t...

Configuring a WCF Client to Use UserName Credentials On the Request and Check Certificate Credentials On the Response

I'm trying to use WCF to consume a web service provided by a third-party's Oracle Application Server. I pass a username and password in a UsernameToken as part of the request and as part of the response the web service returns a standard security tag in the header which includes a digest and signature. With my current setup, I successfu...