wcfservice

Passing Custom headers from .Net 1.1 client to a WCF service

I have a simple wcf service which uses basicHttp binding, I want to pass few information from client to this service via custom SOAP header. My client is a .net application targetting .Net 1.1, using visual studio I have created the proxy( Added a new web reference pointing to my WCF service) I am able to call methods in the WCF service ...

Out of Memory on Update or Delete of Service Reference

I have a Service Reference for a WCF project that has just over a hundred endpoints in my ServiceHost web.config. Every time I attempt to update or delete the Service Reference, it fails with an out of memory exception. I am running Vista Ultimate SP2 64-bit with 8GB RAM. I can work around it by going outside the project and deleting ...

Silverlight client never calls WCF Service

Hi all, This one has me completed stumped. I have developed a silverlight application that calls back to WCF services ( it's a silverlight - basicHttpBinding) The site works perfectly fine from my development machine, but when it is deployed to the developement server. The application is delivered with the XAP just fine, but it never...

Pros and cons of using JSON for WCF service

What are the pros and cons of the following 2 cases: Case I: Traditional way: Add service reference in project. Create object and Get data from service on server side and bind to asp.net grid. Case II: Update Service for JSON behavior. Add service reference in project. Call service from javascript to get data. Bind data to jquery gri...

WCF App using Peer Chat app as example does not work.

I converted a VB .Net 3.5 app to use peer to peer WCF using the available Microsoft example of the Chat app. I made sure that I copied the app.config file for the sample(modified the names for my app), added the appropriate references. I followed all the tutorials and added the appropriate tags and structure in my app code. Everything ...

Enable MEX in a Web.Config

Hi Folks, How do I enable/create a MEX endpoint in the below web config so I can view the service from my browser? I have tried a few variation from googling but VS always complains about it. (not a valid child element etc...) <configuration> <system.web> <compilation debug="true" targetFramework="4.0" /> </system.web> <system...

WCF Services (with RIA)

I am new to WCF and WCF derived services. I am using VS 2010, silverlight 4, ria services 4. Recently I created plain WCF REST services (no RIA, no SOAP) with my endpoint (using wsHttpBinging): <endpoint address="" behaviorConfiguration="wsBehavior" binding="wsHttpBinding" bindingConfiguration="wsbinding" contract="WcfSer...

The communication object, System.ServiceModel.Channels.ServiceChannel, cannot be used for communication

The communication object, System.ServiceModel.Channels.ServiceChannel, cannot be used for communication because it is in the Faulted state. what is the error over here. why i get this error.. pls help me out.. ...

WCF Service calls always fail after 30 seconds with (502) Bad Gateway

We have a WCF service (BasicHttpBinding) which will always fail after 30 seconds. Calls under 30 seconds complete without error. Anything over 30 seconds will fail with a 502 Bad Gateway exception: System.Net.WebException: The remote server returned an error: (502) Bad Gateway. But yet the WCF call continues to run in the backgro...

MyService.svc?wsdl shows 400 Bad Request IIS 7.5

I'm on Windows 7 Ultimate x64 IIS 7.5 I have deployed the services to the web server and when I try them in IE like this: MyService.svc?wsdl I get the 400 "Bad Request" page I should get the description of the web service instead, anybody knows how to fix this ? ...

How to import a WCF web service using a Java client

I have a WCF web service using wsHttpBinding that I am consuming from a Java client. I generated code from the WSDL using wsimport. The java client appears to be creating the service fine but when I call a method on the service the client just spins. MyService s = new MyService(); IMyService i = s.getWSHttpBindingIMyService(); retur...

WCF Authentication Error

I'm accessing a third party WCF service (I have no access to the service configuration) We're using SSL certificates for the authentication. I'm getting this error when trying to access to any of the provided methods The HTTP request is unauthorized with client authentication scheme 'Negotiate'. The authentication header r...

WCF using REST, having some binding questions

Hello people, I am really confused right now and I can't get any right answers anywhere. My confusions are: 1) Isn't wsHttpBinging (which is beefed up basicHttpBinding) used in SOAP instead of REST and REST only uses webHttpBinding? 2) Also, DOES silverlight 4 with WCF (REST) support wsHttpBinding (VS2010)? I read that it does not ev...

WCF service host returns "TCP error 10061 - connection refused" when client tries to connect

I created a self hosted WCF service with netTcpBinding. I am using a WinForm based client to connect to this service. I have observed that while the client is up and running, I always lose connection to the WCF service - faulted state!. To resolve this, I created a thread to keep the connection alive. I let the client sit and, after ab...

Does WCF's reliableSession guarantee that messages are not corrupted by transport?

Hi everyone, here's my problem. I am using WCF for communication between two services. I am wondering if the reliableSession option guarantees that a message received by one service is really the same as the message sent by the other service, i.e., that no bit flips or similar happened on the wire? I know that reliableSession takes car...

WCF- how to add multiple services to Service.svc?

hi, I have 4 services running via a service host project, which communicate fine with my asp.net application when the ASP.NET development server hosts them through VS for debugging. I am trying to deploy these to IIS on a windows server 2008 machine, using WAS. I have the project set up as an application in IIS, and have copied the en...

WCF Service and Interface - the result is object, even though ServiceKnownType was used

I need to convert some objects that are not compatible with Silverlight to models to send over a WCF service. I've tried using the ServiceKnownType, but the result is still object. I am able to cast the object to the Model after I retreive the result, but I don't want to have to do that every time. Here is an example of what I have attem...

WCF Create service response from XML File

We are needing to test client functionality and performance against several web services. We have the XML soap requests and corresponding responses in several XML files. I am writing a mock service provider that will simply look at the request object, and then load the appropriate XML file and send it back, as the actual SOAP response. I...

How to Sync a C# Application in-memory object

I have a WCF service to be load balanced with NLB (Windows Network Load Balancer). So I need a Dictionary object to be synced across all the instances of the WCF service. What is the best possible way to do this? ...

Does WCF use the ThreadPool to bring up new instances for a PerCall service?

Hi, for a PerCall WCF service whose throttling has been set to be high (say, 200 max concurrent calls) would WCF bring up a new instance and invoke the request on a threadpool thread? If it does, then does this have an impact on the total number of concurrent calls allowed? I ask because I don't seem to ever hit the max number of concu...