wcfservice

how to consume a WSDL web service in iphone?

I have a wcf web service which returns a wsdl response when I invoke the service.How can I consume a WSDL web service in iphone? ...

How to store unit test values in a load test

I am load testing a service which tests a number of connections per minute. One of the checks that I’ve been asked to log is the response time of each connection. The unit test stores the time the request was sent and the time of the response. What I would like to do is have this value stored or shown as part of my load test. Is this pos...

Getting class type from WCF service

In my client, I'm trying to declare an entity type from the service.... MyService.MyClass myClass = new MyService.MyClass(); .... MyClass isn't available. The assembly MyClass is within is referenced by MyService. What am I missing? ...

Adding reference to WCF service gives error

Hello All I am having a very basic problem with creating WCF. So here is what i did Created an ASP.NET web site project in VS2008. Created a WCF service application in the same solution. Added a new WCF service "WCFService1.svc" into this project. 3,. Changed the setting of the Web server from "Use Visual Studio Development Server" ...

Sharing enums with entities and services, keep in one layer or both?

So there is an entity that has an enum property and a wcf service that would return or take that enum type. Should the enum be in the entities assembly and mark it up with attributes or should I duplicate the enums for both assemblies, marking the service enums and leaving the entity enums undecorated? I don't like duplicating the enum t...

How do you move the MSDN "Self-Hosted" WCF example away from localhost?

Hello, I've gone through the MSDN WCF - Getting Started Tutorial, and it went great until I tried to move the client from one machine in my domain to another in my domain. When I moved the client peice to the other machine in my network, it gave me an SecurityNegotiationException. Here is what I've done: I defined a service contra...

Problem accessing WCF service when hosted in IIS

Exact duplicate of: http://stackoverflow.com/questions/1799143/problem-accessing-wcf-service-when-hosted-in-iis Reply Edit Favorites Contact Report abuse Quick Reply Problem accessing WCF service 11-25-2009 5:23 PM | I have a problem accessing WCF service that I added for my silverlight project. Here is what I did 1. Created the silv...

How do I rename or edit the SVC file of a WCF service in Visual Studio 2010

This one is driving me crazy! I've just upgraded to VS2010 beta 2 and created a simple WCF service. In previous VS versions I could easily find and edit the name and contents of the SVC file from the default Service1.svc to whatever I wanted to (i.e. e.g. MyTestWCFService.svc). I'm trying to do this in VS2010 but; 1) Can't find the svc...

Implement 'Ping' functionality using Message Inspector causes WCF runtime to throw NullReferenceException

I'm using WCF to implement a web service. This web service requires a 'ping' feature as a health monitor for each service. This functionality has been implemented using IDispatchMessageInspector and is configured for each endpoint of a service. This is due to a business requirement for the 'ping' to be as near the actual service code as ...

Measure request time on server

Hi, I would like to compute time that spans between two particular moments: - start moment would be call to method IDispatchMessageInspector .AfterReceiveRequest - end moment would be call to method IDispatchMessageInspector.BeforeSendReply In fact, I would like to compute time that is needed to execute service call user code. I thou...

How do I stop WCF from message pumping while it is waiting on a synchronous call?

I have a situation where a basic message, such as wm_paint, inside it's treatment will trigger a call WCF Webservices when, for example, it needs remote formatting information. However, while WCF is waiting for that call to return, messages keep being pumped, which can end up in another message triggering the same call. -Thread safety ...

WCF services using the same port from different processes?

I know you can create multiple services on the same port within a single process. We have the situation where we are assigned a port to use for all traffic but the architecture doesn't currently support starting all wcf services from a single process. Obviously, all services have different endpoint addresses. Is there a way to add mult...

Duplex Service in asp.net

I have a duplex service and i'm using silverlight for the functionality of inserting values and retrieving values.The first thing i want to know is: when i add a new endpoint for example wsdualhttpbinding,then my service doesn't work.It doesn't give any error but it neither retrieves nor inserts the values. Second thing is if any one c...

WCF JSON object

[OperationContract] [WebGet(RequestFormat = WebMessageFormat.Json)] public MyEmployee DoWorksINGLE() { return new MyEmployee("Bad", "Munner"); } [DataContract] public class MyEmployee { public string FirstName = ""; public string LastName = ""; public MyEmployee(string F...

Windows Service Starts then Stops

I have a Windows Service that I inherited from a departed developer. The Windows Service is running just fine in the QA environment. When I install the service and run it locally, I receive this error: Service cannot be started. System.InvalidOperationException: The requested Performance Counter is not a custom counter, it has to be ini...

Coarse-Grained WCF Services

I have 2 WCF services now and I want to construct the WCF Service which will use 2 WCF Services(trying to make coarse-grained service).But as you know for making wcf service; create wcf service library and I construct all methods ,write on WCF Service Library.And then I create New Web Site which is WCF Service and I link it to WCF Servic...

WcfSvcHost.exe not running when I debug a Wcf Library

Hi, I have WCF library project which I have recently done some minor refactoring on eg changing the namespace and changing it location on disk. I also removed the app.config, because I thought the app.config is used by whatever hosts the wcf service. I have since noticed that I can no longer debug the library using the WcfSvcHost like ...

How to get information about WCF service client from operation implementation?

I especially need to get client's certificate used to call service's method. This is to react differently for different clients. ...

How do I start an out of process instance of a WCF service?

I would like to start a new instance of a wcf service host from another (UI) application. I need the service to be out of process because I want to make use of the entire 1.4GB memory limit for a 32bit .NET process. The obvious method is to use System.Diagnostics.Process.Start(processStartInfo) but I would like to find out whether it is...

WCF service connection closing when trying load more records

I use WCF service to connect WPF front-end application with ERP back-end database. I get an WCF service error: "The connection was closed unexpectedly" in my WPF application when trying to load table with many records (about 1000). Everything is going fine on tables with 10 - 20 records. In my settings of the WCF service I have nothin...