wcf

Wcf proxy generation on windows mobile application.

For my mobile app, I used the Add Web References to generate the client proxy to interact with my WCF service. Then I read somewhere there is an equivalent of SvcUtil for compact framework: NetCFSvcUtil. Should I be using the NetCFSvcUtil instead of going throught the Add Web References? Or the Add Web References uses NetCFSvcUtil in ...

WCF service looks works for one client solution, but not another.

Hello all, I have a WCF service that I have written, and exposed as a windows service. In Visual Studio 2010 for two apps, I can right click on references, select "Add Service Reference...", put the required information in, and it works just fine. For a different application, when I do this everything looks to be working fine, but when ...

Exposing custom server-side Entity Framework properties on the client side

I'm making a Silverlight 4 application with WCF RIA Services. On the server side (the *.Web project), I have an Entity Model that's auto-generated from a SQL Server database. On the client side, I have the domain service and proxy objects that are generated by Visual Studio for use in Silverlight assemblies. I want to add custom proper...

How to modify a WCF message header's MustUnderstand using ClientInspector

I am calling a non-WCF service from a WCF client. The WCF client includes the "MustUnderstand" header attribute set to "1". Here's a typical SOAP request: <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" xmlns:u="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"&gt; <s:Header> <o:Secu...

Adding a Java Web Service Client in Netbeans that supports streaming with a WCF Streaming Service?

I have a C# WCF basicHttpBinding Streaming WebService. The signature of the method that I want to access is: [OperationContract] void SendStream(Stream stream); However, when I try to add it as a standard Java Web Service Client into my Netbeans project. The auto-generated proxy method signature gets changed to: void SendStream...

No Help for WCF Rest Template 40

Hey, here is my Web.config file. Everything works for my services except Service1/help. <system.web> <compilation debug="true" targetFramework="4.0" /> <customErrors mode="Off"/> </system.web> <system.webServer> <modules runAllManagedModulesForAllRequests="true"> <remove name="UrlRoutingModule"/> <a...

WCF at Services faulted state

Hi, I have many webservices running in my project but something odd has been happening for quite some time. My services occasionally crash for no reason with an error message "The communication object, System.ServiceModel.Channels.ServiceChannel, cannot be used for communication because it is in the Faulted state." This usually happens...

Controlling a service through a separate application

I'm writing a windows service to do some daily processing, and I want to have a user-friendly way to interact with it. I'll just be doing basic things like checking its status and viewing logs, though I may decide I want to throw in a function call or two as well. After doing some research, it sounds like I need a separate application to...

How do i call WCF services in Silverlight?

Hello, Can anybody tell me why is this not working. I have created a WCF service which returns a list of customers from Northwind database. using System; using System.Collections.Generic; using System.Linq; using System.Runtime.Serialization; using System.ServiceModel; using System.Text; using System.ServiceModel.Activation; namespace...

With custom UserNamePasswordValidator, can I kill the user's WPF "session"?

I'm using a custom UserNamePasswordValidator, which instantiates and logs in to our internal API. This API exposes an event that's fired when the user is "kicked" (by another administrative user), and I'd like to respond to this by killing the WCF session, so that further calls throw an exception. How do I go about doing this? My WCF ...

Can a custom UserNamePasswordValidator add things to the WCF session?

Related to this question, I'm instantiating a connection to our internal API inside my custom UserNamePasswordValidator. Can I stash this somewhere so that I can use it in future calls in that user's session? This is similar to this question, but I'm not using IIS, so I can't use HttpContext.Current (or can I?). Update: Some context: o...

Can a custom UserNamePasswordValidator be used as a role provider?

Related to this question, I've got a custom UserNamePasswordValidator that logs in to our internal API. As part of this logging-in, I can discover the user's roles in our system. I'd like to later use these in PrincipalPermissionAttribute demands on the service methods, e.g.: [OperationContract] [PrincipalPermission(SecurityAction.Dema...

Getting details of the call to a WCF service in custom UserNamePasswordValidator

I have a WCF service setup with my own UserNamePasswordValidator. When authentication fails in the Validate(string userName, string password) method I want to write the details to a log as well as throwing a FaultException. I want to store details of the particular service method that was being called and the parameters that were passe...

How do I do username/password authentication in WCF, with session affinity?

It seems like I'm barking up the wrong tree when asking this question, this question and this question. I need to authenticate users against a custom API (in COM), and I need to keep that custom API (the COM object) alive (for that user) for future WCF calls. During authentication against that custom API, I can get back a list of custo...

WCF service wrapper - passing endpointConfigurationName to service client constructor.

Hello, I have following wrapper to help me manage the wcf client lifetime: public class ServiceProxyHelper<TProxy, TChannel> : IDisposable where TProxy : ClientBase<TChannel>, new() where TChannel : class { private TProxy m_proxy; public TProxy Proxy { get { if (m_proxy !=...

Why is Log4Net ignoring my logName?

Okay so I have a WCF service writing to the Event Log. All is well except for one detail..it won't pay any attention to the logName attribute,..here's the config. <!--EventLog Appender--> <appender name="EventLogAppender" type="log4net.Appender.EventLogAppender" > <logName value="MyCustomLog"/> <applicationNam...

IIS Proxy for a Windows Service hosted WCF Service

I have a Windows Service that is exposing a WCF service thru a net.tcp channel. Now I want this service to be exposed thru IIS, without being hosted in it. By doing that I will be able to maintain the state in the Windows Service, and I will benefit of the underlying IIS authentication and security. Is it possible to do that just by u...

Looking for WCF Solution to Pass User Credentials in a Load Balanced Environment with Custom Binding

We currently support several WCF services running in a load balanced environment. In the past, we have used wsHttpBinding and set establishSecurityContext to false to allow the service to work properly with our load balancer. An issue we have ran into is that the wsHttpBinding encrypts the return results by default and, apparently, can...

REST-ful WCF service: Deserializing C# List of Strings not working properly

I've got a REST-ful WCF service that returns back an XML response. It is comprised of objects that are serializing and de-serializing correctly, with the one exception that my List property on a node is not deserializing correctly. The XML looks like: <ShippingGroups> <ShippingGroup> <ShippingGroupId> b0b4d8a4-ff1f-4f02-a47c-263ef8a...

Why are my messages continuing to be retried After the error has been handled ?

I have a poisoned message service. When I receive a poisoned message, the error is handled by a poisoned message handler, which sends an email, which then moves the message off of the queue. the problem I'm having is rather than sending one email. It sends 4-5 and I'm really struggling to figure out why this is happening. The way I do th...