wcf

WCF Security Concerns

First of all, sorry for the dummy question. Couldn't find any straight answer on the internet. I'm new to WCF (and using services in general) and would like to get some information about my security concerns. Suppose I have an open source web application written under .Net which has a WCF Service to change the site users' profile data in...

deploying a wcf service web site

Hi, I am new to asp.net & IIS. Now I am deploying a web site with wcf service to IIS. The WCF service needs windows authentication, so i have used impersonate attribute in web.config. But everytime I change my password, the web page is not served and it throws error. I think it is basic, but I donno. How I can fix this permanently? ...

how to return 404 not found from a wcf service?

hey there Once, to have a complete control over the head/body of HTTP messages - I use the Message class. To return some XML, for example, I call public Message ShowRunResults() { // some [OperationContract] implementation webContext.CreateTextResponse(result.ToString(), "application/xml", Encoding.ASCII); } The questi...

.NET 4 Content Based WCF Routing vs. .NET 3.5 Compact Framework

Hi all, I consider using .NET 4.0 Content Based WCF Routing. Currently I have a normal .NET 3.5 WCF Server. All Clients uses the compact framework .NET 3.5. Could there be a problem, if I will port my WCF Server to .NET 4.0? Thanks for your answer. Kind regards, pro ...

Can I have a WCF call that hits the DB use the creds of the caller?

I have read a lot about impersonation, and I have tried a ton of tags in my config file. I have tried [OperationBehavior(Impersonation = ImpersonationOption.Required)] on my method that hits the database. None of it works. I get a wide variety of error messages depending on how my config is setup. Can anyone lay out for me what C# an...

Cannot start WCF Service - "The service cannot run your command at this time"

Hi - I've been having issues getting a service to start. I have 2 other services are identical in configuration in just about every way that start fine, but one of them refuses to start and I really need to get it to work today. I can't see any difference in their implementation or config files. I'm receiving the following messages wh...

Suggested IIS settings for WCF web service?

I've been reading the documentation on IIS settings, and haven't been able to find much on the MSDN site. I'm trying to figure out the preferred settings for a WCF REST service hosted in IIS6. Main goals of these settings should be reliability, restarting the service when needed, and max throughput. My service will use some processing ...

how to convert .net web services into WCF?

Hello, Is there tool/way to conver webservices into WCF services? like .net frame work application 1.1 to 2.0 provided by MS visual studio. any help would be appritiated. Thanks, Pradeep ...

The provided URI scheme 'https' is invalid; expected 'http Error Help

Hello, I set up a custom binding with http and https endpoints for my WCF webservice. However, when I attempt to call the https endpoint, I get the following The provided URI scheme 'https' is invalid; expected 'http Here are my two bindings <customBinding> <binding name="jsonpBinding"> <jsonpEncoding/> <...

WCF Rest Client with WebChannelFactory

Maybe I am not understanding this so hopefully someone can explain this to me. I am writing a WCF REST service (lets call it RestProj). RestProj has a dependency to the RestProj.DataAccess dll which houses all of the data access layer and to the WCFRestContrib dll. I have another project that contains all of the Rest parameters (data...

WCF Configuration File for Browser Interaction?

I have a simple WCF 4.0 service with some simple methods and a property with a getter that returns List. The service works fine when connected to programatically. The getter is decorated as are the other methods on the Interface that define the service contract. My next move is to make the service accessible via the IE web browser so se...

Configure endpoint for web service declared with WebService() attribute

We have a C# Web Service that declares itself using attributes. The code-behind file looks like: [WebService(Namespace = "http://the.web.service.url/")] [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] public sealed class TheWebservice : WebService { [WebMethod] public SomeObject TheFunction() ... The web ser...

How can I return bare result back to WCF client

I have code something like the following: <OperationContract()> <Description("")> <WebGet(Bodystyle:=WebMessageBodyStyle.Bare, UriTemplate:="TestConnection")> Function TestConnection() As String Public Function TestConnection() As String Implements ITestSvc.TestConnection WebOperationContext.Current.OutgoingResponse.ContentType = ...

consuming multiple clients of the same C# webservice from different remote locations

Hello, I'm working on two webservices Call the first one ModelService and the second one ConfigurationService My goal is to have multiple servers running the ConfigurationService and one central server running the ModelService So far what I have working is the ModelService has a ServiceReference added which points to http://localhost...

WCF and IIS confusion on the wsdl location

I created my WCF project and it works fine when I just run it from the debugger. But when I publish it to IIS and point a browser to the svc the path used has localhost in it. Like this: htpp://localhost/MyService/MyServices.svc but the path that the webpage says to go to for the WSDL uses my computer name, like this: http://MyComp...

LINQ Insert Into Database resulted in duplicates

I have a linq query running in a WCF Web Service that looks for a match and if one is not found then it creates one. my code looks like //ReadCommitted transaction using (var ts = CreateTransactionScope(TransactionScopeOption.RequiresNew)) { Contract contract = db.Contracts.SingleOrDefault(x => x.txtBlah == str); if (c...

Is there a performance issue with hosting multiple WCF services on the same port

I have 2 WCF services going through the same TCP port. Both services are self-hosted, one attaches to net.tcp://localhost:8700/DataAccess another to net.tcp://localhost:8700/Messages Will I gain any performance by attaching them to different ports? One of the services is very busy sending megabytes of data every second. Any reason to h...

.Net WCF RIA Services: To page or not to page? and how much data to send down the pipe.

So I was having a debate with my co worker about WCF RIA Services, and exactly how much data we send to the client in a given request. Here is the setup: We are creating a reporting application in Silverlight and grabbing data from a WCF RIA Service to populate various grids and charts. We have two differing ideas as to how to implement...

Is there a way to consume a web service in Access 97 VBA?

The question is simple enough. And judging by my last thirty minutes of searching around, I'm assuming that the answer is a resounding "no". So if it's a no, here's a follow up question: What's the best workaround? Is a COM wrapper around the web service a viable solution for a VBA version that old? Most of the functionality in the web...

login failed error when connecting to database from WCF service

Hi, I created a WCF service and one of its methods connects to database to perform some task. when I call the WCF service method from the client (website or console app), I get a login failed error ("login failed", login is from an untrusted domain"). I can connect to the database from the website successfully, but when I do the same b...