wcf

How can I use a ssl wildcard certificate to mutually authenticate several WCF servers via X509?

I've got two WCF servers, both on the domain mydomain.com (fictional example, as are IP below !), respectively named server1 and server2. They are both accessible through their public IP addresses (foo.1 and 2), but also from the private LAN they are on (ie 192.168.0.1 and 192.168.0.2) I own a wildcard ssl certificate for *.mydomain.co...

How to run WCF IPC (http) on localhost without requesting administrative privileges?

We're developing a set of applications that need to communicate with each other on the user's session. These applications do not require any administrative privileges to run, but as soon as one of them tries to open an http listener - it fails due to lack of the administrative credentials. On the other hand, since user doesn't have any a...

Property in WCF service with some initial value to use in client side.

Hi, I have a property in WCF service class with a initial value, as shown below private int mFieldLength_Name = 50; [DataMember] public int FieldLength_Name { get { return mFieldLength_Name; } private set { mFieldLength_Name = value; } } However when i do call in client side, it always return '0' not '50'. How do i fix thi...

.NET WCF calling .asmx with WS-Security

Can a .NET WCF Client program call an existing (vendor supplied) .asmx web service that uses WS-Security for logon? In our case, the vendor has provided an .asmx web service with WS-Security. We are going to try to use SOAPUI and WCFTestHarness or WCFTestClient to access it first. Would rather use WCF if possible. Thanks, Neal Wal...

Debugging RESTful WCF Service

I am attempting to debug a RESTful WCF service I've created using a web browser as my client. Initially things go well however after stopping the debug session and making some changes to my code when I restart it's as if the old code is still being run. My breakpoints are ignored and it's as if a process is not being stopped. I am runni...

Type 'System.Web.HttpInputStream' cannot be serialized.

Hi. I have been trying to design a WCF file upload service and am getting the following error in my web application: Type 'System.Web.HttpInputStream' cannot be serialized. Consider marking it with the DataContractAttribute attribute, and marking all of its members you want serialized with the DataMemberAttribute attribut...

Configure WCF Client to Use Web Services Security Kerberos Token Profile 1.1

Morning, Does anyone know how to configure WCF (any binding type, we are currently using WSHttpBinding but am happy to move to a CustomBinding or alternative if necessary) to use Web Services Security Kerberos Token Profile 1.1 the details of which can be found here: http://www.oasis-open.org/committees/download.php/16788/wss-v1.1-s...

WCF REST adding data using POST or PUT 400 Bad Request

HI How do i add data using wcf rest architecture. I dont want to use the channelfactory to call my method. Something similar to the webrequest and webresponse used for GET. Something similar to the ajax WebServiceProxy restInvoke Or do i always have to use the Webchannelfactory implementation I am getting a 400 BAD request by using the...

Image can't be used as a return type for WCF? [Closed]

I have the contract defined as: public interface IService1 { [OperationContract] Image UploadOneImage(); } I always get exception on client side. then I switch to following: public interface IService1 { //serialize Image to byte[] [OperationContract] Byte[] UploadOneImage(...

How two diffrent projects running on java and .net can interact with each other using WCF?

Hi All, I have a wcf services projects and a second project for consuming these services is in java. My question is how can i create proxy classes for java to consume my wcf services ? Is there any other way to consume wcf services through Java clients ? ...

Exception while IsOneWay is True

I am new to WCF. I have a small question to ask. Let's assume IsOneWay=true is set in for one of the OperationContracts in my service contract. Let's say when client calls this method and some exception occurs in the method what happens. Besically I want to know when this property is set to true how the exception behaves. Please reply...

WCF client application hang -- need repro advice

I have a WCF application with a couple thousand clients connecting to a pair of services running under IIS. What I've noticed is that some of these clients get into a hung state, and I'm trying to reproduce this. When this problem was first noticed, I had not modified the throttling configuration and the services were set to Concurrenc...

An object with the same key already exists in the ObjectStateManager...

I have an entity model with (among others) following four entities: QCompany: - PK_Company - CompanyName - QAddress - a collection of addresses QAddress: - PK_Address - Streetname - QZipCode - QAddressType QAddressType: - PK_AddressType - Description QZipCode: - PK_ZipCode - ZipCode - Maildepot I try to do the following: I have an...

Share DTO objects between WCF services

I feel this is a stupid question even before asking, but my brain isn't working too well right now. I have two WCF services "CountryService" and "FloristService". Now CountryService has the following method: IList<CountryDTO> GetAllCountries(); Additionally, FloristService has a method: bool AddFlorist(FloristDTO florist); All go...

WCF Message Credential Implementation Details

I'm looking for some technical detail on where the actual username + password (credentials) are being stored during the message exchange using a WCF binding like the below. <bindings> <wsHttpBinding> <binding name="wsHttp"> <security mode="TransportWithMessageCredential"> <transport/> <message clie...

2 threads access WCF service with default behaviour ConcurrencyMode = Single

I have a client that runs 2 threads, each of them try to access a wcf service. The service is defined using the default behavior of AppService = new ServiceHost(typeof(MyService), new Uri[] { new Uri(netTcpLocalhostSimple) }); AppService .AddServiceEndpoint( typeof(IMyServiceContract), ...

WCF: The request for security token could not be satisfied because authentication failed.

I have two WCF services on the same machine. One is the publisher and one is the listener. The Publisher is dynamically creating proxies based upon and endpoint. I am configuring the proxy in code like this: WSHttpBinding binding = new WSHttpBinding(SecurityMode.Message, true); binding.Security.Message.Negotia...

Why aren't these WCF related resources cleaned up?

Here is my scenario: Start my test program and immediately break into the debugger (WinDBG) Take a !DumpHeap -stat and observe there are no System.Net* or System.Xml* objects anywhere Create my WCF client, make a WCF request Close the WCF client and force GC. Take a !DumpHeap -stat and observer there are tons of System.Net*, System.Xml...

Can Server-side and Client-side WCF Share Validation Library?

Greetings! I am using a WCF library on an application server, which is referenced by an IIS server (which is therefore the client). I would like to put my validation in a place so that I can just call .Validate() which returns a string array of errors (field too short, missing, etc). The problem is, such functions don't cross the WCF ...

How do I send SOAP Request to WCF Service?

Can anyone point me to an example how to post a SOAP Request to a WCF Service and return a SOAP Response? Basically a Travel client sends a SOAP request with search parameters and the WCF Service checks within the database and then sends the appropriate holidays. I keep getting this error, with the method I have used: "The remote serve...