wcf

Java Socket exception while trying to reach .NET WCF web service on IIS

When I call, the service's method, I have Web Service Exception happening which I couldn't figure out for now. The issue is this, I am running NetBeans 6.8 against IIS 7.0 with the Web Service written using WCF: javax.xml.ws.WebServiceException: java.net.SocketException: Connection reset at com.sun.xml.internal.ws.transport.htt...

WCF RIA services?

Does WCF RIA services supports custom methods? also in which dll can i find the "[Custom]" attribute? ...

How To Set ComboBox's SelectedItem Programmatically via Silverlight?

Here's my scenario - I am working with SL3 (and WCF Data Services) and I have a custom form that manages Employees. On the form, I have some simple TextBox(es) and some ComboBox(es) for entering basic information for an Employee. In my architecture, I have some base classes, one to handle the Collections of objects (ObservableCollectio...

WCF Service hangs on the 14th call

Hi everyone. I'm having a problem where the WCF service hangs after 13-14 asynchronous process calls from the client. This occurs all the time. The client is a mobile JavaFX app. There is no specific error outputted in the server as well as in client. Someone suggested that it might be a throttling issue. I've set the service side .co...

How to store/save Timer/Threads instances running in WCF service

I'm trying to make a simple scheduler service that will automatically send emails, etc. For now I have simple WCF service in which I create an instance of a timer, set a callback and do some work in the callback. Now this part works fine, with the callback being called and the work in it being done as expected. The issue is I need to m...

Correct method of 'hooking' code into a WCF instance?

I have a WCF service up and running. I have it hosted in a win forms app and I want to have various statistics about it's usage being displayed in real time on the form. Obviously I don't want any code in the WCF service to collect the statistics or handle any GUI. Currently I am working towards having a number of events inside the WC...

WCF IIS svcutil error

Hello colleagues. I have wcf iis hosted service. I've created standard(from vs template) wcf service and its client. At client I add ServiceReference to my wcf service. All is good. No errors, web-form for this server works too. Next step I publish my wcf service to Win2003 IIS6.0. I successfully go to http://server:1234/Service1.svc, s...

WCF service not returning value to jQuery

I have a problem with getting jquery to retrieve results from a WCF service. I am hosting the WCF service within IIS and when I attach the debugger to this process I can see that the code is processed successfully. However, when it hits the callback within jquery there is no data?? I have set up a trace on the wcf service and there are ...

WCF Custom User Identification

Hi I'm creating a server/client solution with custom user logins (not WindowsIdentity). I need a way to transfer the identification over WCF from the client to the server. This is done after the user is authenticated and authorized by the server. I don't want to have the username as a parameter on the service call. I know I can use Mess...

Write-through buffer in WCF

Is there any standard way of implementing some sort of a write-through buffer for a WCF call? I need a mechanism to be able to write to a bufffer or cache which gets persisted and then writes it to the service. If the service is down the call will be transfered when the service is up and running again. I know you can use WCF over MSMQ wh...

how can i check whether WCF is already registered with IIS

i am making a installer and want to check whether the WCF is already registered with IIS ...

Deploying WCF services in a production environment.

The web provides an abundance of tutorials for developing and testing WCF services along with client applications that reference them all within the Visual Studio IDE. However, in a production setting, one needs to deploy services and clients on various hosts where Visual Studio is not available, and the clients need to be configured ...

How do I set ReliableSession.MaxPendingChannels when I create a NetTcpBinding in code?

We are getting this error: System.ServiceModel.ServerTooBusyException: The request to create a reliable session has been refused by the RM Destination. Server 'net.tcp://localhost:50000/' is too busy to process this request. Try again later. The channel could not be opened. As I understand it, I need to increase the v...

Can a WebServiceHost be changed to avoid the use of HttpListener?

I am looking for a way to use a WCF WebServiceHost without having to rely on the HttpListener class and it's associated permission problems (see this question for details). I'm working on a application which communicates locally with another (third-party) application via their REST API. At the moment we are using WCF as an embedded HT...

Get Number of active service instances?

Hi all, Is there anyway of getting the number of active instance of the service I've tried adding a static int counter in the constructor and this works and implemented Idisposable to decrement the counter on the service but the dispose method only gets called when the service host closes? Is there any native object i can get and see t...

Is it ok to call a service method in an other service method ? (WCF)

Sample code: public class Service1 { public int Service1() { .... } } public class Service2 { public int Service2() { ... var service1 = new Service1(); var count = service1.Service1(); ... } } Both classes and methods are exposed thru WCF. ...

Visual Studio Add-In - Get Interface Methods from WCF Programmatically

Info: Visual Studio 2010, C# I am looking at the following functionality via a Visual Studio Add-in User has a Class Project and clicks a button (This bit is fine) WCF Project is automatically created in current solution (This bit is fine) Service Reference is added to the current Project I can create a working WCF Project and if I ...

Multiple WCF service calls in ACID transaction

Here's my scenario: I need to make three or four calls to different WCF services before completing the transaction - what are my options, if any? ServiceA.SaveWork(work1); ServiceB.SaveWork(work2); ServiceC.SaveWork(work3); ServiceD.SendNotification(notification); If one call fails, all fail... Note that these services may not be in t...

Is there a way to declare WCF FaultContracts at a higher level than operation?

I have a service where every operation can respond with the same custom fault type. I have this working fine by applying the FaultContract attribute to every operation like so: [OperationContract] [FaultContract(typeof(MyFault))] public string Operation1(); [OperationContract] [FaultContract(typeof(MyFault))] public string Operation2(...

Can I use a WCF client proxy as a straight replacement for SoapHttpClientProtocol?

I'm talking with a web service with a generated proxy that uses System.Web.Services.Protocols.SoapHttpClientProtocol, is there any reason I might have trouble replacing the proxy with a WCF client proxy? The web service being called is written in Java and uses the Apache Axis SOAP engine. It uses only HTTP Basic authentication. ...