wcf

Dynamic JOIN across WCF Data Services

I am prototyping a generic data browser over WCF Data Services. The user can select the entities from a TreeView, thus I cannot hardcode the query result types and have to code the queries (URI or LINQ) dynamically. To offer joins across different Data Services I am loading the results from each Data Service to the client an try to dyn...

Publishing a WCF Server and client and their endpoints

Imagine developing a WCF solution with two projects (WCF Service/ and web application as WCF Client). As long as I'm developing these two projects in visual studio and referencing service to client (Web Application) as server reference there is no problem. Visual studio automatically assign a port for WCF server and configure all needed ...

aspNetCompatibility WCF and WinForm

I would like to use Windows Forms with a WCF service and leverage the pre-built authentication of asp.net by using aspNetCompatibilityEnabled = true in the WCF service. Is there any module or pre-built assemblies that can add ASP.NET functionality to a Windows Forms application? As far as I understand, this functionality isn't built int...

Why does my .NET service start really slow on a XP boot

Hi, I have a .NET windows service which acts as a host for some wcf. In the OnStart method the service hosts are created and started. The service is configured to startup automatically. This works well on Windows 7 (32bit and 64bit) and it can be startet with "net start" on Windows XP Pro SP3. The service startup with "net start" comman...

WCF Design questions

I am designing a WCF service. I am using netTCP binding. The Service could be called from multi-threaded clients. The multi-threaded clients are not sharing the proxy. 1. WCF Service design question. Client has to sent these 2 values in every call: UserID and SourceSystemID. This will help the Service to identify the user and the syste...

WCF service to send large binaries to server

I need to upload large (100 meg max) binairies to server using WCF. I followed instructions from this: http://www.c-sharpcorner.com/UploadFile/dhananjaycoder/fileuploadsilverlightwcf07142009104020AM/fileuploadsilverlightwcf.aspx it workds for anything less than 50K. going above that I get 415 errors. any idea? ...

Web Service missing methods when called from Silverlight

I created WCF web service, deployed it, and debugged it. I wrote a console app, referenced the web service, and everything works. Now, I'm attempting to consume the web service in a silverlight 3 application. I added the following code to a click event. TagServiceClient client = new TagServiceClient(); Tag[] tags = client.GetTags(); cl...

WCF: Exposed Object Model - stuck in a loop

Hi I'm working on a pretty big WSSF project. I have a normal object model in the business layer. Eg a customer has an orders collection property, when this is accessed then it loads from the data layer (lazy loading). An order has a productCollection property etc etc.. Now the bit I'm finding tricky is exposing this via WCF. I want to ...

WCF Callbacks on Remote Computers within Same Network

I have a WCF client & service, where service (which is hosted inside a console app) calls back to client using ever so standard WSDualHttpBinding with WSDualHttpSecurityMode.None. It's all fine and dandy when hosted on a local machine, but as soon as I move service to a computer other than my local machine (but on the same network), clie...

WCF Data Service / Surrogate Key

I want to build a WCF data service which should be used for CRUD operations on a database backend. In order to identify the related record of the object in the database I have to know it's primary key. I use surrogate keys in my database schema. Is it a good practice to pass the surrogate keys to the caller, so that it is possible to id...

How does WCF serialize the method call?

I am wondering how WCF serialize the method call, e.g. how the target class, method, method parameters are serialized, anybody has idea? ...

Socket/Timeout in Azure WebRole for synchronous communication with WCF Host in WorkerRole

I'm trying to get this to work on an internal tcp connection. The code runs flawlessly in development but when deployed to Azure I get ... a CommunicationException "The socket connection was aborted" trying to connect to "net.tcp://......" with a time code about 60 seconds it waited. wcf host side: _WCFHost.AddServiceEndpoint(typeof(I...

WCF catching Fault Exceptions of type T or Base type

We have a system with a WCF layer. The WCF services can throw various FaultExceptions, these are exceptions of type: FaultException<MyStronglyTypedException> All strongly types exceptions inherit from a base exception. public class MyStronglyTypedException : MyBaseException I can catch FaultException, but then I do not have acces...

Adding service reference (inside a Silverlight class library) of a WCF service that uses business objects from a referenced libarary creates a proxy without the service client.

Hi All, I have a typical setup. The solution contains a regular .NET class library for business objects, A WCF project, a silverlight project and supporting web-app project, and some silverlight class libraries. The classes in my business class library are all marked with the "[serializable]" attribute. The WCF service has a method that...

WCF - Stream parameter is missing CR of CRLF

The problem I have is that the client is sending me a string of data as a stream. WCF then normalizes (removes the CR part of CRLF) and I get a hash mismatch between server and client on that specific string. public void SomeWcfContract(Stream input) { try { string processed = ReadStream(input); ...

How to detect when connection to server is closed in silverlight 3

I have a Silverlight 3 application. It accesses WCF services that run on IIS. If I let the application sit for a while with no activity, it appears that I lose my connection to the server/login authentication, and my service calls fail. It would appear that I am being logged out for security purposes, but this is not an area that I ...

WSDL automatically generated by WCF

Hi, i've got this servicedefinition: [DataContract] public class Test { [DataMember(IsRequired = true)] public TestArray[] array; } [DataContract] public class TestArray { public DateTime? field1; public string field2; } which WCFs Metadataprovider ( http://localhost/Test?wsdl ) generates as: <xs:complexType name="Ar...

How can I expose a WCF Service in a Virtual Directory w/o Forms Authentication?

My group builds internally hosted ASP.NET MVC websites with forms-authentication. I'd like to host a WCF service in the same virtual directory as an ASP.NET MVC website. My Question: How do I make the WCF service freely accessible, that is without forms-authentication. My current predicament is this: I can access the .svc a...

WCF - REST - Flatten a collection during serialization

Greetings I'm trying to convert a "collection of collections" into better looking xml. Basically, I want to lie to the service consumer and make it look like there's a real object. This is what WCF creates automatically <EntityPropertyCollection xmlns="http://schemas.datacontract.org/2004/07/CustomSerializer" xmlns:i="http://www.w3.or...

how to pass a LINQ query to a WCF service

I have a WCF service which sits in front of a data collection. I would like to have a service call where the client could pass in a LINQ query, or Expression Tree, to be executed against the data collection. Is there a reasonable way to pass a LINQ query to a WCF service call? Thanks. ...