wcf

How to fix an endpoint/configuration error using WCF in VB.NET

I'm working with a small web page that is meant to assist the users of my application. This web page takes a file and sends it to a central server, which then does something with the data and returns a result. I created this application some time ago and am coming back to it recently. I am getting some kind of configuration error right n...

How to make IIS wait for WCF service gets ready?

I have a WCF service hosted in IIS 7. It takes some minutes until this service finish to load its data and ready for external calls. Data loads in internal thread. The problem is that from IIS point the service is ready just after it was activated (by some call), and it process a request without waiting for data to be loaded. Is it pos...

WCF and member-method replacements

I have an object of the form: public class Report { m_filter1; m_filter2; ... m_filtern; AddFilter1(int a) { m_filter1 = /* some logic of filtering results using the value of a */ } ... } Also, a corresponding static method used to utilize the Report class: public static List<Result> GetResults(Report ...

Specify default WCF endpoint in app.config

When you add a service reference it creates the class "MyServiceClient" with a default constructor. If I use new MyServiceClient() I get an error: Could not find default endpoint... If I use new MyServiceClient("endpointName") it works. I would like to specify a default endpoint in app/web.config which will get used when I use the def...

What is the best method to call an arbitrary JSON server from .NET (Specifically Windows Phone 7)

Hi, I have a server that I have no control over, it's JSON based and I've put together a simple proof of concept that calls the server using HTTPWebRequest etc and it works fine (if a little wordy since MS have removed all Synchronous I/O calls). Is there a better way of doing this? I've been looking at WCF as an option but any stable ...

WCF Deserialization Error

ERROR - Exception: System.ServiceModel.Dispatcher.NetDispatcherFaultException Message: The formatter threw an exception while trying to deserialize the message: There was an error while trying to deserialize parameter services.gmrlive.com/JupiterMobile/2009/01/01/:StatusDetails. The InnerException message was 'There was an error deserial...

WCF Web Service Gives 404 error in Azure

I'm new to using WCF and Azure, but I have a WCF Web Service that works correctly when debugging in Visual Studio. I set the startup project to Azure, and I get 404 errors for any URL I try related to the service. Here is what I think is relavant code: From IWebService.cs [OperationContract] [WebGet(UriTemplate = "GetData/Xml?value={va...

WCF using ChannelFactory.CreateChannel with webHttp behavior

I've got a simple REST based service for which I am trying to create a client proxy using ChannelFactory. I want to be without a configuration file so I am trying to do this in code and I believe I have everything I used to have in .config except for the behavior. Can anyone tell me how I can get this config into c# code: <behaviors> ...

Best way to unit-test WCF REST/SOAP service while dynamically generating stubs

I have a webservice written with WCF 4.0 that exposes REST and SOAP functions, and I want to set up my unit tests so that as I work on my web services I can quickly test by having the test framework start up the service, outside of IIS, and then do the tests. I want it to be dynamically generated as I am not certain what the interface w...

Need Descriptive architecture to develop file server in dot net.

Hello All, I have to develop a file server service that transfer file form a specified location to its client.Client when starts, requests file to server for current date. Server transfer those file to client. Now constrains are as 1.Application run in intranet. 2.Need to transfer multiple file at a single transaction. 3.File size may ...

best practices on accessing BizTalk 2009 hosted services from SharePoint 2010 UI through WCF (publish, subscribe method)

I have a scenario where we have a bunch of Services hosted in BizTalk we want to be able to access it from SharePoint UI (also may be some ASP .Net Applications hosted inside SharePoint. Can any of other have faced similar scenario's can share with the best practices in terms of performance vs maintainability. Since we have to cater S...

C# WCF Server retrieves 'List<T>' with 1 entry, but client doesn't receive it?! Please help Urgently.

Hi Everyone, I've been battling and trying to research this issue for over 2 days now with absolutely no luck. I am trying to retrieve a list of clients from the server (server using fluentNHibernate). The client object is as follow: [DataContract] //[KnownType(typeof(System.Collections.Generic.List<ContactPerson>))] //[KnownType(type...

AutoCompleteExtender with WCF service

Can some one point me to a link which shows how to use a AutoCompleteExtender with a WCF service. ...

WCF Business logic handling

I have a WCF service that supports about 10 contracts, we have been supporting a client with all the business rules specific to this client now we have another client who will be using the exact same contracts (so we cannot change that) they will be calling the service exactly the same way the previous client called now the only way we c...

Choosing the right .NET architecture. WCF? WPF/Forms, ASP.NET (MVC)?

I’m in the situation that I have to design and implement a rather big system from the bottom. I’m having some (a lot actually) questions about the architecture that I would like your comments and thoughts on. I don’t hope that I’ve written too much here, but I wanted to give you all an idea of what the system is. Quick info about the a...

EndPointDispatcher and Attributes set on the service or service contract

I am using WCF and IServiceBehaviors, and adding EndPointDispatchers. What I would like to check is that on the EndPointDispatcher is there any way of check to see which attributes have been set on the Service or Service Contract? The reason for doing this is that if a Service has an attribute then a new Inspector will be added if not...

Set username credential for a new channel without creating a new factory

I have a backend service and front-end services. They communicate via the trusted subsystem pattern. I want to transfer a username from the frontend to the backend and do this via username credentials as found here: http://msdn.microsoft.com/en-us/library/ms730288.aspx This does not work in our scenerio where the front-end builds a bac...

Managing multiple WCF endpoints for the same service

I am building an single application that uses WCF to call out to multiple external endpoints. All of the remote endpoints are identical except for the URI. I would like to treat them as a pool: add and remove endpoints through configuration and have the application understand what to do. My original plan was to define one endoint in t...

How to call a WCF singleton service within a WCF singleton service without hanging?

I have two services, one that calls another. Both are marked as singletons as follows: [ServiceBehavior(InstanceContextMode = InstanceContextMode.Single, ConcurrencyMode = ConcurrencyMode.Multiple)] public class Service : IService And I set these up with a ServiceHost as follows: ServiceHost serviceHost = new ServiceHost(singlet...

WCF Paged Results & Data Export

I've walked into a project that is using a WCF service for the data tier. Currently, when data is needed for a grid, all rows are returned and the results are bound to a grid and the dataset is stuffed into a session variable for paging/sorting/rebinding. We've already hit a max message size problem, so I'm thinking it's time to conver...