wcf

WCF Service webHttpBinding Anonymous Authentication

I have a situation where by I have un ticked the anonymous authentication in IIS, so the designers and clients are able to see the work but no one else. I need to get the WCF Service to work under these conditions but I am not sure how. Does anyone have any idea what I would need to do? ...

WCF Authentication with custom ClientCredentials: What is the clientCredentialType to use?

I had to ditch the basic WCF UserName/Pwd security and implement my own custom client credentials to hold some more info beyond what is provided by default. I worked throughthis MSDN article, but I'm missing something because it doesn't work. First, I have some custom ClientCredentials that provide a custom ClientCredentialsSecurityTok...

Can I create a WCF service without using attributes?

The way you seem to declare WCF services is to create an interface in C# or VB, and then tag it with ServiceContractAttribute and it's methods with OperationContractAttribute. The issue is, I'd like to try creating one from IronRuby or IronPython, which (to my knowledge) don't support attributes. Is this possible? ...

ExtJS with a .NET backend

What's my best option (using the latest in the .NET framework) for creating a webapp with with a complete ExtJS frontend (all server interaction happens through AJAX with XML or JSON)? Are there any problems with using WCF? The following (fake, but funny) O'Reilly book cover seems to imply so. http://www.oreillymaker.com/link/14746/extj...

WCF Service Max number of Methods

Maximum of how many number of Methods, in a WCF Service be implemented. ...

How to abort the call to webservice at both client and server end?

I can abort the web service call from client by calling ABORT method of web service proxy. However at server where web service is hosted, the call only ends when it completes the processing. As server doesn’t expect any other inputs related to already called web method while processing it, I am not able to close it from client. Is the...

How to approach wcf services synchronization?

I have implemented a wcf service and now, my client wants it to have three copies of it, working independently on different machines. A master-slave approach. I need to find a solution that will enable behavior: the first service that is instantiated "asks" the other two "if they are alive?" - if no, then it becomes a master and it is t...

How does System.Net.Sockets perform its DNS lookups in the context of finding a WCF service?

I have a Web application and a WCF service hosted on the same Windows 2003 development server. They each have their own IIS website node responding to drs.displayscreen.web and drs.displayscreen.service host headers respectively. The hosts file contains entries for both headers pointing back to 127.0.0.1. The web site has a service refe...

How can I get rid of the "The target assembly contains no service types" error message in VS2008 ?

I've got a Client/Server wcf application My executable doesn't define any ServiceContract, it doesn't even have a reference to System.ServiceModel (but instead has a reference to an assembly which contains the connection logic to the server) I've another assembly, which is referenced by my exe, which contains a ServiceContract. It use...

WCF and NetTcpBinding

When I expose a service using NetTcpBinding, is .Net remoting used under the surface? Could I consume this service using .Net remoting on the client side? I ask this because I always thought that WCF was just a wrapper for underlying protocols such as WS*, Remoting, COM+, and MSMQ. And while I know that exposing WS* will work as expect...

check the availability of the WCF Web Service

Hi I want to check the availability of the WCF web service i.c service is up or down thorugh the C# code.How to achieve that. Thanks is Advance Sekar ...

Getting caller's hostname in WCF

Hi, I'm replacing an existing web service with a WCF service and as the first step of migration I'm going to expose an endpoint with BasicHttpBinding until the client is upgraded later on in the year. The plan is to host the new WCF service with a windows service (the service will only be called from within the intranet so there's no r...

How to create a Dynamic Client Proxy Connection when the type is unknown?

I know I can do something like the following code to dynamically create a client endpoint connection in WCF: BasicHttpBinding basic = new BasicHttpBinding(BasicHttpSecurityMode.TransportCredentialOnly); basic.Security.Transport.ClientCredentialType = HttpClientCredentialType.Ntlm; EndpointAddress serviceAddress = new ...

How can I install a certificate into the local machine store programmatically using c#?

I have a certificate generated via MakeCert. I want to use this certificate for WCF message security using PeerTrust. How can I programmatically install the certificate into the "trusted people" local machine certificate store using c# or .NET? I have a CER file, but can also create a PFX. ...

using WCF with legacy complex types

I'm writing a WCF service to replace a current web service, and I'm having trouble with one of the legacy complex types that I need to return. Unfortunately I can't touch any of the code but looking at them all the classes are Serializable and the current web service is using it with no problem. Whenever my client calls the WCF service...

Silverlight, EDM/LINQ, and WCF Web Service - How to pass collections to Silverlight

What is the proper way to pass an answer (a collection) back to Silverlight? For example, if I have a service application that sits on top of the Northwind sample database and the service has a method called GetEmployees(). What is the proper "thing" to pass back to Silverlight? An IQueryable ? Then considering the Async/Result casting...

WCF certificates not being set on custom credentials.

I have a custom implementation of ClientCredentials in WCF. Two of the base properties of ClientCredentials are the ClientCertificate and ServiceCertificate, as seen here (MSDN). In my configuration, I have my custom ClientCredentials set, and both certificates defined: <endpointBehaviors> <behavior name="MyCustomEndpointBehavior"...

Can you Pass Func<T,bool> Through a WCF Service?

Func is a serializable class, but yet when I try to pass it as a parameter through a service. I'm told it "isn't a known type". I've tried the solutions here to no avail. Many thanks out there... ...

VS 2008 can't open projects in Windows 7

Hey all, I've installed VS 2008 and SP1. I've tried to load a solution that has a WCF project and it complains that "This project type is not supported by this installation". I've tried the devenv.exe /setup but that didn't help. If it matters, this is all on Windows 7. On a Windows Vista installation I have no problems with the same...

Wcf service Error

When i am trying send large size files through wcf service, its give Unexpected sercice response, bad request 400 error. if i send bellow 16000 bytes size files does not give error. how do i increase the size, and help me to resolve the issue. Thanks to all. by Senthil ...