I have about 16 sites inside a single application pool, three of these are WCF services. Just to explain the scenario I will give an example:
WCF-Service1 calls WCF-Service2 which in-turn calls WCF-Service3
All these three services are in the same application pool.
When WCF-Service2 calls WCF-Service3 everything in that application po...
I have a WCF Service which returns some custom objects to a desktop client application. Both projects share the same ObjectLibrary.dll, however when the WCF server return these objects it is returning
ClientApplication.ServerReference.ObjectType
instead of
ObjectLibrary.ObjectType
Is there a way to get the WCF server to return the...
The WCF Starter kit can auto generate a help page based on the REST API. See this:
Once you’re using WebServiceHost2,
your services will automatically enjoy
the benefits of the new automatic help
page functionality ( http://msdn.microsoft.com/en-us/library/ee391967.aspx )
However, I am wondering if there is a way to do this w...
We have got WCF services one hosted as windows service (it uses MSMQ binding) and other hosted in IIS.
To have resilience we have got 7 servers where WCF is hosted on IIS, and the 3rd party tool randomly sends request to either of the servers.
How to achieve a similar functionality for WCF service hosted on windows service using MSMQ bi...
We have WCF based SOA architecture and ASP.NET web application consume the services hosted. Within each method that needs service call, we create a proxy instance and close when the results are returned. The binding is basicHttpBinding. By default InstanceContextMode is per session, do we need to change this to Percall as we do not requ...
I have a WCF service which uses the named pipe binding. In one part of my code I want to restart this service, so I simply run
serviceHost.Close();
serviceHost = new ServiceHost(singletonInstance, uri);
serviceHost.Open();
For some reason, the Open call sometimes gives an exception:
Cannot listen on pipe name
'net.pipe://localho...
In my case I am using Lucene.Net for search and would like to use single instances of IndexReader and IndexSearcher. Where should I move them from a method to be able just to instantiate once for the first query and then reuse.
public static List<MyType> GetIndexMatches(string fullTextIndexPath, string keyWord )
{
...
I presume , such a mode should exist. Just triggering WCF service and exiting. Something else will check a log ( database/file ) produced by WCF service. My understanding it is different to asynchronous call where calling application allows to do something else, but still runs some code on completion event.
...
According to MSDN http://msdn.microsoft.com/en-us/library/ms730137.aspx, Contract behaviors (IContractBehavior types) enable the customization of both the ClientRuntime and DispatchRuntime classes in client and service applications, respectively.
When we are implementing DI in WCF, the container should be created per user or session, ri...
Hi pals,
I have a WCf service to handle file upload. I have enabled the transfer mode as streamed to send large file of data. I ma bale to achieve till 300 mb.
Now i need to provide the security for my service. I have implemented the ntlm authentication for my service. When i hosted it on IIS and enabled the Integrated windows authent...
I have written a WCF web service using C# and Visual Studio 2008.
When I run it using the built in development web server, I am able to view the results of the various methods by browsing to the URL specified in the [WebGet(UriTemplate = "..")] attribute of the service contract.
Specifically, I have a method that matches the "/" URL, a...
I have a Restful WCF service sitting on another server configured with the WebGet attribute to respond to the HTTP Get method. I know the service works correctly because I can call the service directly through the browser and manually do a Get with Fiddler and receive a correct response.
I have an Asp.NET project on my local machine th...
Hi all,
I developed a proof of concept application that query if WCF support multi-threading.
Now, all what i did is creating a service contract marked with [ServiceBehavior(InstanceContextMode = InstanceContextMode.Single, ConcurrencyMode = ConcurrencyMode.Multiple, UseSynchronizationContext = true)] with two operations to get fixed t...
I have a WCF Service that returns a byte array with a ZIP file (50MB) to any client that requests it. If the zip is very small (say 1MB), the soap response is coming from WCF with the byte array embedded in it.But the response size is very huge even for a 1MB file. If i try the 50MB file to get transferred the Service gets hanged and thr...
Here is the exact issue:
I have a client app calling a wcf service, in both the client app and the wcf service i have set the time outs to be over 3 hrs. when the service runs about 20 min there is no issue but more than than it times out in a weird way. I started debugging the service to see what actually happens since the time outs s...
Hi All,
I'm using the WCFTestClient to debug a service. This normally works like a charm. This particular service is using SSL and I need to pass the user name and password. I can right click and edit the config file, but I do not see a place where I can inject the user name and password. On the normal client app for this service, we pro...
I have a self hosted Wcf service running on Windows XP and am attempting to use Certificates for message security. This is being done via the service and client config files. Both service and client are running on the same machine and I have created certificates for both using makecert.exe. This worked fine when I had clientCredential...
Hi, In my old asmx web services I used to have AuthHeader which contains the UserName & password and the AuthHeader is mandatory for every web method request. User will send his username & password using this AuthHeader and I will validate the request with the Username & password.
How can I ahieve the samething with WCF as webservice h...
Hi,
I have a bog standard html page.
All I want to do is :
use JQuery on that page to send JSON requests to a WCF service
retrieve JSON back.
That's it.
I have the html page and JQuery written, no problem.
However, I can't find one tutorial that works. All the ones I've found have many conflicting parts to do with behaviors...
I'm writing a .net WCF service. I've written a few classes that I want to return to the calling code from the WCF service; hence, I decorate them with the DataContract attribute.
Let's suppose that my WCF service is called FooService. It contains a method called FooMethod which returns an object of type FooData (which is decorated wit...