wcf

WCF <operation>Async methods not generated in proxy interface

I want to use the <operation>Asnyc methods rather than the Begin<operation>/End<operation> on my WCF service client proxy because I'm updating WPF controls and need to make sure they're being updated from the UI thread. I could use the Dispatcher class to queue items for the UI thread but that's not what I'm asking about.. I've configur...

Using OData with POCO

Hi, Is it possible to use OData with POCO or is it limited to just LinqToEntities? All the examples I can find only seem to use the Entity Framework. Also is the seen as a replacement to WCF Services or is it intended to run in parallel? Thanks ...

Returning Meaningful Exceptions from a WCF Project

I am pretty new to WCF in general. What little experience I have comes from using fairly simple .SVC services in ASP.NET web applications. I tried experimenting with using a WCF Project for the first time, and ran into a major show-stopper. As I’m sure most are aware, for some strange reason, in a web application in which the customErr...

ASP.NET / WCF - Execute Server.Execute Asynchronously

Hello, I need to run the HttpContext.Current.Server.Execute method in my ASP.NET application. This application has a WCF operation that does some processing. Currently, I am to do my processing correctly from within my WCF operation. However, I would like to do this asynchronously. In an error to attempt this asynchronously, I tried r...

WS Binding in Silverlight 4

Will Silverlight 4.0 Support more Bindings for WCF e.g. WS-Binding ...

Reuse classes and objects for both WCF and non-WCF

I have several classes such as Order, Customer, etc. These classes serve for holding data and nothing more. I want to be able to reuse these classes in other projects in the future, but for some reason I don't quite understand, WCF forces me to decorate the data members with the [DataMember] attribute, forcing me to reference WCF plumbi...

Can we host a Workflow Service as a Windows Service?

I am working on a logging application that requires me to have a Workflow that is exposed as a Service (Workflow Service). We want to host it as a Windows Service (don't want to host workflow service as .svc file in IIS). Another reason for having it as windows service is to be able to communicate with the service through the Named pipes...

WCF Project vs. A folder in the existing website project?

What way makes the most sense? I have a ASP.NET app... and maybe a Silverlight app in the future.. I want both to talk to web services.. At first, I like have the WCF project be by it self for the seperation.. But then I thought.. What is the point since I can just as easily have a 'WEBSERVICES' folder that contains all the .svc files ...

Connection string in app.config in a class library

I am creating solution and inside I have three projects: A WCF Service Library Project A DataAccess Project (Class Library) A Web site for hosting WCF service The implementation of the service is on the project # 1, but in order to access the DataBase I use a second project that implements the data access using a class library projec...

NHibernate & WCF in version 3.0

Hi everyone :D I've just started a new project which requires a WCF service to handle a distributed environment. I'm still trying to find the best way to implement things. I want to use NHibernate, but I've seen a few different ways to address the serialization. Is this handled in 3.0? I noticed wcf_context inside the truck :D If it...

Ajax Enabled WCF Service Javascript issue...

I'm a noob working with Ajax-Enabled WCF Services... Right now I have an AJAX service which calls a different WCF service that is using wsHttpBinding. The WCF wsHttpBinding service lives in a different web app on the same IIS6 server. The AJAX javascript proxy is only created when I enable anonymous access on the app hosting the AJAX ser...

WCF, Timer Jobs, Web Service which is better ???

I am working with a Web application, based on Asp.Net 3.5 and WSS 3.0 platform. Recenlty i've got a task as follows. Import bank statement using FTX - Desktop application and parse those statements into database in every 24 hours ie. i need to download bank statement with the help of a desktop application(which i can call by batch fil...

How can I transfer an NHibernate PersistentGenericSet over WCF

I'm trying to send objects retrieved by NHibernate over WCF, but whenever a have a property of ICollection I get an exception. When NHibernate gets the data from the database this property is intitialized with an instance of PersistentGenericSet. Is there a way I can send a PersistentGenericSet over WCF? -or- Is there some way makin...

Consume a WF hosted in IIS as a WCF service using ASP.NET 1.1 Client

As the title says, I would like to consume a WF workflow using a ASP.NET 1.1 client. The workflow is hosted on IIS as a .svc service. I have a .NET 3.5 winforms test client that uses wsHttpContextBinding. Because I need to put a WorkflowID in Context to have my workflow rehydrated and continued, I use this piece of code: var Svc = new...

WCF, Silverlight: Is Request/Reply possible over PollingDuplexHttpBinding?

Hello. We have been using PollingDuplexHttpBinding for some time to do Pub/Sub messaging. We have methods that do not return results that allow clients to subscribe to some data feed then then the service pushes data back via CallBack contracts. Just now we have been adding some Request/Reply methods to our OperationContract. As the cl...

How to transfer objects through the header in WCF

I'm trying to transfer some user information in the header of the message through message inspectors. I have created a behavior which adds the inspector to the service (both client and server). But when I try to communicate with the service I get the following error: XmlException: Name cannot begin with the '<' character, hexadecima...

changing user with federated security in WCF

I have been tasked with implementing user switching in a component that connects to a WCF service using federated security. I can use Tokenclaims.ReadClaim() to find out what username is currently logged on. How do I invalidate this token and force another logon? I have tried changing the username and password on the credentials, but ...

Initiate MSMQ receive operation from receiver (queue in DMZ, receiver on intranet)

I'm currently outlining the architecture of an SMS messaging integration for a customer. The service will expose an external (Internet facing) interface for receiving messages (which will be used by a third-party service provider) and an internal interface for sending SMS messages. My current idea is to have a WCF application hosted by ...

WCF channel timed out error

Hi, I have devloped an application which connects the database thrugh WCF + LINQ. I am able invoke the service from my asp.net application successfuly. But the problem here is that, when i navigate from end to end in my application almost after four or five clicks, i am getting the late response and says channel timed out error. If an...

How can I programatically create this custom binding?

We've got to access a web service that uses soap11... no problem I'll just set the binding as: BasicHttpBinding wsBinding = new BasicHttpBinding(BasicHttpSecurityMode.TransportWithMessageCredential); Nope. No dice. So I asked the host of the service why we're having authentication issues and he said that our config needed to have this...