wcf

WCF webservice: HTTP/1.1 400 Bad Request while sending large input

I am connecting to a WCF based webservice. For certain methods, the input contains a list of objects/structures. When the number of items in this list increases beyond a certain number, the service fails with HTTP/1.1 400 Bad Request when I try to test the same using SOAPUI. I tried changing the web.config file with the following changes...

Is there an execution timeout for WCF operations marked as OneWay?

Does the OneWay operations in WCF service execute as long as the operation is complete? By my experiment, I think there is no timeout. I was able to run an operation for half an hour. (I closed after that) Can someone experienced in WCF answer this? If there is a timeout, where can I specify it ...

Changing "web reference" to "service reference" changes method signature

I'm helping out a colleague on this one so if I'm missing some details that's why. We have an asp.net 3.5 web application calling a WCF service. Originally the app used a "Web Reference" to register the service however after having some trouble and burning an incident with Microsoft their solution was to replace the "Web Reference" wit...

WCF return types

What is the list of valid WCF return types? I know some but I want to know all of them: Primitive types (string, int32, etc...) Complex types with DataContract or Serializable attributes Stream Message SyndicationFeedFormatter void? POCOs? ...

MTOM Encoding and Custom binding

How do I configure custom binding and MTOM encoding? I have a custom binding like given below, <customBinding> <binding name="stsBinding"> <security authenticationMode="UserNameOverTransport" requireDerivedKeys="false" keyEntropyMode="ServerEntropy" require...

using Self-Signed SSL certificate with WCF ws2007FederationBinding

Hi people, I'm at my wit's end, and I'm hoping you can help me. I'm trying to get active WS-Trust authentication going with WIF from a web application to a web service, using a self-signed certificate. I've already tried the following: 1) Install certificate in machine certificate store under Trusted Root Certification Authorities, Pe...

What is the base address of a netTcpBinding in WCF?

In the "Default NetTcpBinding" section on WCF on MSDN is the following example. <endpoint address="" binding="netTcpBinding" contract="Microsoft.ServiceModel.Samples.ICalculator" /> There seems to be no information on what the effective address is if set to null. Elsewhere I received advice to set it to: net.tcp://localh...

Possible to have multiple SAME WCF window service on same machine

Kind of like the named instanced sql server. I'd like to install the same wcf window service on the same machine so having multiple instances of it. I'd like each of them to connect to a different Databases (different environment) ...

Can you use WCF Data Services (ne OData, ne Astoria, ne ADO.NET Data Service) with NetTcpBinding?

I'm looking at creating a data query WCF service over a slow satellite connection and I really like WCF Data Services. The problem I see is that HTTP is a very verbose format and since everything I'm doing is internal and .NET, is it possible to use NetTcpBinding instead to reduce some of the overhead? Is this even possible? Advisable? ...

WCF service with wsHttpBinding and x509 Certificate - can I consume/connect using VB/C# WITH PHP?

We connect to a web service hosted by another company. We send a customer's basic info to the service, and it replies with rates/prices for that customer. I am a PHP guy -- started out playing with basic HTML, then delved into PHP about 8 years ago, and my entire web app is PHP with javascrtipt/ajax mixed in as needed. I'm a learn-as-...

clientaccesspolicy.xml in Silverlight

I realise this question has been asked 100 times, but i've looked through the other answers and can't find a solution that works for me. I have a SilverLight 4 project which contains a WCF service. every time i make a request to the service i get this error: An error occurred while trying to make a request to URI 'http://localhos...

VIP WCF, Only My Application can see but no else can see any reference at all

There is a WCF I created on the server, running. And I built an application that connects this url. This is an exe that can be run in every PC. The thing that I want, only this app can see this WCF, and can use its utilities, the others can see nothing, no url , no reference, no wsdl of the web service. How can I create this environmen...

Windows Service/Process - exchange data/instructions

I need a way to exchange data between a process and a windows service. The process (Windows Form Application, Console Application, in the future also a Web Solution) needs to instruct and interact with the windows service. I want to know which way is the best to accompplish this. I'll write the solution in C#, .NET Framework version do...

How to create a WCF reply service for AJAX unit testing

Dear all I want to create a WCF service that will simply reply back the query string, HTTP headers, and the HTTP verb used in a request it received. I want to use it to unittest a AJAX enabled JavaScript framework I am building so I can verify that the HTTP headers and HTTP verbs are being set correctly. Basically I need a way to make...

wcf client local function

I have the following class [DataContract] public class A { private List<B> b= new List<B>(); public float getSum() { float sum= 0; foreach (B b1 in b) { sum+= b1.sum; } return sum; } [DataMember] public int B { get { return b; } set { b =...

WCF 400 Bad Request for Large Data

Hi , I am developing a REST service in .NET 4.0 and here is my web.config file I an new to .NET and have been struggling for two days to understand why I am not able to upload data more than ~60KB. I understood by googling that that the BufferSize has to be increased and tried modifing web.config file in different ways which never wor...

OData (WCF Data Service) with Subsonic 3

Hi all, I'm trying to use WCF Data Service with Subsonic, but ran into this error when I try to access my "service.svc". I have 2 projects, one is a class library (called "OData") that has Subsonic t4 templates to generate the classes for my table. Another is an ASP.NET MVC2 project that references to the "OData" project. I then create...

WCF giving me "The operation cannot be completed because the pipe was closed." Timeout exception

I have a service that talks to other services on the same machine over named pipes. Everything works okay if I first start the service but after a while I get this exception: "The pipe connection was aborted because an asynchronous read from the pipe did not complete within the allotted timeout of 00:02:00. The time allotted to this ope...

how much of the app.config of a WCF Service Library has to be copied over to app.config of a Console Host?

How much of the app.config from the WCF Service Library has to be duplicated in the Console Host's app.config? ...

creating a WCF client proxy with 3 solution windows open

My WCF service library, the console host for the service, and the client are all in separate Visual Studio solutions. Does this choice of organization impose a problem? I cannot seem to create the client proxy by using the Add Service Reference and Discovery features. When I run the console hosted WCF service, then change focus to the...