wcf

Friend WCF Web Service Reference

Is it possible to make a WCF reference in a Silverlight DLL private? The option is greyed out and when you edit the Reference.vb file manaully, when running, it complains about not being able to serialize because it is not public. I don't want the service to be exposed outside of the DLL. Is this possible? ...

WCF Self Host Service - Endpoints in C#

My first few attempts at creating a self hosted service. Trying to make something up which will accept a query string and return some text but have have a few issues: All the documentation talks about endpoints being created automatically for each base address if they are not found in a config file. This doesn't seem to be the case for...

WCF configuration setting information at a glance

Is there any site from where I can get the most of the information about WCF configuration settings e.g. keyEntropyMode,maxStatefulNegotiations,sessionKeyRolloverInterval, negotiationTimeout etc. I have started recently working in wcf but is facing many troubles in understanding the terms. There are to be honest huge. And whenever I get...

NHibernate Linq queries not returning data saved in the same transaction

Hi, I have a situation where I am using NHibernate in a WCF service and using a TransactionScope for the transaction management. NHibernate enlists in the ambient transaction fine, but, any changes I make and save inside the transaction, are not visible to any queries I make while still in that transaction. So if I add an entity and ses...

service repository.

hundreds of our clients around the country have a vb6/MS Access app. The boss needs them to talk to each other, eg client A creates a new task in client B's database, and status updates go back to A. I'm trying to design a WCF system that can accomplish this using a centralized service talking to a service of some kind installed on each...

Why are we getting a WCF "Framing error" on some machines but not others

We have just found we are getting “framing errors” (as reported by the WCF logs) when running our system on some customer test machine. It all works ok on our development machines. We have an abstract base class, with KnownType attributes for all its sub classes. One of it’s subclass is missing it’s DataContract attribute. Howeve...

Strange Problem with Webservice and IIS

Hello there, I have a Problem which confuses me a little bit, resp. where I don't have any idea about what it could be. The System I'm using is Windows Vista, IIS 7.0, VS2008, Windows Software Factory, Entity Framework, WCF. The Binding for all Webservices is wshttpbinding. I'm using a Webservice hosted in IIS. This Webservice uses/ca...

How to specify allowed exceptions in WCF's configuration file?

Hello! I´m building a set of WCF services for internal use through all our applications. For exception handling I created a default fault class so I can return treated message to the caller if its the case or a generic one when I have no clue what happened. Fault contract: [DataContract(Name = "DefaultFault", Namespace = "http://...

WCF Data Services consuming data from EF based repository

We have an existing repository which is based on EF4 / POCO and is working well. We want to add a service layer using WCF Data Services and looking for some best practice advice. So far we have developed a class which has a IQueryable property and the getter triggers the repository 'get all users' method. The problem so far have been tw...

Accessing webmethod with jquery

I'm currently using jquery ajax to call a pagemethod (which works great); $.ajax({ type: "POST", url: "ArticleList.aspx/GetArticleTags", data: "{'articleId' : " + articleId + "}", contentType: "application/json; charset=utf-8", dataType: "json", success: function (msg) { ...

ajax with WCF work. but few miniute after, doesn't work.

I am a new to WCF. I have written ajax to use a web service before, but on this project I am trying to use ajax to WCF. After I build the project and wcf using ajax, I receive the return successfully. But, 10 or more minutes later I don't get a return, the ajax calls the error function, and the fiddler returns nothing. If I rebuild t...

How to set WCF threads to schedual differently

Hi, I'm running a winservice that has 2 main objectives. Execute/Handle exposed webmethods. Run Inner processes that consume allot of CPU. The problem is that when I execute many inner processes |(as tasks) that are queued to the threadpool or taskpool, the execution of the webmethods takes much more time as WCF also queues its exec...

To Wrap or Not to Wrap: Wrapping Data Access in a Service Facade

For a while now, my team and I have been wrapping our data access layer in a web service facade (using WCF) and calling it from the business logic layer. Meanwhile, we could simply use the repository pattern where the business logic layer consumes the data access layer locally through an interface, and at any point in time, we can switc...

Pattern for a continuous/buffered upload to WCF

I have a stream which is continuosly written to over time, I would like to upload the data to a WCF Service at intervals eg blocks of bytes or something, where it will be reassembled as enough data arrives on the server side. The data on the server will then be processed. What would be the best way of solving this? Any ideas would be he...

WCF XmlSerializer split files

I have a client's wsdl and xsds files for java webservices. I am using svcutil (XmlSerializer) to generate the client side proxy classes. I had to make a few tweaks to the wsdl's (which I told the client about) to make svcutil work but now it generates one 11.2MB file which compiles into a 3.7MB dll. Is there any way to have svcutil spli...

Good tool to test WCF service (not SOAP/HTTP webservice)

I recently found SOAPUI and discovered that it is just a great tool for testing any SOAP/HTTP service. Conventionally, we have been developing our own driver to test our services (WCF based netTCP binding) so far. But with SOAPUI experience, I am really looking for some such tool that can be used with such ease with built-in facilities f...

Is there a global error handling location in WCF comparable to Global.asax's Application_Error in ASP.Net?

I'm creating an WCF service and I need to implement error handling. In ASP.Net it was possible to centralize error handling in the Application_Error event handler in the global.asax file. Is there a comparable solution for WCF other than aspnet compatibility mode? I cannot use aspNetCompatibilityEnabled because the transport is not ...

How to upload a file in WCF along with identifying credentials?

I've got an issue with WCF, streaming, and security that isn't the biggest deal but I wanted to get people's thoughts on how I could get around it. I need to allow clients to upload files to a server, and I'm allowing this by using the transferMode="StreamedRequest" feature of the BasicHttpBinding. When they upload a file, I'd like to ...

Cast Proxy Class to Common Interface with WCF Services

I am trying to create a common service library shared between a WCF web service and a local data service. However, when trying to utilize the service by clicking on Project -> Add Service Reference and then trying to use the base interface instead of the proxy interface I get a cast error with the following code: IMyService _con...

Can I split system.serviceModel into a separate .config file?

I want to separate my system.serviceModel section of the web.config into a separate file to facilitate some environment settings. My efforts have been fruitless. When I attempt it using this method. The wcf code throws an exception: "The type initializer for 'System.ServiceModel.ClientBase 1 threw an exception. Can anyone tell me wha...