wcf

Cannot read the token from the 'SignatureConfirmation' element..(Java-WCF)

Hi, I have a WCF(3.5) client talking to a Java Web Service (Spring-WS, WSS4J), the client fails while recieving the response from server giving the following exception message Cannot read the token from the 'SignatureConfirmation' element with the 'http://docs.oasis-open.org/wss/oasis-wss-wssecurity-secext-1.1.xsd' namespace for Binary...

multiple asp.net membership providers

I have created two custome membership providers that I would like to add to my web.config. The first one would be the default that the asp.net application would use. The second would be called by a WCF service that I have in the same application. The providers in the membership section of my web.config looks like the following: <...

Wcf exception handling throw an error

Hi I have a problem handling exceptions in wcf. I have a service like this one: [ServiceContract] public interface IAddressService { [OperationContract] [FaultContract(typeof(ExecuteCommandException))] int SavePerson(string idApp, int idUser, Person person); } I am calling the SavePerson() on the service in the WCFTestClie...

How can I use internal constructors in public data contracts?

I've got several data contract classes like this: [DataContract] public class FooData { [DataMember] public string Name; // ... many more members public FooData (string name) // again, many more arguments { Name = name; // ... } } Since FooData is always used to transport Foo objects over the ...

Unit Testing, Web Services and Database Transactions

I'm trying to write test cases for my web services in a way that I can rollback any database changes they may make. I can try to surround them with a transaction scope, but how do I specify a context for the transaction? In other words, how does the transaction know which database and server to rollback on? In my case, the SQL server ...

.net 4 WCF Endpoint in generated metadata (WSDL) points to node rather than virtual host hosted on load balanced (NLBS) IIS6

This is real simple. I have a wcf service (nothing fancy, just New Project-> WCF Service Application), that runs great in Visual Studio. When I deploy it to an clustered IIS6 environment, it works mostly. I can send a request and get a response. However, the generated metadata consistently refers to a particular node in the cluster...

enable PUT on IIS 6 for wcf .net 4.0 "SVCless" rest services

How do I enable PUT on my IIS 6 for wcf .net 4.0 "SVCless" rest services. My Services are at the root of the website. Please help! TIA EDIT: I get "501 - Not Implemented" when the service is hosted at the root of the site. If if it is a child application it works. ...

Automate publishing of a WCF library using MSBuild

I searched and couldn't find anything releated to this topic. When using Visual Studio 2010 for a WCF library, you can right-click it and publish the WCF Library, which generates/creates the .svc and web.config file as well as deploys it. I have been trying to mimic this in msbuild and have had no success. Is this possible? I have bu...

WCF using Transport always attempts to use HTTPS when I don't want it to.

I keep getting the following error "Could not find a base address that matches scheme https for the endpoint with binding WebHttpBinding. Registered base address schemes are [http]." This started because I went to Basic Transport Authentication by adding: <webHttpBinding> <binding name="secureBasic"> <security mode="Transpo...

Strange WCF net.tcp exception

I have a WCF client/service with net.tcp transport. When I turn on the WCF tracing on client side I am seeing the following errors in trace (see screenshot from service trace viewer). The strange thing is that WCF is handling and recovering this error and my client doesn't receive any exception and it continues to work. This exception ha...

What kinds of non-HTTP addresses are allowed in WCF endpoints?

I'm just trying to save time by not learning about IIS and WAS, so I made a console application to host my WCF service. However, that leaves me uncertain as to how to specify an endpoint address that is not an HTTP address. Could the following config be the source of my runtime error? The exception description was: Could not find a ...

Custom exception handling in WCF Service and Client

What you think about this approach: Fault helper: [Serializable] public class WcfHwServiceFault { private readonly Guid _guid; private readonly byte[] _data; private WcfHwServiceFault(Guid guid, byte[] data) { _guid = guid; _data = data; } public static WcfHwServiceFault Create(Exception ex) ...

What are my options to merge PDFs in a web site or web service environment?

I have multiple PDFs coming from a report generator and I want to merge them to a single document. The merging process must run in a web site or WCF web service environment (Framework 4.0, IIS 7.5). Is there a component, open source or commercial, to accomplish this? In my process I get the PDFs as streams. If I have the choice, I would...

WCF Data Service Proxy Class

I am pretty sure this is a stupid question, but here goes anyway. I have a WCF Data Service exposing an object, let's say Person. This Person object is in the namespace Domain.Person. I have a client with a proxy to the WCF Data Service. This client has code that works with the referenced Domain.Person class. However, the proxy is return...

create wcf service for Andriod client

Hello, How can I create a WCF service for Android client. Thanks Ikram ...

Help required to analyse load test results

I'm running some load tests from Visual Studio on a WCF service and I would like some help in trying to interpret / analyze the results. After enabling counters in web.config the host has provided us data for the following counters: "Calls Duration" and "Calls Per Second". I've assumed that "Calls Duration" is the figure I need to anal...

Unable to start Ado.Net Data Service in IIS6

Hi, I am trying to run a sample WCF ADO.Net Data Sertice on my IIS, which give me message The resource cannot be found. Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure t...

Getting an error - content type 'text/xml; charset=UTF-8' was not the expected type when requesting a wcf using a xmlhttp by vb script

Hi i am new to wcf and xmlhttp, i am using vb script to send the request. i am getting the following error "Cannot process the message because the content type 'text/xml; charset=UTF-8' was not the expected type 'application/soap+xml; charset=utf-8'." Please find my code below, g_XMLLink = "http://dev1.xxxxx.employer/employer/v02/Empl...

Examples of ASP.Net MVC 2 - WCF/WSDL - using IoC methodology

We here at my company are just about to get going on ASP.Net MVC 2 for our UI to interface a backend totally SOA with WCF/WSDL. I have looked at various books examples of how to totally make the applicalion loosely coupled from the Domain perspective using the IoC containers e.g. Unity or Castle (looks to be the way to go !) ...BUT Are t...

Configuration evaluation context not found warning on WCF trace

I have a set of WCF services hosted on a .NET 4 application. I manually create the ServiceHost class and start listening on TCP port. All works as expected but in the WCF trace on the server side I get the warning below. Configuration evaluation context not found. XML trace follows: <E2ETraceEvent xmlns="http://schemas.microsoft.com/2...