wcf

Firefox on Windows 2008R2 cannot consume WCF service

After I use WebRequest.RegisterPrefix("https://", WebRequestCreator.ClientHttp); IE is still OK, but firefox will encounter an exception: {System.ServiceModel.CommunicationException: The remote server returned an error: NotFound. ---> System.Net.WebException: The remote server returned an error: NotFound. ---> System.Net.WebExceptio...

Using multiple wcf services, factory class to return proxyclient

I have multiple services in my application. WebService1, WebService2,WebService3 and so on.. All the services have same methods, but they are hosted on different IPs. Now when a client calls a methodA(1) then WebService1Client.Method() should be called; client calls a methodA(2) then WebService2Client.Method() should be called. I do...

Using Rx to simplify an asynchronous Silverlight web service request

I have written a simplified Silverlight client library for my WCF web service using Rx, however I notice sometimes I'm missing completed events. public IObservable<XElement> GetReport(string reportName) { return from client in Observable.Return(new WebServiceClient()) from request in Observable.ToAsync<string>(client.Get...

Strange exception on WCF endpoint launch

Hey there! I am getting the following exception and don't have much clue about what and how it should be fixed: The operation 'ShowData' could not be loaded because it has a parameter or return type of type System.ServiceModel.Channels.Message or a type that has MessageContractAttribute and other parameters of different types. When usi...

Consuming a WCF Service with Monotouch via SSL (https) + basicHttpBinding

I'm currently writing a iphone app which will consume WCF services over a secure connection (SSL/https). I have managed to consume this service while testing locally via http. Now we want to make sure the service is secure, so we've set up a UAT server with a properly signed certificate to run our tests. We are using a custom binding...

Calling WCF Services from web site: one call or many?

This may sound like a very stupid question - and probably is! For an ASP.Net website with calls through to a WCF Service: Three web clients click the button that calls the WCF Service simultaneously. Does the web server make 3 concurrent calls? (e.g. WCF Service receives 3 concurrent calls) one on behalf of each web client? My guess ...

can i call a WCF 3.5 service from Silverlight 4?

Hi, I recently migrated to .Net 4. But had lot of issues with deploying in IIS 6. The server was Win2003 R2 x64. So it has problem in showing ASP.NET tab in Website properties. My Silverlight application has to be in SL4. So I ended up in having the following setup, WCF3.5 & SL4. When I am calling WCF service from SL4, I got InnerExc...

CurrentCulture in Silverlight4 and DataGrids

I having problems with DataGrid component: It shows en-US date-format (mm/dd/yyyy), but the CultureInfo.CurrentCulture is pt-BR (dd/MM/yyyy). Stranger is the fact that datetime is show in pt-BR when edit it: image I can just do a IValueConverter to show it as a string (tested and worked, using CurrentCulture), but then I lost the date ...

WCF calling webservice taking a long time

I have a wcf service (WCF_A ) which calls another wcf service (WCF_B) (currently I am hosting the WCF_B on my local machine with my credentials – as windows service), WCF_B internally makes a call to a webservice (WS01) that is hosted on the IIS. I have created a test client and call the WCF_A -> WCF_B -> WS01. Just before making the cal...

WCF Authorization using IIS and ACLs

Hi guys, i'm trying to secure some WCF services. I'd like to use IIS or the Web.config todo all of the heavy lifting/configuration if possible. I don't want to embed anything in my code - thought I know that may not be feasible. If possible, I'd like to achieve this without having to resort to AspCompatibilityMode :( I'm using a custom...

Hosting ASP.net application from WCF

Is it possible to host an ASP.net (MVC in particular, but I'm not sure if that's important) application from a self-hosted WCF service? I don't want to get into IIS, and I'd like to avoid something like Cassini if possible. Sorry if this is a duplicate, it's really hard to find questions on this (everything is WCF on ASP, not the other ...

What is the correct practice for updating a .net WCF service from SQL Server when data changes via replication

Environment: Replicated Server: SQL Server 2008 R2 Client Server: SQL Server Express Language: .Net 3.5 C# The replicated server will be continually updated by web services and have many of the tables published. The Client Server will have a down stream subscription to the replicated server. Goal: As the SQL Express instance pulls it...

Interacting with a service exposed through HTTP Request

Hello, I have a service called myService.svc. This service is exposed using a webHttpBinding binding. The reason why is because I need to be able to call the service from an iPhone and a JQuery interface as well. From my understanding, WP7 only directly supports BasicHttpBinding which relies on SOAP messages. Unfortunately, SOAP is not ...

What does adding Name and Namespace to DataContract do?

I tried calling a WebInvoke method called Register which returns takes in a User object and immediately just returns that object. It looks like the following: User Register(User user) { return user; } I am not sure what the Name and Namespace attributes do to the DataContract attribute when calling http://localhost:8081/user/regi...

ResponseFormat for WCF in JSON and XML at the same time?

When requesting an object for example using REST, is it possible to get the response in json and xml format or do I have to create UriTemplates that are something like: [WebInvoke(UriTemplate="&format=json?user/{id}", ResponseFormat=WebMessageFormat.Json)] [WebInvoke(UriTemplate="&format=xml?user/{id}", ResponseFormat=WebMessageFormat....

How to create Nullable fields/variables from WSDL instead of extra fields/variables

I am using wsdl.exe to convert a WSDL file and Types.xsd file into a C# file. The wsdl file specifies optional variables (minOccurs="0" maxOccurs="1"), and the generated .NET type handles this by created two fields - one for the variable (e.g. status) and one to let you know if it's specified (statusSpecified). Is there a way to use the...

WCF REST Client Exception

I have the following WCF client code: string add = String.Format("http://localhost:{0}/ServiceRequestRest",accessPort); var cf = new ChannelFactory<IServiceRequestRest>(new WebHttpBinding(), add); cf.Endpoint.Behaviors.Add(new WebHttpBehavior()); busService = cf.CreateChannel(); busService.DoMyStuff("hello",null); When I have "first ...

Azure worker role becomes unresponsive after internal tcp connection with web role

I'm posting the question that first appears here because it seems that it is dead on the Microsoft forums. Plus, Stack Overflow is better. :-P I'm hosting a TCP endpoint in a worker role on Azure -- var _breadcrumbServiceHost = new ServiceHost(typeof(BreadcrumbService)); var binding = new NetTcpBinding(SecurityMode.None); var externalE...

Configuring a simple WCF Service Endpoint in a ASP.NET MVC 2.0

I'm building a simple ASP.NET MVC 2.0 web application. I'd like to serve up a AtomPub endpoint so that I can publish/update content from Windows Live Writer. I originally went down the path of implementing the AtomPub protocol as an Controller with a set of custom ActionResults. That worked until I tried to get authentication working, wh...

callback in wcf window service

I've created a test winform application with a test button which access a wcf window service. i want to callback to client at certain condition from window service. I've configure my window service as you depicted in your example but even then when i debug the code it doesn't step in to call back funcyion and application went to dealoc...