wcf

WCF Error - Could not find default endpoint element that references contract 'UserService.UserService'...

Any ideas how to fix this? UserService.UserServiceClient userServiceClient = new UserServiceClient(); userServiceClient.GetUsersCompleted += new EventHandler<GetUsersCompletedEventArgs>(userServiceClient_GetUsersCompleted); userServiceClient.GetUsersAsync(searchString); . <system.serviceModel> <bindings > <b...

how to consume wcf service with ruby?

i have a rails app must consume wcf services provided by asp.net, are there any ruby clients for wcf? ...

Call .Net 3.5 WCF service from .Net 2.0 Standard ASMX Web Service Client

I create a service that is host on a server that have .Net 3.5 installed and I need to call this service from a client that only have .Net 2.0 installed Is there a way I can do this ? I'm using c# ...

How do I: Implement a n-level nested gridview ?

I am not the gratest when it comes to implementing UX. I looked around on the internet for an implementation of a nested gridview or nested reapeater control. Most of the demos used an sql datasource object. Nowadays I dont see anyone using an sqldatasource. In my scenario I will be using Object Datasource or would be databinding manuall...

Error when calling the service in async mode

Stackoverflow is definetly the fastest forum so after posting this question in the WCF forum I decided to come here. I have a wcf service which returns a dictionary (IDictionary) and that works just fine. Now I wanted to add the capability of calling that service in async mode, but when the BeginMethod gets executed I get the following ...

Can/should I use a mocking framework to dynamically add events to a class?

Consider the following interface: public interface IMyCallback { void SomeEvent(int someArg); } which is the contract for a WCF callback that will be receiving "events" from a WCF service. My implementation for this interface looks like this public class MyCallback : IMyCallback { void IMyCallback.SomeEvent(int someArg) { O...

Will this WCF setup work?

I'm rather new to the WCF/IIS/MS web stack corner of the world so I'm hoping for some help evaluating my design. What I need is a system that presents a number of resources as URIs. Each resource is a WCF web service providing a number of read and write operations. I need to provide username/password security for different resources. ...

Consuming Oracle Data with Silverlight

So I want to get some data on the server side using OracleClient. Something like OracleDataReader rdr = OracleDataAccess.ExecuteReader(Conn, sQry); What is the best way to deliver this data to Silverlight? I set up a web service I just don't know the best data structure to package the result set. The silverlight CLR can not use the Or...

WCF: Net.TCP multiple bindings, same port, different IP Addresses

Hi there, I've run into a problem. I'm a little new at WCF so any help would be greatly appreaciated. Here's my code: public static void StartHosts() { try { // Create a new host ServiceHost host = new ServiceHost(typeof(ServerTasks)); List<IPAddress> ips = new List<IPAddress>(Dn...

Can I use WCF Starter Kit HttpClient with confidence?

I would like to start using the WCF Rest Starter Kit's HttpClient to build clients for my Restful WCF services and I was wondering... If anyone is currently experience any problems with it Can I be confident that future versions of the component (just the HttpClient, not worried about the rest of the kit) will not contain significant ...

Generating WCF proxy against untrusted SSL endpoint

Hi, I need to generate a WCF proxy for a service exposed by our client. The service is locked down pretty tightly, so this is proving difficult. Also, I'm new to WCF, so I may be missing something obvious... The client has only opened up their firewall to our production server - so I can't generate the proxy from Visual Studio on my d...

Share WCF contract between the service and silverlight. ServiceModel versions are different

If you have interface IServiceA { string GetString(); } Is there a way to share this interface beween the WCF web service project and a silverlight project. The problem, both use different versions of System.ServiceModel I DON'T want to generate and use proxies. ...

MSMQ Private queue automatically remove unread message beyond 24 hours

Hello, I use MSMQ through WCF to store messages in private queue. (private queue hosted by Windows Server 2003). Messages are stored only for 24 hours and automatically removed from queue, somebody know why ? Thank's for your help ...

ChannelFactory.CreateChannel and proxy instantiation is slow in WCF

I have a client-server application, in which the client communicates with the server using WCF (WCF is used both in the client and the server). My problem is, that instantiating the auto-generated proxy in the client, in the following way: new Service1Client() takes constantly 15.xxx seconds. I tried to solve this problem, and came to t...

How can I return an instance of a dynamically-built type to a WCF service expecting an interface ?

I want to have an operation contract that returns an interface. My problems: 1) I want to register dynamically with the service the known type that will be returned, or to have WCF accept the type. I noticed that unless it is a known type marked by attribute or in a static method of the service, the method will fail. 2) I want on the...

Is Windows Activation Service + WCF a replacement for COM+

WAS Features Application Pooling Recycling Idle time management Identity Management Isolation Sounds a lot like COM+ but hosted in IIS 7. Anybody out there using this technology and am I correct comparing the two? ...

Any solution or workaround to serializing SQLParameter in WCF?

I originally defined in my MessageContract a collection of SQLParameters in order to create a simple stored procedure execution through a WCF service. Apparently, SQLParameter is not serializable, so I need some advice on how to proceed here. Is it possible to still somehow use SQLParameter as part of my WCF contract, or I have to do so...

wcf - enable windows AND username authentication

Hi, What are the important configuration points needed to enable a scenario where a WCF service can be called with either the logged-on-users windows credentials or a username/password combination. I'm pretty sure I know how to set them up, but what I don't know is how I can force usage of the username/password endpoint. Is it sim...

Amazon Elastic Cloud and Silverlight Deployment

We are experimenting with hosting a silverlight application on Amazons EC2. I can get it to serve up the .xap file, but I'm having some trouble with using the webservices that the silverlight application requires. Usually I would add a service reference in visual studio and enter the URL for the webservice, something like http://url.co...

How to dynamically select the URI for a WCF service?

I'm trying to construct a WCF client object using a run time URI string. This seems simple enough but I'm running out of thing to try that don't seem like "the wrong way to do it". The original code is this: IPrototype p = new prototype.PrototypeClient(); and I was sort of expecting it to work something like this. string uri = GetM...