I'm passing an object to a WCF service and wasn't getting anything back. I checked the variable as it gets passed to the method that actually does the work and noticed that none of the values are set on the object at that point. Here's the object:
[DataContract]
public class Section {
[DataMember]
public long SectionID { get;...
I use the term network services to refer to things such as NNTP, IMAP, POP3... things which have a defined protocol layered on top of TCP/IP.
I'm having a very difficult time figuring out how I can connect to an existing network service using a WCF client. I haven't found any examples other than ones that are basically using C#-ified s...
Hi.
I am wondering what is the best way to step into my Web Service?
When I compile my code the application hangs when it gets to a
web service method. If i try to set a break point and step into
the service's code, it won't let me - catching "The operation has
timed out".
Things I have tried:
1) My SVC file has Debug="true"
2) M...
I'm designing a WCF web service method that can return results either as a raw XML string, or as a structure, depending on the client's preference.
A simple approach is to have two separate methods:
MyStructure GetData();
string GetDataAsXML();
This should work fine, but given that the wire representation in both cases will be the s...
We're trying to track down some performance issues with an application and would like to figure out how many outgoing requests are being triggered by each page load. I can find lots of counters for showing incoming WCF connections, but nothing tracking how many are going out. Any ideas short of retrofitting all of the pages with custom...
I have two machines, we'll call them machine A and machine B. Machine B is running a Windows service written in C#.net, as the Local System account. Machine A tells machine B's service (using WCF) to open a file located on the network. Since local system is not a network user, it does not have access to network files, and is unable to op...
Fiddler has many useful extensions. However, I can't find one that understands WCF's binary-encoded SOAP envelopes. (Content-Type: application/soap+msbin1)
Suggestions for comparable (non-Fiddler) tools are welcome too.
...
WCF provides a wealth of features and functionality that didn't exist in ASP.NET Web Services. I'm wondering if those with some real experience using the technology in a production environment can share their experiences on interesting usages now available because of the new functionality. I think it will be a helpful source of "oh, yo...
I have a WCF service that is returning an XElement, this is working fine however I would like it to include the XML Declaration in the response:
<?xml version="1.0" encoding="utf-8"?>
The client side is not something that I can change and is reporting a "Result is not XML" The only other differences between the response of my HTTP re...
I have a WCF service with a security class for getting some of the attributes of the calling user. However I'm quite bad when it comes to thread safety - to this point, I haven't needed to do much with it, and only have a rudimentary theoretical understanding of the problems of multi-threading.
Given the following function:
public clas...
Hi ,
I have created and deployed a wcf service on iis. I am able to access the service in intranet , what else should i do to expose my service in internet??
...
Is it possible to pass callback objects (with callback methods) to a wcf service method?
Let's presume i have the following class:
class Callback
{
public Callback(){}
public int GetSomeData(int param)
{
return param;
}
}
Is it possible somehow to make a call like :
WCFServiceP...
I have a Silverlight application communicating with the server side through WCF services. Initially I had everything in the main Silverlight application, but now I wanted to factor our some classes to a separate Silverlight Class Library project. This however gave me some odd issues...
I wanted to factor the classes that does the WCF co...
Hi there,
I have a console app client that talks to a WCF service hosted by a console app on a different server. It use windows authentication with security mode = message
It works just fine until I change the service to impersonate the clients credentials. The changes I do to accomplish that is:
1. Add serviceAuthorization impersonate...
I have a WCF service and one of the method returns Stream.
Now the question is while I try to consume that Stream object, am I trying to use the stream over the network or the client had received the full stream on its own side?
Will it make any difference if I would have used RESTful instead of WCF?
...
Hi,
I'm using a distributed web application, with a database server housing the SQL Server 2005 database, an application server where we've installed a Microsoft Three Tier Service Application, and a web server where I using MVP with supervising controller.
My service layer, on the application server, returns an IEnumerable<Country> wh...
Hello,
I have built a custom binding for being able to receive HTTP messages from an additional source. However, it is not bug-free yet.
I've observed that my service pushes CPU usage up to 100 % as soon as the first request was processed and the service getting slower and slower the more requests came in. The reason for this behavior ...
I have a prototype ASP.NET-MVC website which uses Ninject as a IoC container. All service-classes and repository-classes used by MVC Controllers are properly injected by Ninject. This is great.
The next thing I need to add there is Silverlight (version 3 to be more precise).
Silverlight will be connecting to my server using WCF service,...
I have a RESTful WCF application that makes use of custom classes as service method parameters. These classes are decorated with the [DataContract] attribute and each of their properties is decorated with the [DataMember] attribute.
The deserializer works consistent with the following "Data Member Order" page at MSDN:
http://msdn.micros...
I have a WCF service written in C# being hosted on a remote machine, running as the local administrator account. From my machine logged in as an active directory user, I am sending a command that simply tells it to open a file on the network. I have access to the file, but the administrator account on the host machine does not. I'm using...