wcf

How to get all open channels in WCF

My application is leaking channels.Apperently some channels are not being closed correctly but i can't find where. At some point my application hangs because there is no channel left to open. Is there some method to get all open channels in the servicemodel so i c an backtrace the problem? ...

Custom client credentials type (username in querystring)

I've been digging through WCF security in an apparently vain attempt to create a service/endpoint behavior that allows me to specify the client username/password credentials (but not to authenticate them, I'm happy to use the built in functionality for that). My intent is to supply the username (no password) in the querystring for use wi...

How to specify Windows credentials in WCF client configuration file

I have a WCF service using BasicHttpBinding with Windows authentication. Most clients are domain accounts and connect to the service using their default credentials. Now I want to connect to the service from an ASP.NET client that is running under a local account. I want to connect to the WCF service using windows credentials (domain\u...

calling a web service using WCF over Http and Https

I know little about WCF so please bear with me! In our project we have a java web service that runs over http and https. We want to use http internally and https for the external version of our web app. So we've created the proxy class in our application and we have setup the binding for http in the web/app.config and all works fine. ...

How can I set an HTTP Proxy (WebProxy) on a WCF client-side Service proxy?

How can I set the HTTP proxy programmatically, on a WCF client, without using the default proxy? Proxies, proxies, proxies. According to the WCF model of development, I generate client-side "proxy" classes by running svcutil.exe on the WSDL for the service. (This also produces a client-side config file). In my code I new-up an ins...

How can I get WCF to close connections automatically?

When I create a WCF application using the built-in Visual Studio templates and try calling it while in a loop, only 5 requests get through. The service then stops responding. The only way that I can get around this is to close the connections after each call. I know that you are supposed to clean up after yourself, but I also know that...

From http to Https Service Call

hi, is there a way for some one to sneak in the to see data if my service is over http and the caller in my case is hosted on http (i.e. service is on secure ssl host while caller is on simple http). is that call secure or not? ...

Howto make this Windows-Service-Scenario as comely as possible

Hello and good morning! I have following scenario: We have a WebService which poses as a search-engine, used by WebApps But as we all know on 32bit systems and IIS6: 800Mb is the max. alloc-mem for a webapp... Now I had the following idea, as we are exceeding this limitation: Let the WCF communicate with a Windows Service, which isn'...

WebSetup for the WCF service

Hi How to create the set up project for the WCF service . I created the set up for the WCF and added primary out file . But i could not see the Web.config and svc files. what is the issue. Please clarify Thanks In Advance Sekar ...

What is Azure and .NET Services? Are in correlation with WCF Services?

As in title... What is Azure and .NET Services? Are there in correlation with WCF Services? Thanks, Alberto ...

Can not get User credentials using webhttpbinding for JSON calls to WCF Service

Hope someone can help! I am calling a WCF service using JSON but I am not able to get the user credentials out. We are using Kerberos so IIS is setup as the following: Server-side tasks: IIS server is member of domain Set IIS server computer account in AD Users & Computers MMC as "Trusted for Delegation" IIS Server must be rebooted f...

WCF: Callback is not asynchronous

Hi, I'm trying to program a client server based on the callback infrastructure provided by WCF but it isn't working asynchronously. My client connects to the server calling a login method, where I save the clients callback channel by doing MyCallback callback = OperationContext.Current.GetCallbackChannel() After that the server does s...

HttpHandler to hook the *.svc requests

I'm trying to create a custom ASP.NET HttpHandler to work with any requests to a WCF web services (*.svc) to return a simple predefined SOAP message. However, after added the HttpHandler to the web.config as shown below. It seems that IIS doesn't pick up the handler to execute. But, the same handler seems to be working fine with *.aspx ...

WCF logging using Logging Application Block

I have a WCF service which is secured with username and password (using SqlMembershipProvider). I'd like to log EVERY (succeeded and failed) login attempt to this service and save user credentials to the database using Logging Application Block. When I turn on WCF logging and trace it with Logging Application Block, i get something like ...

wcf operationContext

hello i have a desktop application that communicate with a wcf service that i building as well i want to be able to manage the logged on users inside the server without a db (statefull server) i also want the server to know how to handle 2 client from same computer, whats the simplest way of doing it? i also have more than 1 service t...

WCF - NullReferenceException on the most basic WCF call

I created my first Silverlight project in VS 2008 Express, and am trying to call a WCF webservice with it. The web service is very simple - I basically just took the default code created when using the WCF Service template from VisualStudio, renamed everything so it wasn't the default "Service1" name, and even removed the complex return...

SAML Assertion consumer Service (ACS) - Suggestions on implementation

We are looking at providing SSO for a partner company so that they can access our website without separately loggin in. The partner company already has an SSO implementation within their intranet as well as other partners. We only need to be able to recieve the SAML tokens and confirm that they are valid (either Browser/Post pr Browser/A...

How to reconfigure WCF webservice to use IIS instead of localhost:8731

I have a small WCF webservice working in my development environment (VStudio 2008, WinXP). I am appreciating being able to use the WCF Test Client at this stage of things. Currently, the APP.CONFIG of my service (project) contains: <host> <baseAddresses> <add baseAddress="http://localhost:8731/Design_Time_Addresses/C...

WCF Contract Inherited Contracts

I'm protyping an application with WCF and I'm trying to define a Callback Contract with an interface that derives from another one. Doing so, the generated proxy code (using svcutil.exe) does not see the base interface and a "NotSupportedException" is thrown on the Server when trying to call methods defined in base interface. I have als...

Do CommunicationExceptions need to be handled on Server Side in WCF?

Do CommunicationExceptions and/or TimeoutExceptions need to be handled in the Service Implementation? (in addition to the client?). What happens when a client times out ? Does the service continue processing the message, or does an exception get thrown? Thanks -Vic For example do, I need to do the following ?? public MyServiceImpl:...