wcf

WCF on Linux - is it worth the effort

Hello all. This is my first question here, so please don't shoot. I've been playing with Linux recently (Ubuntu 9.04 and openSUSE 11.1) with focus on web services. The simple Hello World web service (as described on mono-project.com) works fine. Now I need to step into the wonderful world of WCF (I'm familiar with the concept). And I'm...

How do I create an Authentication Cookie in a custom MembershipProvider?

I'm trying to create a custom MembershipProvider and I was wondering how I would add my user information to the Authentication Cookie that ASP.NET uses. My goal is to get my authentication to work for both the website and the WCF service with ASP.NET Compabatibility mode enabled. ...

Call A Windows Service from a remote computer

I am going to be coding up a windows service to add users to a computer (users with no rights, ie just for authentication). (As a side note, I plan to use this method.) I want to be able to call this windows service from another computer. How is this done? Is this a tall order? Would I be better off just creating a Web Service and h...

WCF Service Operation - GET Fails with 404

I have a WCF service which works on my dev machine running IIS 7, but my coworker is running IIS 5.1 (XP). He can view the service in a web browser when he navigates to the service page, but if he tries to call an operation or navigate to it in his web browser he gets a 404 error. I had him run ServiceModelReg -i, but that didn't chang...

Manually writing WCF POX posts

Let's say I have a WCF contract such as [ServiceContract] public interface IContract { [OperationContract] [WebInvoke(Method="POST", RequestFormat=WebMessageFormat.Xml, BodyStyle=WebMessageBodyStyle.Wrapped)] string ComplexPost(string name, ComplexType data); } And a data contract: [DataContract(Name="ComplexType", Namesp...

WCF RESTful Service - How to debug?

I am starting out on a WCF project that has an underlying RESTful architecture to it. I have so far a Service Class and a Service Contract via an Interface in place. If I go to my Solution Explorer and right-click on the .svc file (Service Class) and View in Browser, I can view my Data Sources in a RESTful way, e.g. Addresses/ and /Emp...

WCF - To Use [DataContract] or not with .NET 3.5 SP1?

I am working with WCF .NET 3.5 SP1 and have read that one does NOT have to decorate their Entities/Collections with such things as [DataMember], [DataConract], and/or [Serializable]? What is the best way to go? What have you all encountered? I am on 3.5 SP1. ...

Is the WCF Service Trace Viewer tool indispensable?

Do I need to learn the WCF Service trace viewer tool? I understand I can use the WCF Service Trace Viewer tool to trace messages leaving from clients, or arriving at servers. Can I configure WCF tracing to record REST messages as well as SOAP? Are there other neat tricks I can do? I've developed with WCF for a long while but I've n...

WCF Client Calling ASP.NET Service - Authentication

I have a brand new WCF client (I added a service reference through VS2008) which calls an older ASP.NET service app. The ASP.NET app is hosted in IIS 6 on Windows Server 2003 and allows Windows Authentication and Basic Authentication (configured on the virtual directory for the web site). One of the places I'm deploying my client to is ...

Persist a DataContract as XML in a database

I'm working on a kind of "store and forward" application for WCF services. I want to save the message in a database as a raw XML blob, as XElement. I'm having a bit of trouble converting the datacontract into the XElement type I need for the database call. Any ideas? ...

How can I check that a WCF host is available before I use a channel from a client?

I am creating a windows service that starts a number of slave processes. In each of these slave process I start listening on a named pipe for message from the master process. I currently have the situation where the master process calls a slave via a named pipe before the slave is fully started and starts listening on the named pipe. ...

Storing password in forms authentication cookie - ASP.NET and WCF calls

For my web app security I'm using FormsAuthentication / MembershipProvider with a non persistant cookie. My application interacts with some web services, these also use the Membership providers. User passwords are hashed in the database. The problem is the person logged into application the web service needs to authenticate with the w...

How can I change EndPoint address in WCF?

Hi All, I have a client app and a server app. The client calls a wcf service and passes machine information to server , based on the machine name the server calls back a wcf service on client side. So to achieve this , I am just changing the EndPointAddress but then it's throwing NoEndPointFoundException , how can i fix it , below is t...

Generated WCF proxy configuration uses server's local name

We have a service hosted behind our firewall that receives request forwarded through to it by the external router. The service is working fine, however whenever one of our clients adds a service reference using svcutil or Visual Studio, the generated app.config file always contains the endpoint address as https://myserver.myinternaldomai...

WCF, JSON, and FreeBase

Hi, I would really appreciate some help on the best way forward with WPF and JSON. Is there any way to query the JSON response below using LINQ? { "code": "/api/status/ok", "result": [ { "id": "/en/exxonmobil", "industry": "Petroleum", "name": "Exxon Mobil", "type": "/business/company" }, { ...

WCF endpoint: Message.WriteMessage changes the closing tags inside the XML message

I am using a custom endpoint behavior extension to intercept messages as they are received by my WCF service endpoint, using IDispatchMessageInspector. I retrieve the message content like this: public object AfterReceiveRequest(ref Message request, IClientChannel channel, InstanceContext instanceContext) { MessageBuffer messageBuff...

how to impersonate client side of wcf call

Hi, I need some help about WCF and authorization. Currently I have a client which calls as .NET remoting object hosted in a windows service and which is calling a WCF service (with wshttpbinding). The WCF service is using windows authentication with message based security. The windows service is running with a special account. Once a c...

How Do I call A wcf Web Service from jquery?

How can i call a wcf service from jquery (i am using asp.nt mvc). This is what i used to do with asmx webservices : $.ajax({ type: "POST", url: "Services/MyService.asmx/DoSomething", data: "{}", contentType: "application/json; charset=utf-8", dataType: "j...

Problem Implementing Own Design of a WCF Reliable Service for SilverLight (basicHttpBinding)

I am trying to implement a very basic reliable message state handling system to provide improved reliability in my Silverlight to WCF server communications. I have taken the route of introducing a custom message header into the SOAP request that contains an incrementing integer as a message ID. The idea is that when I receive a reques...

exposing methods as web service operations in winform

can't I expose my methods as webmethods in a winform and have other clients call them as webservice? Basicall I am trying to get my winform app to host a webservice without asp.net or iis. I am trying to get a ^%&^& blackberry to communicate with my winform app....tried for hours looking for some other way of getting the two to talk wit...