wcf

Workflow as WCF Service Unexpectedly stops

We have a .Net 3.5 Workflow hosted as a service that sometimes stops unexpectedly. This has occurred at times while it is writing a file and, most recently, when receiving a reply from another WCF service. There are no exceptions being caught, as these all get logged, and there are no messages in the event logs on the server where both...

Cannot send message to MSMQ queue when destination server's domain name is specified

I have a wcf msmq service. I try to send a message to it. Delivery fails is I specify server's domain name in endpoint address. If it contains ip or netbios name - everything is fine. I am able to ping the sever by it's domain name. DNS server is also reachable and has the needed entry. The messages are left in the system dead-letter que...

Unable to properly reference a wcf dataservice

Hi, I'm having a couple of issues which may be related, or may not. I noticed that when I use Add Service Reference in Visual Studio to add a reference to my data service, the reference.cs it generates does not compile. It complains about a missing namespace. I can fix it up to compile, but this happens every time I update the refere...

Cannot connect to my WCF service right out of the box

I have a service I am trying to consume in a unit test. At this point I'm just trying to instantiate the thing. After suffering the "Could not find default endpoint element that references contract" error for hours and unable to figure it out, I completely deleted out the consumer and started from scratch. All I did was add a service ...

SoapUI request to WCF service fails without decrypting

I am trying to get a WCF service configured with message security (no transport security) such that it can communicate with Java clients. I have been using SoapUI to test, and have overcome numerous hurdles. Now, WCF seems to be authenticating the message, but it is routing it to the operation without decrypting it. I am getting the foll...

Data Exchange WCF and Silverlight

I am using a WCF service and a Silverlight Client sending data to the service. I am sending data to the service in a For-Loop. However, when the loop runs for the first time the data is being perfectly run, while in the next turn it is returning this error: Microsoft JScript runtime error: Unhandled Error in Silverlight Application An...

Dependency injection with multiple repositories

Hi! I have a wcf service and on the client i have: var service = new ServiceReference1.CACSServiceClient() The actual service code is: public CACSService() : this(new UserRepository(), new BusinessRepository()) { } public CACSService(IUserRepository Repository, IBusinessRepository businessRepository) { _IRepository = Reposito...

How do I talk to a WCF service from a Firefox extension?

I wrote a simple WCF service and verified I could call it from an asp.net web application. Now i want to call the same service from a firefox extension. Looking at the example here, http://dotnetbyexample.blogspot.com/2008/02/calling-wcf-service-from-javascript.html I figured if i get the javascript proxy in step 7, I will be able to ca...

Call a webservice without proxy

I have to call a webservice from withing a C# programm. The webservice has most probably not a standard format. The interface description (wsdl and xsd) are very complicated, and using a proxy generating mechanismus results in hundreds of classes. The generated classes ar of little help since they are very generic, having mostly simple O...

Configurationless WCF using Factories and JSONP

I'm using the WebServiceHostFactory in my WCF services to avoid having to create a crapton of binding configuration in web.config. However, I'd like to expose the services as XML/JSON and JSONP. Reading: http://jasonkelly.net/archive/2009/02/24/using-jquery-amp-jsonp-for-cross-domain-ajax-with-wcf-services.aspx It does not look like I...

Silverlight - How do you localize calls to WCF service?

I'm currently trying to find good way to make calls to WCF services in a way that will allow Thread on server to be aware of client culture. After spending couple days reading topics on the web it seems to me that the best way to do this is just to add (string clientCulture) to list of parameters of WCF methods; no longer: string HelloW...

Really bizzare WCF DataContractSerializer behavior, did I find a bug?

I have a straight forward service like: [ServiceContract] public interface IService { [WebGet(UriTemplate = "/", ResponseFormat = WebMessageFormat.Xml)] [OperationContract] List<DataContracts.MyThing> Get(); } My datacontract is straightfoward, nothing unusual there: [DataContract] public class MyThing...

Interop problem calling jax-ws service with complex typed parameter from .net - fields received as null by server

I have create a web service in glassfish v3. The method I am try to call from .net using generated client in visual studio 2008 takes a single parameter which is basically a java bean - simple types (Double, String, Date) as fields with getters and setters (Actually it is an EJB entity class). I find that when I call the method from my ...

How to restrict WCF logging

We've using lots of WCF services in our application and we're finding the logging is really useful but the files tend to grow fairly quickly. In fact, we can usually only play around with a service for 10 minutes or so, until the log file is more then 10mb and too slow to load. Is there anyway to restrict the logging to only 1000 entri...

Running a WCF Service host and WCF client proxy on the same Windows form

Hi we're trying to build a "web" of connected clients, where each client.exe also provides the service host that remote clients connect to. The idea is that whenever a remote client connects to the local client, a form is used to visually show the connected remote clients. Whenever a new remote client connects or disconnects, the form i...

Handling Images - WCF

Here so much about this site so I'll try my luck if you could help me enlighten in my problem. What would be the best options to handle images in .Net 3.5 framework and SQL Server for a WINAPP that is incorporated with WCF? I need use this images for transactions inside the system. ...

Are WCF request handling Thread Agile?

I have seen lots of documentation on how Agile Asp.Net Request handling is? I want to know is the case same with WCF Request handling. Can we rely on the fact that the Thread that starts Wcf request handling will finish it? I am maintaining a Wcf Application where at lots of places ThreadStatic variables are used. Although the code is w...

Is there a Ruby equivalent to the .NET DataContract serializers

I've been using WCF's DataContract and DataContractSerializer to read/write objects to XML files. We want to switch to using a Ruby on Rails version, and I wanted to find out what I could use. We have objects that have attributes like (these are just examples not the exact objects): [DataContract] public class City { [DataMember] ...

Use WCF to implement services according to industry standard?

Hi. I am looking for a proper framework to implement the (web)service tier in .NET. I am a little bit familiar with WCF and wondering, if it can be customized the way I want it. 1)There is an industry standard for messages to be sent/recieved by the system, which defines the operations, types used, etc. It is XML based. It requires all ...

Issued Token Authentication over HTTP

Is it possible to do Issued Token authentication over HTTP? The scenario that we are faced with is an HTTPS request from client to server. Authentication is performed here and a token is issued. We are now however faced with the need to route this request to one of multiple endpoints using a generic message passing implementation. The p...