I am using a WCF to upload a file to a server.
public interface IFileTransferService
{
[OperationContract]
void UploadFile(Stream stream);
}
The problem here is, that I don't get information on whether the operation was succesful or not. Of course I may get an exception when the server does not respond, but how can the server report an specific error to the client.
Is this scenario supported by WCF? I am using .NET 4.0 both on the server and client. How else could I archive the desired behavior?
Thanks for your help!