Hello,
My WCF Service is complete with .NET 3.5 and I used wsHttpBinding while implementing my service.
For .NET 3.5 clients, there were no problems, but .NET 2.0 and Java Clients had issues in wsHttpBinding.
So I added a new endpoint with basicHttpBinding with similar security as wsHttpBinding with following criteria in mind:
I wou...
I am converting a remoting interface to WCF, however I have a method that is declared to return "object" and can return a number of different types (mostly different enums)
Where can I find an example of coping with this?
(I am using a shared contract assembly that contains all the types rather than generating a client proxy if that m...
I wrote a WCF service, but the data stored in the Service implementation doesn't persists between calls, not even if stored in a static variable. What can I do?
The service implementation is as follows:
public class Storage : IStorage
{
protected static object[] _data;
#region IStorage Members
public void Insert(object[] ...
Does WCF Polling Duplex Binding exist for non Silverlight clients?
...
Hi,
I'm using perfmon to examine my service behaviour. What I do is I launch 6 instances of client application on separate machines and send requests to server in 120 threads (20threads per client application).
I have examined counters and maximum number of instances (I use PerSession model and set number of instances to 100) is 12, wh...
I'm using WCF in communciation between a server and client (both written in C#).
In release-mode, the timouts should be set to ~20 seconds, but in debug mode I want to set them to a higher value so that I can debug/step in my code without the timeout occuring.
I know that I can change the timeouts by modifying the app.config file. How...
We have a customer in the field that installed our client app on a new machine. When they try and login; which calls a WCF web service; they get the following error:
System.ServiceModel.CommunicationObjectAbortedException
"The communication object, System.ServiceModel.Channels.ServiceChannel, cannot be used for communication because it...
I can't figure this out as I go through demos that seem to work. I have a WCF service I was trying to use Linq to SQL with. However, all I ever get is the error System.Data.Linq.Table cannot be serialized. So I started with my own class thinking I could build it back up until get the error. Problem is I get the error even trying to use ...
I have the following WCF service host console application:
static void Main(string[] args)
{
ServiceHost serviceHost =
new ServiceHost(typeof(MyServiceName<int>));
serviceHost.Open();
Console.ReadLine();
}
I tried to configure an endpoint for it:
<services>
<service name="MyNamespace.MyServiceName<int>">
...
Hi,
I am using ws-discovery in .NET 4.0 and it is working well. One question I have is how to deal with services that are not working. For example, say I have IService on server A and server B. Let's say this service on server A is broken (mimic this by stopping Application Pool). Your client will still find 2 services, so when you atte...
Hi,
I want to import records from csv file to the DB from Silverlight front end. I am using WCF service to perform the DB operations. When I pass the entire file path (hard coded), I am able to add records to the DB, but as OpenFileDialog in Silverlight doesn't allow to obtain the file path's (due to security reasons), I tried using WCF...
Hi,
I'm developping a distributed solution with a WebSite and a Corporate Application Management.
Here is the architecture :
Web Site :
Database (SQL Server)
Web Site : ASP.NET MVC
Data synchronization Services (WCF)
-
Corporate Management Application :
Database (SQL Server)
WinForm Application
Data...
I have a WCF Syndication Service that works fine when run locally on Windows Vista or Windows 7, but when it is deployed to a Windows 2003 Server, it gets a 404 (Resource cannot be found).
Non-REST WCF services work fine on this machine, so I know that .Net 3.5 is registered correctly in IIS.
Any suggestions?
...
I would like my REST service to return a DateTime as:
01-dec-2009 for Accept-Language: en-US
01-dez-2009 for Accept-Language: pt-BR
Thanks!
André Carlucci
...
WCF binding chooser algorithm
I have watched a speak at a TechEd conference that showed a simple algorithm for choosing a WCF binding. I can't find this algorithm but I remember some of the main ideas:
If your WCF service will have non-.NET clients choose Http Soap
If your WCF will have .NET clients in other machines choose Net Tcp
If...
People says that libraries shouldn't have configuration files.
I can't pass arguments to my WCF service class from its host (but I can from the client).
I don't want to store the configuration on the client.
What should I do?
...
I am learning WCF, LINQ and a few other technologies by writing, from scratch, a custom remote control application like VNC. I am creating it with three main goals in mind:
The server will provide 'remote control' on an application level (i.e. seamless windows) instead of full desktop access.
The client can select any number of appli...
Hi
We're building a WCF Web Service using WSSF. The idea is that it will expose our main database via the service and allow us to build various applications and web sites on top of the service. At the moment I'm building a simple client app that will download some data from this service, manipulate it then give it to the user as a repor...
Hi,
I have the piece of code below of a template Ajax enabled WCF service. What can i do to make it return JSon instead of XML?
thanks.
using System;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.ServiceModel.Activation;
[ServiceContract(Namespace = "WCFServiceEight")]
[AspNetCompati...
A client and a server communicate in duplex mode.
The client has a universal service (Action="*") as contract callback.
I'd like the server to be able to send fault to my client.
How can I do ?
...