wcf

Is there a way to use a web service (WCF) WITHIN a web application?

Is there a business case for using WCF WITHIN your web application (ASP.NET/SQL Server)? I'm not talking about a service to be consumed by others, but rather a service to be consumed WITHIN the web app. So far, the only use for web services WITHIN the web app I came up with is when I need to call the database from the client (through AJ...

Web service interoperability broken by developers incompetence?

How do you develop web services and how do you create WSDL? What do you include in WSDL? This question is based on observation that developers don't use WSDL properly. WSDL describes the service. I think that service description should include everything needed to use that service. So if I use any WS-* protocol I have to include WS-Poli...

certificate encodedValue

i have wcf service with security mode = "message" when i create wcf service proxy class in client project i see tag in app.config What information encodedvalue contain and how can i decode the value ? i tried byte[] bytes = Convert.FromBase64String(base64string); return ReturnString = UnicodeEncoding.Unicode.GetString(bytes); but no suc...

ContractFilter mismatch at the EndpointDispatcher (error handling)

Hello, my problem is following: While updateing service reference of my WCF client (simply by clicking Update Service Reference in Visual Studio 2008), I'm getting following error: System.ServiceModel.FaultException: The message with Action 'http://schemas.xmlsoap.org/ws/2004/09/transfer/Get' cannot be processed at the receive...

Configuration-Based Activation Problem In My Wcf Service

Hi, I want to use new .Net framework 4.0 feature "Configuration-Based Activation". I wrote that lines into web.config. <system.serviceModel> <serviceHostingEnvironment> <serviceActivations> <add factory="MyCompany.Core.Hosting.WcfHostFactory" relativeAddress="Greeting.svc" service="MyCompany.Core.Services.Gree...

Does WCF UserNamePasswordValidator require checking PrimaryIdentity.IsAuthenticated?

Currently I have a service that uses a UserNamePasswordValidator to authenticate the client user. The code for the validation goes as follows: public override void Validate(String userName, String password) { if (userName == null) || (password == null) throw new FaultException("Username and/or password not specified....

static WCF proxy class object

I have a WCF app on NetTCP Binding based. In client app i have created its proxy class object as static. This client app may run for 4-8 hrs after deployment. Basically at login window I am creating and initializing DataServiceClient proxy class (mainly database insert & updates) and using same object throughout my application until use...

ASP.NET to WCF - passthrough security?

I have a MVC website that sits on top of a WCF service. The WCF service is also accessible to the internet with username/password authentication using message security and certificates. This is setup and working. Both the website and the service use the same membership store, using the membership API. A user can log onto either the web...

How to use SharpArch.WcfClient.Castle.WcfSessionFacility

Hi guys, I would like to know how to make use of SharpArch.WcfClient.Castle.WcfSessionFacility as an alternative to the following verbose-ness. public ActionResult Index() { IList<TerritoryDto> territories = null; // WCF service closing advice taken from http://msdn.microsoft.com/en-us/library/aa355056.aspx ...

WCF 4.0 Plain Text Password over http flag

Hi all, I read in a magazine not too long ago that there is a new flag in WCF 4.0 that allows you to use Plain Text Password over http without the need for SSL. (I know not a good idea) Regardless I wish to do this. Can anyone please point me in the direction of this Framework flag? Thanks in advance Brian. ...

How can I find my contract method from a WCF message header Action?

I have created a class that implements IDispatchMessageInspector and in the AfterReceiveRequest method I can get the action in this form: "http://example.com/contract_name/operation_name" Is there a good way that I can get figure out what method that is in my contract interface? Can I do it using the same code that WCF uses to find what...

connecting with WCF client

I am trying to connect to a Java based service from WCF .NET client. the address of the service is something like https://xxxxx:4444/myownservice I can successfully access the WSDL on https://servername:4444/myownservice/?WSDl but when I run the proxy client , the process is timing out and gave me this error message "Could not connect ...

silverlight 4 automatic printing ssrs reports

hi i wrote a small app in WPF based on the link below , that contacts the SSRS server, sends a report name & parameters and gets a report printed automatically on the client default printer. My clients are very keen on this one click printing idea. http://blogs.msdn.com/b/bryanke/archive/2004/02/11/71491.aspx now here is my problem: I...

How to set keep alive interval for HTTP connection in WCF

Http transport channel in WCF uses persistent HTTP connections by default. How to control keep alive timeout for those connections? Default value is 100s. I found that value by monitoring application in Procmon. I haven't found any setting in http transport binding element which configures this timeout. Is there any .NET class which can ...

Are there any libraries or samples for non-duplex WCF chunking?

I'm looking for a way of implementing a file transfer service over HTTPS which uses chunking to cope with intermittent connectivity loss and to reduce the large timeouts required by using Streaming. Because the client may be behind firewalls, the Chunking Channel sample on MSDN isn't suitable. There is an old discussion about this on th...

How to generate helper classes and stub code with wsdl2php for a PHP web service?

Hi, I have a WSDL generated by WCF and now this WSDL should be used to create a PHP web service. My WSDL contains mappings to custom .NET classes (complexType) and I would need a PHP WSDL tool which can generate the equivalent PHP classes as well as the stub code (server-side generation). I read that the wsdl2php would be the right too...

Is it possible to consume any Rest service using WCF data service client library

Assume i have Rest service which may return Xml or Json formatted response. I am able to consume the service using RestSharp and Hammock but i could not consume using WCF data service client library (System.Data.Services.Client). Is there any limitation in data service client library can only consume Odata feed response. Please help to ...

Using Ninject WCF Extension with WCF Web Service

I have a WCF web service in which I want to use my Repositories and Services which I wish to dependency inject into my WCF web service, however the Ninject WCF Extension example pretty much has a ctor which is instantiating an instance of each dependency, which I don't want, I wanted a purer dependency injection. Has anyone had any succ...

generate wcf server code from wsdl files

Greetings, I would like to generate some contract based on wsdl file. I used svcutil but I suspect it generated it wrong as all contract methods have void returned type. Is there any tool for this purpose? EDIT: here is the wsdl file: <wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsu="http://docs.oasis-...

WCF 4 Rest Service on IIS Developer Express, Authentication Issue.

When I host the "WCF 4 Rest Service Template" project (from template) in IIS Developer Express I get the following: IIS specified authentication schemes 'IntegratedWindowsAuthentication, Anonymous', but the binding only supports specification of exactly one authentication scheme. Valid authentication schemes are Digest, Negotiate, NTLM,...