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 repo...
I have a simple WCF service method:
[OperationContract]
public SetupGameResult SetupGame(long player1Id, long player2Id, long myPlayerId)
{
if(player1Id == 0 || player2Id == 0 || myPlayerId == 0)
{
throw new ArgumentException();
}
... // other code
}
I call this Service just in one ...
Hey,
I am a complete ASP .NET newbie. I've written a set of web services using the WCF 4 Rest Starter Kit. I call everything from within a Flash application but I want to write a quick and dirty admin panel for myself to use which has no need to be written in Flash.
I figure it will be faster to get this up and running in ASP. So the q...
Hi guys I need to have a standard management gui ( look and feel ) and lately I've been looking into mmc. Msdn and other free tutorials provides the installation and simple implementation of a snap in.
I'm confused right now on how I can integrate it with my production applications( console and windows service ). Do I need to set a com...
I have a data contract say User. It is serializable and goes across the wire. I want an Operation Contract SaveUser(). I can keep SaveUser(User user) in my service contract as an operation contract. But can I keep it inside my data contract itself as its own behavior?
Save() should ideally save itself. So as per OO principles, every dat...
I have a c# solution with 3 projects - Data, WCF and UI. The first one is a class library that talks to db. It's exposed via the second one, which is of type WCF Service Library - the reason for that is it will be exposed in third project - Asp.net app called UI - as a simple svc pointing to dll.
Just to point it out, I'm not using Repo...
I am a beginner for WCF and I would like to know which is the best practice book for WCF
...
I have a couple of services, where one of them needs to be a singleton service. The other services connect to this singleton service and the singleton service in turn makes calls back in to the instances of the other services.
My question: is it safe to move this scenario into IIS so I can make use of the new Windows Server Appfabric fe...
Hi i finally created a small upload wcf service. I can transfer small images on my computer, but i tried transferring a mp3 song to have some larger data. It failede with a "400 bad request" exception. I have no clue as to what is going on. I am streaming the data and found alot of resources on the net, but none seem to work, this is wh...
Using Visual Studio 2010, I have written a simple WCF service and some integration tests that I want to run against it. I build my proxy for the tests at runtime in code rather than using configuration.
My tests pass in debug but not when run!
FAIL if run - go Test/Run/Tests in current context ( as the WCF Service it calls has not bee...
Is this the right approach for closing connections with WCF in silverlight?
ServiceClient client = new ServiceClient();
client.MakeRequestCompleted += (sender, e) =>
{
client.CloseAsync();
//some implementation goes here
};
for (int i = 0; i < 1000; i++)
...
In my solution I have a Web application project and a Class library project that contains all the business logic and this also acts as a data access layer as I am using Entity Framework. This means that I have my edmx in this layer itself.
I have some 34 classes in this class library project and at an average 6 public methods in each cl...
Hi folks, i have the following issue:
In asynchronous context i need to initialize fields of some custom object before i can proceed with other operations on it, so i do:
class ContainingObject
{
private CustomObject _co;
SomeMethod()
{
_co = new CustomObject();
_co.InitObjectAsyncCompleted += (s,e) => DoStuff()...
I have created a WCF REST service that returns JSON, but the properties in the objects that are serialized are returned alphabetically.
Is there any way I change this?
...
Basic structure: http://hospero.de/structure.jpg
I have a really strange issue with my facebook iframe application.
I am developing a facebook card game. Two players can play a card game against each other on facebook.
The basic structure is:
The silverlight control is hosted inside an ASP.NET Website which is hosted in localhost for...
Can anyone spot what is wrong with my code? I'm getting a 404 Not Found on firebug when i use jQuery to call a WCF SOAP service.
I'm on Win7 using IIS7. I have the wcf running on a virtual directory application as (http://localhost/csw). I can access the service.svc file with no problem here at this url: (http://localhost/csw/service.sv...
I've been trying to get data from a wcf service and into the fullcalendar control. However, ive had no luck and wondered what i was doing wrong.
jscript :
$('#calendar').fullCalendar({
header: {
left: 'prev,next today',
center: 'title',
right: 'month,basicWeek,basicDay'
},
e...
I am trying to catch a given FaultException on a WCF client. I basically need to extract a inner description from the fault class so that I can then package it in another exception for the upper layers to do whatever.
I've done this successfully a number of time, what makes it different this time is that fault is declared as an array, ...
I get this error
System.UriFormatException
[net_uri_BadFormat]
Arguments:
Debugging resource strings are unavailable. Often the key and arguments provide sufficient information to diagnose the problem. See http://go.microsoft.com/fwlink/?linkid=106663&Version=4.0.50826.0&File=System.dll&Key=net_uri_BadFormat
at System.Ur...
We would like to transform the outgoing XML from a WCF request if certain conditions are met.
Is there a way to intercept the XML stream right before it goes over the wire with WCF?
I found an approach where you use Message objects and override OnWriteBodyContents method, bu in there you have to create XML by hand and ideally we would li...