wcf

POX return data from WCF Data Services

I am using WCF Data Services (netfx4) to provide data sourced from SQL via EF, the standard OData mechanism is fine and JSON works as well but I need a third option for generic POX (plain old xml). I have yet to come across a simple strategy or switch that allows me to control this but I am sure one must exist or a workaround method migh...

Weird problem: IE8 user can't authenticate with web service

I have an asp.net app. It has a page that requires authentication. The authenticated user can view the page because he/she is authenticated. The page makes a jQuery Ajax call to a WCF service. The WCF service checks that the user is authenticated via HttpContext. I have a user that is using WinXP and IE8. This user can authenticate to th...

Design ideas for WCF service

I need to design and I'm looking in to using WCF to accomplish this. Basically here is how I have it: Server process: Generate list of files to transfer across multiple FTP/SFTP sites in to a queue. Client(s): Talk to server to get files to transfer. Transfer the files acquired. All the data necessary to transfer the files will be p...

For use WCF and create .svc is necessary a web application or in simple ASP.NET website run the .svc

Because in website i retrieve from .svc The type 'TaskService', provided as the Service attribute value in the ServiceHost directive could not be found. and not in web application [ServiceContract(Namespace = "")] [AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)] public class TaskServ...

How to get full callstack of FaultException

Hi, I have a WCF service that throws an exception. I get a FaultException in the client without an InnerException. I only have part of the callstack of the original exception, from which it's hard to understand what caused this. How do I get the original exception or at least all the callstack? Thanks. ...

ELMAH - Exception Logging without having HttpContext

I tried this solution with Elmah.XmlFileErrorLog but I'm getting following exception System.ArgumentNullException was unhandled by user code Message="Value cannot be null.\r\nParameter name: context" Source="Elmah" ParamName="context" StackTrace: at Elmah.ErrorSignal.FromContext(HttpContext context) in c:\builds\ELMAH\src...

WCF authentication example using System.Web.ApplicationServices.AuthenticationService and mobile app?

I see many examples of using this by creating the standard .NET stub clients and consuming services that way. Can anyone point me in the direction of an example using the System.Web.ApplicationServices.AuthenticationService WCF authentication service being consumed by a mobile app? Thanks. ...

How to add reference of WCF service to .Net CF 2.0 application?

The .net CF 2.0 application does not understand the WCF proxy. So, it neds to be converted to ASMX proxy first and then to be added as reference to .net CF 2.0 application. But this is in theory. Need to know the exact steps of how to do it. ...

API not accepting SOAP requests

Hi, I'm fairly new to WCF and API's in general so i don't know if this is even remotely possible. I have a web service created using WCF that works fine when being used by a .net client application or SoapUI or any other reasonably intelligent software (over a basicHttpBinding). But i have a client now who insists on using it in their o...

Publishing WCF .NET 3.5 to IIS 6 (Windows Server 2003)

I've been developing a WCF web service using .NET 3.5 with IIS7 and it works perfectly on my local computer. I tried publishing it to a server running IIS 6 and even though I can view the WSDL in my browser, the client application doesn't seem to be connecting to it correctly. I launched a packet sniffing app (Charles Proxy) and the resp...

How to consume PHP SOAP service using WCF

I am new in web services so apologize me if I am making some cardinal mistake here, hehe. I have built SOAP service using PHP. Service is SOAP 1.2 compatible, and I have WSDL available. I have enabled sessions, so that I can track login status, etc. I don't need some super security here (ie message-level security), all I need is transp...

Service reference not generating client types

I am trying to consume a WCF service in a class library by adding a service reference to it. In one of the class libraries it gets consumed properly and I can access the client types in order to generate a proxy off of them. However in my second class library (or even in a console test app), when i add the same service reference, it only...

wcf crashes in one pc and in the development pc runs perfectly

hi implementing an wcf service that executes scripts (C# code) saved in a specific folder. but i have a problem it crashes in all pcs except the pc that im developing in all are the same edition of win7 . How ican see why it's crashing ? the WCf service is hosted in a windows service ...

Best method of achieving bi-directional communication between Apple iPad "clients" and a Windows Server over LAN

We are currently starting to build a client-server system which will see 10 or more Apple iPad client devices communicating to a central Windows server over a wireless LAN. We wanted to some existing plumbing (.NET remoting/WCF/web services/etc) that would allow us to implement a reliable, secure solution without having to start at a lo...

The HTTP request was forbidden with client authentication scheme 'Anonymous'

I am trying to configure a WCF server\client to work with SSL I get the following exception: The HTTP request was forbidden with client authentication scheme 'Anonymous' I have a self hosted WCF server. I have run hhtpcfg both my client and server certificates are stored under Personal and Trusted People on the Local Machine Here is t...

How do I add another return format to WCF data services?

Out of the box WCF Data Services (aka ADO.NET Data Services aka Astoria) supports OData as a return format (xml really, but this is the structure it uses) and JSON. How do I introduce another return format? ...

In a WCF Client How Can I add SAML 2.0 assertion to SOAP Header?

I'm trying to add the saml 2.0 assertion node from the soap header example below - I came across the samlassertion type in the .net framework but that looks like it is only for saml 1.1. <S:Header> <To xmlns="http://www.w3.org/2005/08/addressing"&gt;https://rs1.greenwaymedical.com:8181/CONNECTGateway/EntityService/NhincProxyXDRReq...

WCF service errors after installing WindowsXP updates

Greetings, today before I start working on my application I updated my WinXP. After all updates have been installed my WCF service stop working. There is a following error when I try to open service.svc file in the browser: Configuration Error Description: An error occurred during the processing of a configuration file required to se...

Hosting WCF 3.5 on AppFabric

Hey Guys, I am planning to host the WCF services for one of my project on App Fabric. When i installed App Fabric it asked me to install the .Net Framework 4.0. I Can able to configure the WCF services written in 3.5 on App Fabric but i have to select the Asp.Net v4 as an App Pool. I feel the it using CLR 4.0 for the service. Question...

Join two contracts into the same WSDL

Hello, Maybe it is science fiction, but i would like to know if it is possible to join a WF exposed with WCF and a WCF into the same WSDL. As you know a WF service (xaml) exposes a wsdl and a WCF (svc) exposes its own. The background problem is that I do not want to differenciate long running process and short synchronous ones into dif...