wcf

Problem creating DataContract with SVCUTIL

I am trying to create a DataContract for a simple REST based webservice using a XSD file. <?xml version="1.0" encoding="utf-8"?> <xs:schema id="workcodes" xmlns="http://timesheet.domain.com/webservices/workcodes" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" attributeFormDefault="unquali...

LINQ to SQL SubmitChanges not working FILESTREAM Table

I have some code that inserts data into some tables (one table has a FILESTREAM column) and then calls SubmitChanges after it is done. db.Log = new System.IO.StreamWriter(@"c:\windows\temp\linq.log") { AutoFlush = true }; db.SubmitChanges(ConflictMode.FailOnFirstConflict); I have referenced the following links but they appear to not b...

WCF Service implementing duplex contract keeps throwing an exception

The following code ( an example taken from a book ) defines duplex contract for a service that provides stock price updates. It uses duplex communication so that client can register for updates, and the service will periodically send updates to the client: using System; using System.Collections.Generic; using System.Linq; using System.T...

How to architect ASPX, IIS & business data that is processed / loaded once a day: DLL or Service?

Anyone have suggestions how to architect the following setup: ASPX, IIS, 100s of transactions coming through the web pages and data which changes once a day & has to be processed at start-up (would be slow to reload & calculate from the database 100 times a day) Currently we have: ASPX pages running on IIS, communicating with A window...

WCF Service Serialization: The deserializer has no knowledge of any type that maps to this name.

Hi guys, I'm trying to build out a WCF service but I've run into a blocking issue. I've been Googling around but I haven't been able to make any progress. Hopefully I'll have more luck here. Let's say I have a job class defined as such: [DataContract] public class Job : IJob { public Job(...) { } [DataMember] pu...

Asynchronous file transfer in ASP.Net Chat Application (peer to peer)

Hello I've developed a chat application using WCF/ASp.net. I want to asynchronously transfer a file from one chat user to another chat user. What is best approach for this? here are my insights/doubts Do i need a central server between two users to assist the file transfer? Can i create a direct channel without a central server? Do i...

Integration testing web services against a testing database

I'm currently building a .net web application that uses WCF web services to allow a Flex front end to access the database. I'm in the process of setting up some unit/integration style testing on the web services and am trying to work out the best way to allow the tests to access and modify data in a separate test database. Currently, t...

ASP.NET Webservice calling WCF service

Dear Balaji, I have almost the same problem as you have described in http://stackoverflow.com/questions/1503242/calling-webservice-from-wcf-service. I have a asp.net webservice that calls a WCF service. On my development machine this is working fine. But if i deploy my ASP.net Webservice it is not working. Both the ASP Webservice en W...

WCFTestClient exception on deployed service

I use the WCFTestClient that is provided with visual studio to test my service. The thing is that the tool is working for the service that is deployed in wisual studio with my aplication. But if I try to connect to a deployed instance on another machine I get the following exception. Has anyone solved this issue? The service uses Windo...

Is there any relationship between Open Data Protocol and SOAP ?

What is the role of Open Data Protocol and SOAP in WCF? ...

Ideal WCF Implementation for 25 Clients

Hi everyone, I currently code an internet cafe software in WCF for 25 clients. I read much about instanceContextMode, Concurrency and Duplex and other stuff and saw that everyone was having problems because of wrong implementation of these settings. Here is my scenario: clients are getting time info from server every 5 or 10 seconds, cl...

Latency and the payload size for WCF Service

How to measure Latency and the payload size for IIS hosted WCF Service? ...

ASP.NET Membership Provider authentication not working authenticating WCF Service

I have a SqlMembershipProvider store with Roles enabled. This is configured and has the user "devtest" in the roles "xxUser" and "xxAdmin". I also have a WCF service, which I want to authenticate and authorize against. My problem is that: the authorisation is not happening, code just executes despite the policy attribute I don't get ...

WCF discovery using bare UDP

Since ws-discovery is not working for me, I'm searching for alternative solutions with similar functionality. I prefer it simple to set up and maintain, issues like checking for interface matching are of very low importance. Basically, I want to broadcast a message on the local network and retrieve all answering IPs. So my first idea is ...

WCF - Complex Objects - KnownTypes

Ok, not really sure how to word, but will try my best. I have a number of WCF services that are setup and run awaiting an object to come in for processing. WCFServiceA WCFServiceB WCFServiceC Service A will run some processing and decide to send the object onto Service B or C. So my object has [DataContract] attribute on all classes...

WCF Server Application Unavailable - how to run application written in .NET4.0 (IIS6+)

Hello, I am trying to run simple application (e.g. generated from template by VS.NET 2010) on IIS6. I changed it to run with .NET 4.0 (its application pool) and checked with regiis (this pool has 4.0). I also changed all possible httpHandlers (svc etc), to run with NET4.0. All possible rights are checked (i think so). Almost every requ...

How to generate xsi:nil element with attributes?

I have a WCF client that needs to generate a request containing this XML fragment : <reason xsi:nil="true" nullFlavor="NA" typeCode="RSON" /> The schema is determined by the server and isn't under my control. The generated proxy code has a class for the reason element containing (among other things) properties nullFlavor and typeCode....

WCF Service failing every 23 hours with "The request channel timed out while waiting for a reply after 00:01:00"

Hi guys. We have a WCF service self-hosted in a Windows Service. Right now we're experiencing a really strange behavior with it, which is that every 23 hours, approximately, the service raises an exception for every call made to it with the following error: Server was unable to process request. ---> The request channel timed out whil...

Do you have to restart IIS when re-deploying a WCF servic?

Assuming that the service is running and in use, and you didn't change the contract or anything - just some underlying logic. After publishing the service to IIS, do you have to restart IIS? (If it matters, the InstanceContextMode is Single) Are there any instances where you would/would not need to? ...

WCF: Fix the Endpoint Address When Using externalMetadataLocation

WCF allows you to specify an external WSDL file that should be published with the service rather than WCF's generated WSDL. In a WSDL-first design approach, it makes a lot of sense to publish the source WSDL rather than the generated WSDL. This is set using the externalMetadataLocation: <serviceBehaviors> <behavior> <serviceMeta...