wcf

.NET External Communication

I used the term "External Communication" simply because I do not mind which method I need to use to be able to send a simple message like "hey, how's it going?" to another person on a different computer who's also running my application. I've tried literally hundreds of samples, edited them, corrected various errors, came up with some o...

How to debug into system.servicemodel classes?

Hi All, How can i debug system.sevicemodel classes in my application? ...

Returning C/C++ structure array in XML/XSD format

Hi all: I am writing a native C/C++ .dll program which calls to .dll functions of many third party C/C++ libraries and returns a c/c++ structure array (SA) of 18 columns by 0-n lines. This returned value is then captured by a WCF C# web service program which "interop" with my .dll and, using .net xml library, serialize the result before...

WCF two way HTTP communication to bypass firewalls

Hello everyone, I want to use WCF to enable two way communication without opening a port on the client. I'm developing something like a P2P application (similar to teamviewer/logmein) where you don't need to open ports to communicate. How do I accomplish two way communication through HTTP/HTTPS without the need to open a port in the c...

What's the fastest possible security configuration for netTcpBinding?

I'm running a WCF service that, among other things, is used as the back end for a web site. Because both the web site and the WCF service are running on the same machine, and in the interests of performance, I set it up with a netTcpBinding. Now the thing is, because they exist on the same box, I really don't care about either transpor...

How to config clients for a wcf service?

Hi All, I am developing a wcf service . I have created two dll's one for message contracts and one for service contracts interfaces. I share these two dll's with server and client. I am not using AddServiceReference i am using ChannelFactory class to create proxies. Following is the code which i am using to create client proxies: Basic...

What is <client> element of app.config ?

Hello All, What is <client> element of app.config ? Why it's added to client side when i add service reference? How can i access this element programmatically ? ...

How to write a custom service host in WCF?

Hi All, How to write a custom service host in WCF? I want to have more control on service host. Please guide me to write my custom service host? ...

Basic concept in the following WCF article

Hello everyone, I am a bit confused with this paticular blog post here... http://bartdesmet.net/blogs/bart/archive/2006/09/13/4417.aspx What is his concept of tunelling? I mean how is he able to access port 110 on WCF client through HTTP from the WCF server? I don't get that part. Thanks. Edit : I understand the fact that he's creati...

Getting claims on the client

I have implemented a WCF service that exposes operations that a Windows Forms client consumes. In the service, I am using claims-based authorization with a custom AuthorizationPolicy in which I insert my custom Claimset based on the principal identity before the operation code runs. The operations then require certain Claims within the...

How to get message content from System.ServiceModel.Channels.Message?

Hi All, I have a message contract which i am passing to my wcf service and i am having a message inspector which i m using to find what was sent by the wcf client. I have the Message but i don't know how to get the data from it. following is my message request which i am passing to wcf service. [MessageContract] public class MyMess...

Can two applications share same WCF NetTcpBinding port if they use different end point addresses?

I have a Client and Server scenario, where a service is installed on the client and another service on the server. I have no issues when these are installed on different machines. However, I would like to also be able to install both the Client service and Server service on the same machine. I could set them up to use different ports, ho...

Testing a WCF Service Application

How can you test a WCF Service Application like you could do with ASP.NET Web Services? When I run the WCF Service Application, I would expect a test page to appear that would allow me to test all the services contained in the web application. This does not happen. Am I missing how to do this? ...

WCF wsHttpBinding and BasicHttpBinding in same WCF Service Application

I have been told that wsHttpBinding does not support older clients that still need to use older version of SOAP. I want to add a BasicHttpBinding endpoint in the same WCF Service Application so that clients can use either endpoint depending on their technology they are running. I am confused as to what the address to use for each of th...

svctraceviewer for windows server 2003

I am trying to get the svctraceviewer installed on windows server 2003. I found that it's part of the Windows SDK which is of huge size. Moreover, i wouldn't want install Windows SDK on a server unless it's a hot patch. Is there a way to download or copy the tool separately(probably from windows vista)? Is there an alternative tool that...

How to be notified if WCF Duplex session is prematurely closed

I have a publish/subscribe scenario in WCF using net.tcp and Duplex callbacks. I have a number of clients that subscribe to the service, and this works fine. However, sometimes a client will close without unsubsribing (Client computer goes to sleep, computer crashes, network connection is aborted, etc..), this causes an exception to be...

create net.tcp binding wcf service object in silverlight

Hello i have develop a silverlight application with wcf net.tcp binding. i want create an object of service in sliverlight. how it is possible. please help me. Thanks ...

WCF Service parameters changed in .NET 2.0 client

I created a WCF service that exposed a method that has one paramater: public class Service1 : IService1 { public string GetData(int value) { return string.Format("You entered: {0}", value); } } The service has two endpoints defined (wsHttpBinding and basicHttpBinding) so that it would be compatable with older clien...

Silverlight + WCF Service with custom username/password

Hi, We have a WCF service with custom username/password authentication. The service runs over SSL. On our existing WPF application we pass the username and password combination to the service every time it is called (i.e. we don't have any sessions with the service). The credentials are stored in memory on the client application. Now...

Long delay when calling a WCF-service from silverlight

Hi folks, I have a silverlight 3 application, that fetches some simple data from a ms-sql-server 2008 via WCF. At first, it gets all ids (~2000) that are stored in the database and then subsequently fetches all the details of those ids from another table (~10 records per id on average). My problem is, that it takes very long from calli...