I have a written a Windows Service in C#. It is functioning and performing well. I have added a WCF service to the Windows service to enable client applications to connect to the Windows service and obtain stateful information from the Windows service.
I configured the WCF service to be a singleton, so that the same service instance is...
We are trying to come up with an architecture approach for designing an application where front end runs as a browser based xaml app.
this app contacts services on the web server that are built using wcf, the wcf services host domain model that uses nhibernate for persistence (so it is hibernate aware by using interfaces for lists and s...
I have written a simple WCF web service which is configured programmaticaly. It exposes three endpoints which bind different bindings to the same contract:
WebHttpBinding
WebHttpRelayBinding (over Microsoft azure)
myBinding (self-made binding in an additional DLL)
The configuration code is pretty straight-forward at the moment:
WebS...
I have a service that is hosted in WAS. I am trying to inject this service with dependencies, but have been having trouble finding where to do this. In a WCF service hosted in IIS you can use the application_onstart event to instantiate the castle container, but this isn't available in my scenario. So, I am trying to create a custom host...
Hi guys I just want a simple WinForm app with one button. When I press the button
i want to start the selfhosted WCF service. I want to able to connect to this service with for example another client app (winforms) by just adding a service reference.
However the solution that I created is not working. I can't get connected with adding a...
I am hosting a WCF service in IIS using basicHttpBinding. The WCF web services queries back end SQL Server 2008 by using ADO.Net and return a DataTable to client side of WCF service.
I find when the returned DataTable is big, there will be exception said http connection is closed by IIS. Any ideas what is wrong and how to set bigger res...
I've created a WCF service that is running on 192.168.0.199:87. The service works without a issue. However when I create a silverlight app to consume this service on my dev pc in VS I am getting the crossdomain problem. How am I going to solve this. The service is not a IIS WCF service. I also can't host the WCF service and the silverlig...
I am using VSTS2008 + C# + .Net 3.5 to develop WCF service hosted in IIS. Then I generate client proxy code automatically by using Add Service Reference function from VSTS 2008.
My question is, suppose I create a client proxy instance, then use this specific instance to call various methods exposed by WCF service at server side. Then, e...
I have a client-server application, which communicates using WCF, and uses NetDataContractSerializer to serialize the objects graph.
Since a lot of data is transferred between the server and the client, I tried to decrease its size by fine tuning the size of the data members (e.g. changed int to short, long to int, etc.).
After finis...
Caution, WCF noobie alert
I need to create a WCF client to query a non-WCF web service.
The web service is not a WCF service. Additionally, the web service requires a client authentication certificate. Now, I have the certificate, and can create a non-WCF client that works perfectly; I was able to 'Add Web Reference' and a certificate...
Hello everyone,
I am using VSTS2008 + C# + .Net 3.5 to develop a WCF service hosted in IIS 7.0/6.0. I am learning from the following MSDN link,
http://msdn.microsoft.com/en-us/library/ms733766.aspx
My question is, suppose I implement the WCF service inside a class library and compiled into some specific DLL assembly. In the service sv...
Many people seem to think this it is possible, yet clearly in this document the boundary is stated as inter-process which to my mind means "no network".
Another document is completely unambiguous:
The named pipe transport has very little reach; it can only connect to services running on the same machine
So why are so many posters...
What's the deal with CommunicationExceptions in a system using WCF? I have a client communicating with a server through WCF using SOAP - all async communication. Occasionally I get a CommunicationException thrown in my face - without seeing any reproducible pattern on why and when this happens.
However; I am able to continue running th...
Hi.
I have a WCF service. I need to implement IServiceBehavior in my class that implements ServiceContract. I have some some attributes on that class that specify service behavior. I wanted to ask if after implementing IServiceBehavior behaviors specified in attributes still apply.
Basically does
[ServiceBehavior(InstanceContextMode =...
Why do the Silerlight-generated WCF proxy class(es) offer only async calls?
There are cases where I don't really need the async pattern (for example in a BackgroundWorker)
EDIT : Sometimes I need to process the results of two WCF calls. It would have been much simpler if I could have waited (the business of the app allows that) for bot...
Hi,
How do I access the HTTP POST request body in a WCF REST service?
Here is the service definition:
[ServiceContract]
public interface ITestService
{
[OperationContract]
[WebInvoke(Method = "POST", UriTemplate = "EntryPoint")]
MyData GetData();
}
Here is the implementation:
public MyData GetData()
{
return new MyD...
Hello everyone,
I am hosting a WCF service in IIS using basicHttpBinding using streaming mode. The WCF web services queries back end SQL Server 2008 by using ADO.Net and return a DataTable to client side of WCF service.
My understanding of WCF streaming mode are,
WCF streaming mode should use only constant number of memory at both cl...
Currently I'm developing a spatial data processing server.
Here are requirements:
Server must be able to receive and handle about 150-200 small messages per sec(gps fix, some additional data).
It must be scalable. For example to run on several machines and balance load itself(without nlb)
Currently I have tested this kind of architec...
My web app exposes a few services (WCF) and I need to load an XML file and 'store' it a static variable visible to the entire AppDomain. That variable needs to be queried and updated from either a service or a page.
The thing is, I load that variable in the Application_Start (Global.asax.cs) but when a service request arrives the variab...
Hi,
I have a windows service that is using WCF to communicate with the gui. Unfortunately when I want to restart service from the gui (to reload config) I get the message:
There is already a listener on IP endpoint 0.0.0.0:1111
I'm restarting the service using fallowing code:
if (sc.Status == ServiceControllerStatus.Runni...