wcf

WCF - probem with serializing inherited types

I have these classes: [DataContract] public class ErrorBase {} [DataContract] public class FileMissingError: ErrorBase {} [DataContract] public class ResponseFileInquiry { [DataMember] public List<ErrorBase> errors {get;set;}; } An instance of the class ResponseFileInquiry is what my service method returns to the client. Now, if...

FDA and WCF Interoperablity Proof

How do I prove to the FDA that WCF is interoperable? Is there a document describing their test procedures? Or, is it common knowledge? ...

CLR Profiler with WCF doesn't work for specific service

Hello, I need to profile a WCF service, but I get the message "Waiting for service to start common language runtime", it only occurs with this particular service; when I tried with other WCF services, it works fine. I was wondering if I should configure something in the wcf to allow the profile. Both services run with the same account(ad...

Using MapPath from a worker thread

Hi, I have a WCF service method that's running in a worker thread I spin from another method. I need to map a relative service app path ("~/Templates/a.template") to the physical path ("D:\Web\Templates\a.template"), but I can't use HttpContext.Current.Server.MapPath because HttpContext.Current is null in a worker thread. How else can I...

Prevent Exceptions From WCF Callbacks

I'm making a small chat application. I got to the point where one client sends a message, and then by using callbacks of other clients in the room, they quickly recieve the message. So, if there are 10 people in the room, the service instance of the client who is sending the message, will invoke this in 10 threads: targetCallback.Reciev...

Is it possible to convert a SoapException to a FaultException with WCF?

I am migrating a web service client from WSE to WCF. I already modified the internal fault and error handling to deal with FaultExceptions instead of SoapExceptions. The project has an extensive suite of test cases to test the fault and error handling which still relies on SoapException. For various reasons, I'd prefer not to rewrite t...

Will the maximum limit of configuration property MaxReceivedMessageSize in wcf affects service performance?

I'm getting the following communication exception for my wcf service making cal to another wcf service: "The maximum message size quota for incoming messages (65536) has been exceeded. To increase the quota, use the MaxReceivedMessageSize property on the appropriate binding element." I resolved this by increasing the size as below: ma...

Converting generic.list to ArrayOfInt for transmission over SOAP to web service

I'm attempting to pass a generic list of integers from a client application to a web service using the the SOAP protocol. When I attempt to pass the list as a parameter to the web method declared in the web service, I get the error "cannot convert from generic.list to ArrayOfInt". How do I go about resolving this? // web service metho...

XML differences between WCF and Python SUDS for inheritance?

Hello StackOverflow! This is my first post, so apologies if I don't include all the right information! I have a question regarding the different ways inheritance are represented between WCF and SUDS (Python). I have a C++/CLI WCF server (.NET 3.5 SP1) and I'm trying to communicate with it. I've used a C# (WCF also) client and it work...

Is possible in WCF service: method return IList<object> when object can be Person class?

Is possible in WCF service: method return IList when object can be Person class? Ex: in IServiceContract.cs [ServiceContract] public interface IDAS { [OperationContract] void DoWork(); [OperationContract] List<object> GetAnyClass(); } And class: public class DAS : IDAS { public void DoWork() { } pu...

Silverlight 3: How to retrieve large(approx: 50 MB) xml string from ASP.NET webpage?

What is the preferred way to retrieve large(approx: 50 MB) xml string from ASP.NET webpage? Placing the xml string in file and downloading the file is not a choice.(This should be my last resort if nothing else works) I have following method on ASP.NET server which is exposed through WCF service to silverlight client. [OperationContr...

Can I add a Service Reference with netTcpBinding in WCF?

Is it possible to add a service reference in visual studio, which generates the local proxy class to call the WCF service when using the netTcpBinding? As I understood it, the service reference method requires a WSDL to be exposed by the service, which is only supported by the http bindings no? Perhaps, could I add the service referenc...

WCF service problem with SSL

Hi, I have problem with call WCf service over SSL from console app. WCF service is on Windows Server 2003. It's simple math service. The WCF service and client are on the same computer. It's test, I call service on localhost. web.confing <?xml version="1.0"?> <configuration> <system.serviceModel> <services> <se...

Server-side tracing of SOAP messages for WCF service

I'm trying to follow this tutorial on configuring server-side SOAP tracing for my WCF service, as well as the MSDN documentation. When I run a test, I see Activity 00000000 in Microsoft Service Trace Viewer but the messages tab is empty. C:\temp\Web_tracelog.svclog is being written but C:\temp\Web_messages.svclog is not. I'm probably ...

Make WCF service be accessible through Internet.

I've made a WCF service. I want it's client to be able to access it from anywhere. How can I do that? Details: I want it to be hosted in a Windows process, not a site. I'm using TCP binding. I don't know almost anything about web hosting etc. It's desirable not to use IIS... I have found many recommendations in the web, but stil...

Retrieving SMS message from SMS provider by WCF

Hello, I have a asp.net web application to call a function in WCF service to send SMS message. After sending a message, the WCF service needs to keep checking a virtual inbox at SMS provider and notify my web application if there is any new reply. There may be more than one web app to use this service. What's a good way to implement thi...

EF4 POCO: Snapshot vs Self-tracking over WCF

Hello Last year I developed a data access service for our project using Entity Framework (.NET3.5 of course) and using Julie Lerhman's book as a guide developed state tracking POCO objects. We use WCF and also have Silverlight 3 clients. We are moving to .NET 4.0 and I want to switch to using code generation to eliminate wasted develope...

Fresh XP +click once +cannot connect

Greetings, we have to following problem. Our application is deployed using ClickOnce. Everything is running fine and application is able to connect to the wcf service. The problem occurs when application is installed on FRESH XP machine without .net Framework and Windows Installater (that were selected in ClickOnce prerequities). Appl...

Business application idea (any idea is a good idea)

I have to do this project for school, and the theme is "A successful business". And I'm really stuck because I have no idea where to start from. Initially the project was supposed to be some sort of educational thing, but the theme changed after 2 months of work on the previous project so now I have to start again from the beginning. I...

WCF web service using the WebScriptServiceHostFactory

Hello all! I am starting a new project using WCF so that I can use jQuery to make AJAX calls to the server. I have had all kinds of issues with configuring WCF in the past so I decided to do some new research to see if the level of documentation for WCF in VB had improved. Unfortunately WCF documentation to me is still as cloudly as whe...