wcf

WCF gets Access denied when the consumer try invoke a WCF service calls hosted on Virtual Machine

Problem System.ServiceModel.Security.SecurityAccessDeniedException : Access is denied. Relevant Stack lines (reduced) Server stack trace: at System.ServiceModel.Channels.ServiceChannel.ThrowIfFaultUnderstood(Message reply, MessageFault fault, String action, MessageVersion version, FaultConverter faultConverter) Exception rethrown a...

Entity Framework POCO with WCF software design question

I am going to use Entity Framework and WCF in my application. The suggested practice, as I saw, is using POCO with Entity Framework and also using POCO classes as DataContracts. That is actually what POCO and Attributes are used for, -if I am not wrong. However I am asked to use seperate classses for Entity Framework POCO's and WCF Data...

Plain HTTP along with WCF - how?

hey there! The brand-new WCF-based code needs (in the meanwhile) to provide a service to a legacy code that works in plain HTTP. So that, along with new SOAPed requests, I need to tailor some oldskul-style communication (on a different port): to be able to receive plain HTTP, analyse the request body and send the plain HTTP with some bo...

Stumped on ServiceModel.FaultException forever...

So I'm still not sure if this is on my side, the service side, or both sides. I have NO idea where the main source of the issue is coming from, but I will try and do my best to explain the steps I have taken and what has happened so far so you guys have all the info you need to bang your head against this with me. So we have a Web Servi...

Security processor was unable to find a security header in the message.

Hi, Recently on one of my machines, my client (WCF client) is having problem talking to WCF server. Both server and client are running on the same machine. The machine is Windows7 64 bit machine. It used to work fine until recently. The same software is working fine on all other machines with exactly same configuration. I am really conf...

Named Pipes from VB6 to WCF

Can I have a VB6 app call a named pipe connection to a service written in C# with a WCF endpoint? The VB6 project that makes use of named pipes to talk to a service written in C++. I would like to convert the C++ service to C# (.NET 4.0 preferably). The VB6 project uses a Win32 call to CallNamedPipes to send a message to the server. ...

Wrapping a .NET WCF service proxy class in a USING { } block?

Quick question, but is it best practice to wrap a service proxy class in a using statement? Meaning, in VS, we generated a proxy for a WCF service. For the service class, should it be wrapped in using? I don't believe it implements IDisposable and there is no Dispose() method. Thanks. ...

WebHttpBinding in WCF: how to configure it the proper way?

Trying to follow this example to make it work: http://weblogs.asp.net/kiyoshi/archive/2008/10/08/wcf-using-webhttpbinding-for-rest-services.aspx Here is my App.config: <system.serviceModel> <services> <!-- The service for the TEST WEB client --> <service name="MyServer.AAServiceType" behaviorConfiguration="Default"...

WPF Web (xbap) using WCF Service throws System.Net.webPermission exception

I have an xbap application running with partial trust on my local machine's IIS 7.5. I published the WCF service to the same directery as the xbap. After jumping through some hoops I could get it working through Visual Studio for debugging perposes, but I can't seem to get it to work on an IIS server after it's published. I'm running o...

Get EntitySetName from EntityName in WCF Data Services

Hi, I have a EnityName called Client and I need it's collection name Clients, it has to be generic so that I can get the EntitySetName from EntityName for any entity. It's exposed in the svc file but doesn't seem to be in the service proxy class. If I can do this then I can have a generic method like. public void Add<T>(IEnumerable<T> ...

WCF communication with java web service

Background I'm primarily a .Net developer with limited experience in Java. I have a WCF web service that needs to communicate with a 3rd party Message Queue Server in order to send and receive files. The 3rd party has provided a Java API in order to access their Message Queue Server. I've done some research into the best way to mo...

Bizarre Callback Behavior

When making simple method calls on a service (no parameters or return value expected), everything works just great. However, If I call another method on the callback, I get a big nasty error. Here are the contract interfaces: Namespace Net.Wcf.Contracts #Region "Message Responder Wcf Contracts" ''' <summary> ...

ASP.NET MVC2 Post to SSL and WCF Service

I have an ASP.NET MVC2 application hosted in a non-secure environment (http), also I have my account services (WCF) on an SSL server. I need to post a form that is on the non-secure http application to a secure SSL and access then the service. By no means I'm allowed to host the application in the SSL server (because it will loose the lo...

How to stop certificate errors temporarily with WCF services

Hi All, I am testing an early release of a WCF web service I have created. On the client side when I use VS to 'add service reference' that all works. But when I try to use the service I get the error, Could not establish trust relationship for the SSL/TLS secure channel with authority ** Where the stars represent the IP address o...

Reference Shared Silverlight Assembly with slsvcutil.exe

I have several WCF services being consumed by different Silverlight applications. I am currently using slsvcutil.exe with a pretty standard setup to generate my Silverlight proxy objects: "%ProgramFiles%\microsoft sdks\silverlight\v4.0\tools\slsvcutil.exe" http://myhost/MyService.svc?wsdl /out:Proxy.cs /edb /namespace:"*,My.Namespace" /...

How to host WCF Data Service (OData) in IIS7?

Does anyone know how to host a WCF Data Service (or OData) inside IIS7? I'm seeing lots of articles about hosting WCF, but none specific to WCF Data Service. Thank you very much. ...

WCF Trace Log analysis - help

I am having trouble deciphering a WCF trace file, and I hope someone can help me determine where in the pipeline I am incurring latency. The trace for "Processing Message XX" is shown below, where there appears to be 997ms delay between the Activity Boundary and the transfer to "Process Action" where my service code is executed (which ta...

WCF - How to do Load Balance with WCF 4.0 Router Service

Hi, Have you ever learned about WCF Router Service 4.0 ? I know that this new feature has a lot of advantages, but i have some questions about it... First of all, i can't find any documentation about it! How to implement a logic for Load Balance over WCF Router Service 4.0 ? How does WCF Router Service deal with services that has callb...

An error occurred when verifying security for the message.

When I try to call a WCF service I am getting the following message "An error occurred when verifying security for the message." When I remove the custom authenication the service works no problem. I can't figure out though what I have misconfigured in my web.config. Any insight would be appreciated. <system.serviceModel> <serv...

How should the web.config look like in Unity Dependency Injection for WCF services?

I am creating new instnace provider which resolve services through Unity. I am not sure how to add the configuration in web.config. Following is my service class. public class Service : IService { private IUnitOfWork _unitOfWork; private IMyRepository _myRepository; // Dependency Injection enabled constructors public Service(I...