wcf

data contract issue wcf

hi all, i have a problem regarding data contract in my application. i have 5 tables in my database and i required 3 of them as datatype. so i created a class and decleared all required table as class under [datacontract] here's the code [DataContract] public class CustomerDetail { [DataMember] public int Custome...

Getting string from WCF service.

Hi there, I want to get the string generated by the WCF service, both synchronously and asynchronously. I know that with the bitmap, for instance, it's a piece of cake - you can add the event handler to BitmapImage on e.g. IsDownloaded or something. How about strings? How can I achieve that? Assume that I want to use URi for calling the...

What is the best way to authenticate web users from WCF coming from ASP.Net web application?

I have an asp.net mvc 2 web application that connects to a WCF web service hosted in IIS. This is in an intranet environment using windows authentication. I need to authenticate the user connecting to the web application inside inside of my WCF service, but the WCF cannot see who connected to the web app. This can't be a new problem, so...

How to get metadatas of soap service which require log in ?

Hello I am trying to get metadatas of a service which require log in with svcutil.exe. How can i do that ? ...

which WCF binding for LAN Client application

Hi all, I am developing a LAN based Counter Billing Application with around 10 clients. Basically 1 server will have SQL-Server Express installed where all billing details will be stored. So all 10 clients will be communicating with server now & then for product information and billing. I am novice in WCF and read some articles on WCF f...

Add Service Reference not appearing

In a Windows Phone 7 Silverlight project, I had a service reference to a WCF service. This morning when I opened up the project, suddenly the namespaces for my WCF service were unknown. The option for "Update Service Reference" in Solution Explorer was not there, so I deleted the Service Reference with the intent of re-adding it. But ...

WCF: programatically configuring the service with certificate

Here's the whole issue: I want to create WCF dll to access WCF services.... the only issue is, when I use the WCF DLL config file with an application that has it's OWN app.config file, the WCF DLL app.config file gets ignored....... I figure one way to fix this problem is to translate my app.config to code, but unfortunately I don't kn...

Client and server validation

Hi, I'm developing application that use nHibernate for ORM, WCF services and silverlight as UI. My question is how to provide validation on server and also on client for domain entities. I thought using nHibernate validation framework but not sure if I can use it as client (silverlight) validation. I don't want to have two codes of valid...

Should I use the NetNamedPipe binding in WCF for security reasons?

The WCF documentation says that the "Net Named Pipe" binding can be used for fast interprocess communication on a single machine. It cannot be used for communication across machines. I would like to know if using the Net Named Pipe binding will protect my service from being attacked from outside the network. I've been told that the an...

Why can't I find System.ServiceModel.WebHttpBinding?

I have added references to the "System.ServiceModel" library, but the "WebHttpBinding" class is not in it. According to the documentation, it should be there (WebHttpBinding). I have tried this with both the 3.5 and 4.0 frameworks. Thanks for any help. ...

WCF program behaves strangely on one server - why?

I have a simple get list method for sharepoint (SharePointList is a webrefrence to list.asmx). /// <summary> /// Returns a list of sharepoint lists /// </summary> /// <returns>A list of sharepoint lists</returns> private string GetSharePointLists() { StringBuilder stringBuilder = new StringBuilder();...

CollectionDataContractAttribute for list with no group element

Hi My problem is that I would like to use the CollectionDataControlAttribute to deserialise a collection which does not have a group element. The xml looks something like this: <RootElement> <SomeProperty /> <ListElementEntry /> <ListElementEntry /> <ListElementEntry /> <ListElementEntry /> </RootElement> Where Li...

Best architecture for a 30 + hour query

I have an interesting problem to solve. One of my clients has me developing a stock analysis program with close to 50 years of stock data for almost a thousand symbols. I've developed a series of filters that are applied on any given day to see if anything falls out for a trade. We want to run this filter for each day of data we have ...

Including XML Comments in DataContract Serializer Metadata

is there some way of sending the summary info of properties in a DataContract? e.g. [DataContract] public class MyClass { /// <summary> /// My Summary information /// </summary> [DataMember] public int MyProperty {get;set;} } can this be available to the client that gets the datacontract? I doubt it, just hoping somebody kn...

Need comprehensive C# System.Threading.Tasks example

Hi! I've been trying to figure out how to use System.Threading.Tasks to asynchronously invoke a synchronous WCF method while supporting cancellation, error handling, result-return and multiple continuations. I've come across a number of incomplete demos but they all seem to fall a bit short. As an example I can't use cooperative cancel...

WCF custom binding issue

I have defined a custom binding in my client and server web.config file, but when I try to connect I get this error, server is running IIS 7 Content Type application/xml; charset=utf-8 was not supported by service http://localhost/contentservice.svc/PairService. The client and service bindings may be mismatched. Server: <system.se...

creating WCF ChannelFactory<T>

I'm trying to convert an existing .NET Remoting application to WCF. Both server and client share common interface and all objects are server-activated objects. In WCF world, this would be similar to creating per-call service and using ChannelFactory to create a proxy. I'm struggling a bit with how to properly create ChannelFactory for AS...

What are REST web services?

Possible Duplicates: SOAP or REST Why do we need RESTful Web Services? Hi folks, lately, the REST web services is mentioned a lot. What is the reason for using it over other methods? Are they used in WCF & how do we implement one? TIA ...

Trying to use Reflection to Invoke Method within same class

I have a WCF service that accepts an object as a parameter that has a URI and Method Name. What I am trying to do is have a method that will look @ the URI, if it contains the words "localhost" it will use reflection and call a method, of the name that is passed in as a parameter, within the the same class, return a value and continue on...

Which authentication mode of basichhtpbinding can be used to secure a WCF Service using Streaming?

Hi all, Details about my service: A file upload service Transfermode is set to stream Service is hosted in IIS 7. I need to provide secuirty to my service. I have tried with ntlm and windows secuirty.I was getting the following error when i am trying to secure my service "HTTP request streaming cannot be used in conjunction with H...