wcf

WCF works as appliction, but not as service

I have a WCF server that I can run as a service or as a windows forms application. When I run it as a Windows Forms application I can connect to it via my client application. However when I run it as a service using the same code, I cannot connect to it. I have confirmed that the service is running and doing its work. Below is the server...

WCF Proxy Generation

I use svcutil to generate my wcf proxy that is calling a WSE2 web service. The problem comes when the web service author changes the order of fields in the proxy. I examined the generated proxy and sees that the public attributes are adorned with the XmlElementAttribute(Order=0) .. Order=1, etc for each field. Is there a way to genera...

Read Http Cookie from Request Stream In a WCF Service

What settings must be configured to permit Http cookies to retrieved from the Http request object in a WCF service. I am using basic Http binding. I have set aspNetCompatibilityEnabled = true and allowCookies="true". Please advise. I am certain the cookie is there with the proper domain. I have created an .aspx test page that calls my u...

using custom principal in Workflow

I have an application that hosts several WCF services. I have created a custom ServiceAuthorizationManager that is working perfectly. I inspect a few elements on the OperationContext.IncomingMessageHeaders to get a username and password. This was to overcome some limitations in our environment that wouldnt allow us to use what was bui...

distributed application model, server and multiple clients (client can run on server)

I've got a system i'm designing where we're using 4 specialized PC's we manufacture in house that have 16 serial ports (db-9 RS232) I need to communicate with 64 units near simultaneously (4x16) and manage the communications. Here's the model I came up with and i'm soliciting feedback Server: Runs on one system and coordinates client a...

Connect Flash to WCF on IIS with security?

Could someone point me in right direction for where an example of setting up WCF on IIS using just HTTP and POST (so that Flash can call the service) I was hoping this could be a solution: client calls my ASPX page which has MembershipProvider. Flash game is on the ASPX page and any calls to my WCF IIS service from the Flash game also p...

What is some good WCF/web services security reading?

I've been doing a lot of studying and work recently related to WCF, web services and distributed computing in general, but most of the security concepts go over my head. Transport security, message security, encryption, certificates, etc. I understand the basics of symmetric and asymmetric encryption, but I don't really understand the re...

WCF as a web service with the smallest possible payload

I do most of my work with Microsoft technologies these days, so naturally I'm checking out what WCF has to offer. It seems very flexible and a great next step up from .Net remoting, but it seems very tied to SOAP messages and quite a bit clunky for a platform agnostic web service app. I'm not an expert on the technology, but I imagine ...

WAS hosting of queues

I read that when hosting a queue endpoint all these names need to match: Hosted in IIS at: http://localhost/MyService.svc service endpoint address: http://localhost/private/MyService.svc queue: .\private$\MyService.svc So I wonder, how can you host a service with multiple endpoints to different queues? For example a service that is l...

Explicitly starting WCF service in IIS

Hi guys, I've got a WCF service with quite a long start up time (lots of data is being fetched from Oracle into RAM). It's recycled everyday at 4am which is fine, but I would like to explicitly start it at 4:30am so the first user (using Silverlight client) will not have to wait for the service to start next morning. What would be the b...

WCF Client not able to negotiate security access with Service running in a different machine

I'm trying to host a WCF Service with binding "wsDualHttpBinding". When I run my client and service(hosted in IIS) from the same machine it works fine. But, when I host the service in a different machine my client fails to register with the service. The following errors are coming... [System.ServiceModel.Security.SecurityNegotiationE...

Streaming Image files using Wcf

hi, I want to send a large image to server through Wcf.I may pass it as a byte[].How can i do that.What is MTOM...where can i find a sample...? ...

Web Service returning object with null fields

Never seen this one before. WebService.Implementation imp = new WebService.Implementation(); WebService.ImplementationRequest req = new WebService.ImplementationRequest(); return imp.GetValue(req); The object that imp returns is not null. It's returning an ImplementationResponse, as expected. But all of the fields in that object are...

Generating Client Callback Service Interface For WCF

HI I am trying to follow the following article http://msdn.microsoft.com/en-us/library/ms731064.aspx , but i cant seem to generate the Client Callback Interface. I am using VS 2008. Not sure what is causing it , because 2 separate articles that i tried give the same prob. Thanks ...

How to implement asynchronous updates for Silverlight app from a SharePoint WebPart?

I'm trying to figure out the best way (read: the easiest) to send updates to a silverlight app from a webpart (that contains the app) asynchronously. The exact time the update would have to be sent is determined by the webpart and it is sent ASAP. Two solutions I've googled (but not fully understood) are: WCF duplex communication/sockets...

How to consume multiple WCF services from one client

I am still learning the whole WCF thing, so please bear with me here. What I have is two self hosted services created using C# and VS 2008: Service # 1 Adds two numbers and returns the result. Service # 2 Returns the square of a number. I want the client to be able to send in two numbers to Service 1, get the sum and then send the su...

Create WCF service for unmanaged C++ clients

I need to get unmanaged Windows C++ clients to talk to a WCF service. C++ clients could be running on Win2000 and later. I have a control over both WCF service and which C++ API is being used. Since it's for a proprietary application, it is preferable to use Microsoft stuff where possible, definitely not GNU licensed APIs. Those of you w...

Why does WCF limit concurrent connections to 5?

I have a WCF service (basicHttpBinding) hosted in II7 on Vista that I expect to handle many requests concurrently. I'm attempting to load test the service by spawing 200 threads in a test app and calling the WCF service. I've run this test app on the same machine as the server as well as multiple other computers and I always get the sa...

WCF:Relationship between NetworkCredential and Impersonation

I have a WCF service hosted in IIS 7 in the default app pool in Integrated mode with anonymous access disabled and windows Authentication enabled. I have put the following attribute on the method implementation for my interface. [OperationBehavior(Impersonation = ImpersonationOption.Required)] If I do not supply network credentials i...

C# Implicitly pass custom SecurityPrincipal to threads

Is it possible to pass a customer SecurityPrincipal reference on a main thread to other child threads? Is there any way to pass value-type information to the various threads via a context of some kind? This is running in a WCF environment where I want to run parallel code but find myself constantly resetting security information on eac...