wcf

WCF service returns HTTP 200 header and then times out without returning any content.

I have a Silverlight 4 user control that calls a WCF service residing within an ASP.NET 4 web application. Anonymous access to the webservice is enabled. clientaccesspolicy.xml is in place and downloads successfully. Navigating to FieldITDbService.svc on the server correctly pulls up the service metadata. However, when I try to view t...

How to debug WCF service with Silverlight

I have two solutions, one is the WCF service and the other one is the Silverlight. I would like to use the debugger on both solutions at the same time. The debugger for the WCF service automatically starts a ASP.NET development server. However, I have a hard time making my Silverlight client connecting to the ASP.NET development server. ...

WCF data contract

I have a data contract and I defined some constant variables in it and have [DataMember] tag for each constant variables. However, my client side does not retrieve those constant variables. I want those constant variables synchronized with the WCF service every time I update the metadata of my WCF service at my client side. I don't want ...

Using WCF client

Hi, In my application, I am using client.open and client.close to open a WCF proxy channel, use the wcf method and finally close it. I do this is several parts of my Windows Forms application. However, I have noticed that client.close does not necessarily close the connection immediately. Why is this? Should I use client.Abort instead?...

WCF Service calling another WCF service fails with web error 400 Bad Request

We have a web service that is called when user clicks save button on web form. The 'save' web service then makes a call into another web service (different machine). The call always fails and as far as I can tell does not even attempt to cross the network because the Fiddler traffic is empty. This problem only occurs when we call the s...

WCF Not Binding to TCP Port (checking via netstat -a)

Okay, I'll try to make this as straight forward as possible. I'm using VB.Net in VS2010, I'm attempting to self-host a WCF service. (It's actually in a windows service, but I'm trying to do this via a simple console app. Below is the code in question, the TCP/IP addresses are injected directly here. The WCF service itself is simply a ...

Consume WS-* Web Service with Flash?

Can Flash consume web services that embed WS-* such as WS-Security? The services are actually WCF services with .NET using WsHttpBinding... I need the security features of WS. ...

Reading DLQ from WCF Service with MSMQ 4.0

Hi folks, i want to write the web service that will be read messages from DLQ. As i understand if the message can not be delivered(there are other cases such as timeout, authentication etc.) from Client to Service, then message will be placed to DLQ(in this case i use custom DLQ), and DLQ Service will be called automatically. I wrote t...

WCF: can't get client endpoint.Address from server

I have to log WCF-service client IP inside IIS-6-hosted WCF service in Intranet Environment. There was a wonderful answer how to do that and it works perfectly for wsHttpBinding interface. But when I use my wsDualHttpBinding interface I retrieve "" (string.Empty) value in endpoint.Address field May be it's not wsDuallHttpBinding problem...

baseAddresses supplied to ServiceHost are not Https

I am trying to configure my WCF Service to be HTTPS. I have configured the behaviors and the services with the relevant addresses but I cannot understand why the address which is supplied to the service host is still http. The behavior I am using is here: <behavior name="RequestProcessorBehavior"> <serviceCredentials> ...

Access the current InstanceContext in a WCF UsernamePasswordValidator

I have a WCF service that is using a custom UsernamePasswordValidator. The validator needs to access my entity framework context. I would like to create one ObjectContext for the entire service call and then destroy/dispose it at the end of the call. So I created a singleton static class that provided this functionality, however, what's...

Is this the correct approach to poll the database?

Hi, I am creating a WCF service (CALLER) for Azure. The service(CALLER) calls async methods of another third party service(EXTN). The third party service calls the callback methods of another WCF service (LISTNER) hosted by me on Azure. CALLER enter the service details in the databsae with status = PENDING. In the callback service (LIS...

WCF & Java Interop - Please help

I’m trying to get a simple WCF application work with Java Client. Service exposes few simple operations using WSHttpBinding, which it does perfectly. Now, due to some reason (probably due to incomplete WS-* specifications at Java side) it seems impossible to generate a Java Client for this WCF service hosted on remote system. However...

How to get the number of exception the service has encountered in WCF?

How will I be able to count the number of exceptions thrown during the execution of a service? Right now I'm using behaviors to hook with the dispatchers using IOperationInvoker and IParameterInspector. But I need to know how can i count the faults and exceptions that occurs in a particular operation or the total occurrence in the whole ...

Silverlight Cross - Zone WCF access

I need to provide a localhost (self hosted) WCF - service for a Silverlight application. This service will provide all kinds of local functionality (legacy stuff, but also access to advanced hardware devices) to the Silverlight application. Imagine the following situation: Customer needs to use POS - printers in their native mode, but ...

JAX-WS and character encoding questions

Hi, I have a question on sending XML as string in a Webservice. One of our providers has developed a webservice that we should use. Their webservice is basically just a transport mechanism for their own request/response messages, e.g. class MyRequest is serialized to an XML string using JAXB passed to a setRequest method in their webser...

WCF: Windows or UserName authentication in one endpoint

We are implementing the following log on mechanism for our 3-tier application: User launches the client application and - authenticates using her Windows session credentials (Active Directory) or enters her AD credentials if another user is already logged on to this Windows session or enters her user name and password if the computer is...

C# How to find WCF IIS deployment/virtual directory at runtime to change name of log file ?

I am trying to change the name of a c# WCF logfile based on the name of the IIS Virtual directory it is deployed to. I tried to use the Directory.GetCurrentDirectory() call but it returns the directory c:\windows\system32\inetsrv regardless which virtual directory the WCF apps was deployed to.. So should I be looking into the Virtua...

WCF Service creates wcf Client proxy, starts transaction, calls proxy method but fails on Message Security

I am calling a WCF service from a WCF proxy(client) withing another WCF service as follows: Client -> Service1 -> Proxy.Method -> Service2 I use ASPNet Compatability everywhre with ASP.Net Membership configured and working everywhere. If I call the Service2 from the proxy using a TransactionSope I always get a message secu...

How to pass WCF credentials in single request?

I have this binding: <customBinding> <binding name="b1"> <security authenticationMode="UserNameForSslNegotiated"> <secureConversationBootstrap /> </security> <binaryMessageEncoding/> <httpTransport/> </binding> </customBinding> When I use a sniffer to see the calls, I see that this d...