wcf

How to extend WCF returned class properly?

I am using a WCF service in my project. This service returns a class called "Store". I created a new local class which inherits from "Store". My class is called "ExtendedStore". My ExtendedStore looks like this: class ExtendedStore : StoreManagerService.Store { public int Id; .... } Now I am using the WCF service to cast to m...

WCF client hangs on response

I have a WCF client (running on Win7) pointing to a WebSphere service. All is good from a test harness (a little test fixture outside my web app) but when my calls to the service originate from my web project one of the calls (and only that one) is extremely slow to deserialize (it takes minutes VS seconds) and not just the first time. ...

Do I have to worry about escaping XML reserved characters before I return a DataContract object from an OperationContract in WCF?

Hi, I am pretty inexperienced with WCF. I have a DataContract that implements the IExtensibleDataObject interface. Some of the members of this object are populated from freetext input and could contain XML reserved characters ('>', for example). I imagine that I get escaping of these characters for free with WCF, but I have been look...

IWAB0399E Error in generating Java from WSDL: java.io.IOException: ERROR: Missing <soap:fault> element inFault

I have a WCF 4.0 service for internal use. Another team is trying to consume it in Java. IWAB0399E Error in generating Java from WSDL: java.io.IOException: ERROR: Missing <soap:fault> element inFault "PasswordReuseFaultFault" ... One source suggests it may be a Soap 1.1 vs. Soap 1.2 issue Indeed my WCF generated WSDL <wsdl:fault ...

Silverlight WCF method calls fails if WCF service is not running initially

Quite simply I have a generic Silverlight 3.0 web page that is calling a Ping method on a WCF service. I do not have the WCF service running initially when I navigate to this Silverlight page. As expected I get a communication exception when I press the Silverlight button to call the Ping method, which I catch. Now if I start the WCF ser...

Tutorial: Simple WCF XML-RPC client

Update: I have provided complete code example in answer below. I have built my own little custom XML-RPC server, and since I'd like to keep things simple, on both server and client side, what I would like to accomplish is to create a simplest possible client (in C# preferably) using WCF. Let's say that Contract for service exposed via ...

Can one instance of a WCF service pass work on to another instance where this 2nd instance would reply directly to the requester?

Let's say I have 2 instances of the same web services. Is there a way that I can have the second instance of the web service perform a task at the behest of the first instance of the WCF service and reply directly to the original requester? I could code this and include logic in WCF-A to contact WCF-B under the right conditions and then...

WCF Web/ServiceHost - Singletons and initialisation

I have some Service class which is defined as InstanceContextMode.Single, and is well known in the hosting application. (The host creates an instance, and passes that to the WebServiceHost) Hosting app:WebServiceHost host = null; SomeService serviceInstance = new SomeService("text", "more text"); host = new WebServiceHost(serviceInstanc...

Java Client interoperating with WSE 3.0 Web Service

I have a Interoperable Security Token Service (STS) that authenticates the User and then issues a SAML token. I also have transaction services that expects the SAML token in the incoming SOAP request header. For a client to make a call to transaction service, it first needs to authenticate with the STS, get the SAML token and then make ...

Strange error occurring when using wcf to run query against sql server

Hi all, I am building an asp.net application, using II6 on windows server 2003 (vps hosting). I am confronted with an error I didn't receive on my development machine (windows 7, iis 7.5, 64 bit). When my wcf service tries launching my query running against a local sql server this is the error I receive: Memory gates checking faile...

Can I have multiple .svc files in one virtual directory under IIS in WCF?

Can I have multiple .svc files in one virtual directory under IIS in WCF? If so how? ...

How to detect a WCF session crash before calling a contract method?

I am using a session mode for my WCF service. The problem is the following: if session is broken and no longer exists, client can't know it before calling a contract. For example, if the service has been restarted, the client's session id is invalid, because that session has been closed on the server side. I check the channel state be...

Mandatory Parameters in Request object (WCF)

lHi, I'm currently writing a WCF service. One of those methods get's a request object and returns a response object. In the request there are a couple of value-type members. Is there a way to define members are mandatory in the declarative way? I'm in an early stage of development and I don't want to start with versioning now. In addi...

WCF - problem with local service (The server has rejected the client credentials.)

Hi, I have a simple setup, a WPF application running on the machine and a WCF service hosted within a Windows Service on the same machine (always on the same machine). When i debug on one computer i can easily access the local WCF Service. When i run it on another machine i get an error: "The server has rejected the client credentials....

Access WCF service through ASP.NET

I have a WCF service which I would like to access using ASP.NET. The binding used in the WCF service is basicHttpBinding. How may I do it? Any examples will be really appreciated. Will it work fine if I create a proxy from the svcutil.exe and then use that class in an ASP.NET page? ...

WCF- "The underlying connection was closed: The connection was closed unexpectedly"

Hi there. I'm recieving that wonderfuly ambiguous error message when using one of my webmethods on my WCF webservice. As that error message doesn't provide any explanation whatsoever allow me to post my theory. I believe it may have something to do with the return type I'm using I have a Types DLL which is refrenced in both the webser...

WCF, IIS6.0 (413) Request Entity Too Large.

Hello, guys. I've got annoyed problem. I've got WCF service(basicHttpBinding with Transport security Https). This service implements contract which consists 2 methods. LoadData. GetData. GetData works OK!. My client received pachage ~2Mb size without problems. All work correctly. But when I try load data by bool LoadData(Stream data)...

Silverlight on Internet Explorer: Delay in executing asynchronous calls after a gap

I have a silverlight app which calls WCF services. I'm seeing some fairly strange behaviour. Internet Explorer: Open the silverlight app. Wait for a while (while = less than a minute). Perform an operation which needs to call the WCF service. There is a significant delay till the silverlight app makes the server call. Wireshark and WebD...

Sending large XML from Silverlight to SVC (WCF)

Hi! I want to send a big XML string to a WCF SVC service from Silverlight. It looks like anything under about 50k is sent correctly but if I try to send something over that limit, my request reaches the server (BeginRequest is called) but never reaches my SVC. I get the classic "NotFound" exception. Any idea on how to raise that limit...

How to send big psd by webservice

Hi, I want to sending by webservice/ WCF big files like 2gb psd. Is WCF message streaming the best way to cope with this ?? ...