wcf

WCF HTTPS and HTTP bindings with single web.config

Is there any way I can accomplish the following: Single Web.config file for a .net web application. the web application exposes a number of WCF services for consumption by javascript. Production requires ssl, so all these services are forced over ssl. Development does not allow ssl, (ASP.NET development server) How can I configure th...

How to do Updetes and Delete in Wcf with using Dataset.xsd

I am working on WCF with DataSet.xsd in a C# application. Could you please tell me how to do Update and Delete? ...

Get Password In Client

Hello Friends I send UserName & Password(Login Form) Form Client in the proxy to the server by this coding myProxy.ClientCredentials.UserName="UserName"; myProxy.ClientCredentials.Pasword="Password"; In addition Our ClientCredentialType Must be MessageCredentialType.UserName. in the server I need UserName & Password For Impersonate ...

Pushing data from the server to browser via http

In general chat application, client's browser always poll to server to check for new messages. // the function to check new messages in server function check(){ // but this question is less about jQuery. $.ajax({ type: "POST", url: "check.aspx", data: "someparam=123", success: function(msg){ // process msg h...

Using Observable.FromEvent when calling a WCF service in Silverlight

I am trying to use the .NET Reactive Framework to simplify some asynchronous calls to a WCF service used by a Silverlight 3 app that I'm writing. The trouble is that I'm having a hard time finding a way to structure my code in a way that will work. Part of the problem, no doubt, is understanding what mechanisms are available in Reactive...

How to authenticate and keep track of users with WCF/JSON?

I'm implementing a service in WCF and need to have custom user authentication, by means of a username/password. This service is configured as a WebScript(JSON) service. I would like to know if it's possible to obtain a security context so I don't have to include a hash or user/pass in every call. I know I can use a certificate for this,...

Exception in creating a WCF Service using MsmqIntegrationBinding

My machine is Windows 7 ultimate (64 bit). I have installed MSMQ and checked that it is working fine (ran some sample codes for MSMQ). When i try to create a WCF Service using MsmqIntegrationBinding class, i get the below exception: "An error occurred while opening the queue:The queue does not exist or you do not have sufficient permis...

WCF IPv6 Endpoints

I'm investigating the possibility of using the Peer 2 Peer along with WCF in a Windows app for an EPoS terminal. The app will sit on a number of PC's in a local network; there will only ever be one instance of the app per PC. My current thinking is that my app starts up and joins the peer mesh, on joining the mesh it periodically shout...

WCF Service polling hangs

Hi All, I have 2 wcf services, 1 which polls the other service at regular interval.The service2 is hosted in no. of machines with the same configuration. My problem is that whenever the poller service gets restarted, even though the service2 on other machines runs fine, i am not getting the response from those services (basically it g...

How can I make WCF talk to this web service?

This is a follow up of this question. As suggested by @Benjamin here, I am trying to add a service reference for my wsdl now (in stead of a web reference). Here is the url to the wsdl in question: https://eu.link.fiatauto.com/tsi/DDUWsAut.php?wsdl The problem is that Visual Studio generates an empty codefile: //------------------...

"keyset not found" when trying to access my private key

Possible Duplicate: CryptographicException Keyset does not exist, but only through WCF My WCF service throws "keyset not found" when it starts the service, it seems a permission error since if the application pool's identity is administrator everything works fine. However, I granted ACL right to the account which has this error...

Identity of thread in self hosted WCF service when called from Web Application

I have a Windows Service that is self hosting a Wcf service, this Wcf service has a tcpBinding with default settings. The Windows service is running as LocalSystem. The Wcf Service is referenced (default settings) by a Web application that is running in IIS 7.5 integrated pipeline within it's own application pool with its own identity. ...

Are 'by ref' arguments in WCF bad or good?

I've recently seen a WCF service declaring operation contracts with by ref arguments. I don't know why this design decision was taken (operations are void), but furthermore, I'm not able - from my WCF knowledge - to say if this is a good practice or not. Or if this is not relevant. What do you think? ...

Accessing WCF Service using TCP from the DMZ (not on network or domain)

We have a DMZ where we host an IIS website which in turn communicates to our "app" server (also IIS) WCF services using TCP. When we are on the domain and in the network this works fine. When we try to access the services from the DMZ we get a "cannot handle anonymous" user exception. Accessing the app server directly works fine. A...

Distributed application (WCF/Remoting/web servervices) Vs Web application

Hello all, I am making a medium sized standard LOB application. Currently its a web application but I am formulating a proposal to revamp it into a Desktop remote application. By this I mean that the database and the application server will be hosted in a remote location. The client application will communicate with the server via the i...

Live Example of WCF

Hi, I want a live example of WCF Service. can anybody send me the url of the site that where WCF is implemented (except MSDN and Myspace). and I am also intereted about the developers who are working on WCF. Plese Help Thanks, Pradyut Sinha ...

user-friendly message for WCF exception

so far, i just tell user that an error happens, please retry. what message should be more user-friendly? ...

How to prevent that a channel exception make a WCF service stop working?

I created a WCF singleton service with netNamedPipeBinding. When a channel exception occurs, it leaves a channel in a faulty state, and all subsequent operations throws exceptions. How can I prevent this? I want that a TimeoutException, or any of the other common exceptions, to make only one operation fail, and not to make the service un...

Using HttpClient with the RightScale API

I'm trying to use the WCF Rest Starter Kit with the RightScale's Login API which seems fairly simple to use. Edit - Here's a blog entry I wrote on using Powershell to consume the API. Edit - Created a generic .NET wrapper for the RightScale API - NRightAPI It's exactly as simple as it looks while using CURL. In order for me to obtain...

Passing Xml from jquery to wcf method

hi, I am sending xml from jquery ajax method to WCF method replacing all special characters. my jquery method structure is : function UpdateUserProfile(UserId ) { var reqParams = { LinkedinUrl:$("#hdnProf").val(), LinkedinFeed:$("#hdnfeed").val() }; } var reqParams_Serialized = Sys.Serialization.JavaScript...