wcf

mex binding error in WCF

Hello everyone, I am using VSTS 2008 + C# + .Net 3.0. I am using self-hosted WCF. When executing the following statement, there is the following binding not found error. I have posted my whole app.config file, any ideas what is wrong? ServiceHost host = new ServiceHost(typeof(MyWCFService)); Error message, Could not find a base addr...

WCF wsHttpBinding 'algorithmSuite' cannot be parsed error

Hello everyone, I am using VSTS 2008 + C# + .Net 3.0. I am using self-hosted WCF. When executing the following statement (host.Open()), there is the following binding not found error. I have posted my whole app.config file, any ideas what is wrong? ServiceHost host = new ServiceHost(typeof(MyWCFService)); host.Open(); Error message, ...

WCF - Windows authentication - Security settings require Anonymous...

Hi, I am struggling hard with getting WCF service running on IIS on our server. After deployment I end up with an error message: Security settings for this service require 'Anonymous' Authentication but it is not enabled for the IIS application that hosts this service. I want to use Windows authentication and thus I have Anonymous ac...

Does WCF convert parallel calls from the same client (using different threads) to be in serial?

I have self hosted net tcp WCF service that exposes two methods and the service is not thread safe and it is (PerSession) . I found that my colleague developer who is using the service, accesses the same service object from different threads, and till now it works fine. So I am asking if you have parallel call from the same client then...

no WCF max response message size setting in wshttpbinding?

Hello everyone, I am surprised to see that no WCF max response message size setting in wshttpbinding? My question is whether there is max response message size setting in wshttpbinding? I am using .Net 3.0 + C# + VSTS 2008. BTW: I have found max request message size setting and tested it works. thanks in advance, George ...

What is message wrapping in WCF

In WCF Messsage contract we have IsWrapped atribute and wrappername, wrappernamespace attribute Question? What is Message wrapping What are the advantages of wrapping messages Is it secure to wrap the messages. ...

Converting ASMX to WCF Web Service

I need to upgrade our web services to use WCF instead of ASMX. If the signatures of the web services stays the same, will existing clients that already call the ASMX service have to change anything on their end? Is there anyway to still use WCF but not force them to change anything? ...

What is best practice for returning files from WCF?

We have a reporting solution that works like this. User order the report to be created and teh service method returns Report is created (this can take a while) as a file Client app polls to see if the report is finished The clientet app asks to get the finished report The report can be of the types xml, xls, txt, etc. What is best...

Non-http Protocol Support in windows xp or Windows Server 2003? (net.tcp)

Will it be possible for windows xp or windows server 2003 to support net.tcp for WCF, well it works in windows server 2008 as IIS 7.0 supports net.tcp,but is there anyway for IIS 5.1 or IIS 6.0 to support net.tcp,is there any workaround for this? ...

WCF Service with Active Directory Authentication

I am writing a WCF Service which would allow access to operations based on AD user group. If the logged in user is part of groupA, allow him to do operationA, but not operationB and so on and so forth. Now for this I have to pass NetworkCredentials to the service like factory.Credentials.Windows.AllowedImpersonationLevel = ...

Public key or Diffie-Hellman Key Exchange Algorithm

Consider and client server scenario and you got two options: You can include Server's Public Key in Client and perform the exchange. You can use Diffie Hellman KeyExchange Algorithm to handshake and then exchange the key. Which one is more secure way? also if public key will come from store say from Client CA store? would it be more ...

Windows Authentication with basicHttpBinding of WCF

I am quite annoyed with this one for last 2 hours :( Folks, I am trying to access a SharePoint OOTB List web service from a Console application. My SharePoint site in IIS is set to Integrated Windows Auth mode, and anonymous access is disabled. Now at client side what I am doing is as follows try { BasicHttpBinding bin...

Web service response compression

Hi, i'm trying understand what are consequences of enabling compression for web service response. Web service is implemented as IIS hosted WCF service with http binding. I would like to add compression on http level, so it should be seamless for clients. Soap response size is in 100kb - 1Mb range. We do this to improve user experience ...

WCF issue with Microsoft Sync Framework

I'm currently following the example at http://msdn.microsoft.com/en-us/library/cc807255.aspx when I add a service reference, that has an ISyncContract contract on my client side, there is a method that is missing some parameters example: on my contract file: [OperationContract(IsInitiating = false, IsTerminating = false)] void GetKn...

Do WCF REST services support HTTP 301 redirects?

Is it possible to implement a HTTP 301 redirect for a WCF REST Service so that URLs of the form: http://server/customers/?name=John redirects to http://server/customers/324 (For the client-side case of this question, see Does the WCF REST WebChannelFactory client support REST services that use redirects?) ...

javascript intellisense in VS2008 - external WCF service

I have looked up the following article before making this post but my scenario is a little different http://stackoverflow.com/questions/587350/how-do-i-get-intellisense-for-wcf-ajax-services I also have the patch applied to VS2008 and have jquery intellisense working. In my solution, the WCF service is actually not inside the ASP.NET ...

WCF Named Pipe Security and Multiple User Sessions?

I have setup a WPF application that is single instance using a Mutex, this allows for the application to run within each user account if you are using user switching. The application sets up a WCF named pipe so that I can communicate to the single instance from another process (i.e. when the second process runs before it terminates due ...

Does the WCF REST WebChannelFactory client support REST services that use redirects?

If you have a RESTful web service that uses HTTP 301 redirects to send requests like: http://server/customers/?name=John to the url http://server/customers/324 (as created by a service similar to the one in this question.) Can these types of services be consumed with the WebChannelFactory and a ServiceContract? If so, how? ...

Two WCF services with different contracts but same business objects

Hi, For example I have two services hosted in IIS. [ServiceContract] public interface IDeviceService { [OperationContract] DeviceCollection GetAllDevices(Customer customer); } [ServiceContract] public interface IUserService { [OperationContract] User Authenticate(string username, string password); } Both the User ...

Web Service Versioning - Adding Operations to a Service Contract in WCF

In a WCF service, what happens if I add methods as operation contracts after clients (that consume the service) have completed their implementations? Will the existing clients have to modify their implementations even though they do not use the new operation contract methods? EDIT: Will the clients have to update their proxy even though...