wcf

Implementing Security in REST?

Hello All, I am concerned on how to implement security measures may it be Authentication or Authorization.. How can these be implemented.. if you have any thoughts or links that you can share with regards to WCF REST 4.0 Security and if you've implemented it also the better. because ive been trying to find out on this topic all i find i...

how can I get the Content-length from service in wcf methods

my wcfbinding is wshttpbind ...

WCF MSMQ last message in the transaction

Hello, I am wondering if there is a way in WCF MSMQ to know if iam processing the last message in the transaction I did lot of researches I found that there is a property IsLastInTransaction but this property not available in MsmqMessage<T> Class it only available in System.Messaging.Message Anybody know how can I dietarian if this i...

CommunicationException was unhandled by user code

Hello, I created one solution and then added one project which contains all WCF services. Then i added it's reference to my Silverlight project in the same solution. Now when i try to debug i get one message box saying This Silverlight project you are about to debug is consuming web services. Calls to the web service will fail unless th...

WCF REST throws HTTP 400 error maxstringcontentlength quota (8192) exceeded

Based on this post http://stackoverflow.com/questions/2257808/error-calling-a-wcf-rest-service-using-json-length-quota-8192-exceeded I experienced the same problem when calling my WCF REST Service (hosted on IIS 7) from a console application (using Microsoft.HttpClient library). I have increased the maxStringContentLength="2147483647" o...

T4 generation and Wcf proxies generation?

Hi I am currently in a project there we are consuming some wcf services, but we are not happy with the generation result of the service proxy. We are getting ugly names like service.NameSpace_Are_In_The_Method_NameBeginSomeMethod..... And we want the possibility to do some other changes. Can we somehow change the template that are gen...

How do I increase the reader quota on WCF service?

I don't expect anyone to be able to help out with this but let's give it a go. I have a WinForms app that uses a WCF service to pull down a rather large JSON document serialised into a string. I have changed the client's Reader Quota on strings to 8192000 (arbitrary but suitable for most cases) and put the service onto a custom binding ...

Adding AJAX-enabled WCF Service to the Solution throws an error

I am just trying to learn Ajax enabled WCF service, when I try to create a new web application and add new item "AJAX-enabled WCF Service" I get an error message that "The extension of type 'System.ServiceModel.Configuration.WebScriptEnablingElement, System.ServiceModel.Web, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e...

Return multiple response from WCF

Hi I have one WCF service and one single method named GetStudentList() in the service.It's working fine when it's return single response.Something like this [WebGet(ResponseFormat = WebMessageFormat.Xml, BodyStyle = WebMessageBodyStyle.WrappedRequest)] List<Student> GetStudentList(); But i want to return multiple response i.e. xml ...

Why can't my operation contracts in my wcf client take interfaces as parameters?

I have a simple wcf Service Contract that works fine if I use the concrete implementations for the interfaces, but if I want to use the interfaces in the paramaters instead of the concrete classes, it gives me the error which I will display below. Here is code: [ServiceContract] public interface IClientUserRegistration { [Operation...

Cookies in wcf service OperationContract

Is it possible to read cookies in the OperationContract of a wcf service? I am trying to read a cookie value in the contract method, but its always empty. If I read the same cookie from a .aspx page, the value is present. Any ideas? ...

Dynamically change WCF endpoint address using a behavior

I want to dynamically change the address of a WCF service called from my client based on custom information in the client's application configuration file. My first attempt was to create an endpoint behavior, and implement the IEndpointBehavior.Validate method, implemented something like the following: void IEndpointBehavior.Validate(S...

WCF service times out

I am creating a WCF service, and it is timing out when it is used in some of my integration tests. I have been able to narrow it down and it is demonstrated by the following code. It appears that creating a Form before you create the host causes the problem, but I'm not sure why. class Program { [ServiceContract] public interfac...

WCF "Always generate message contracts" does not generate MessageContract

I'm importing a WSDL as a service definition (inbound to my service), and for whatever reason the client is formatting the request such that WCF cannot deserialize it without the proxy classes having MessageContract decorations. I've gotten it to work this way by adding the MessageContract attribute on the main container class, which ...

Can't Add Service Reference in VS 2010 to a net.tcp endpoint

I've got a service running (well, it doesn't crash), but when I try to add a Service Reference to it, I keep getting: Metadata contains a reference that cannot be resolved: 'net.tcp://localhost:55555/mex'. Metadata contains a reference that cannot be resolved: 'net.tcp://localhost:55555/mex'. If the service is defined in the current...

Constructor error in WCF service implemented with Repository and UnitofWork patterns.

I have a WCF service which implemented using Repository and UnitofWork patterns. And now I am getting following error: The service type provided could not be loaded as a service because it does not have a default (parameter-less) constructor. To fix the problem, add a default constructor to the type, or pass an instance of the type to t...

Why is Mono implementing WCF?

Why is the Mono project implementing WCF interfaces and classes "as is"? I do not understand what is the point to repeat Microsoft's design. My experience says that WCF is a huge framework with an implementation based on SOAP services. There are tremendous problems with their approach. It simply does not fit well for simple HTTP request...

Using WCF faults with the Compact Framework

Hi I have a WCF service that is called by a Windows Mobile application running on a PDA. I've set up the server code to send WCF faults if there is a problem. This is the code that I think I am supposed to be using on the client: try { var data = myService.GetSomeData(); } catch (FaultException<Service.CustomFault> fault) { mes...

Can WCF Logging be configured to use shell folder paths?

Hello, We are trying to configure WCF Message and Trace logging to be written to a one of the shell folder paths. For example .. %ALLUSERSPROFILE%\CompanyName\logs\ServiceTrace.svclog If I enter the full path to this location it works, if I enter the above nothing appears. (I've pre-created the directories) Example config snippet is: ...

Which C# and WCF Book will be really helpful in getting a good concept and practice

Possible Duplicate: WCF Book Recommendation I want speed up creating few good and robust applications using C#,WCF and WPF . So thought , I will ask the community , what really helped them to be so efficient and clear with the concepts behind. which books will really help me to build the fundamentals(You can Say Advanced Funda...