Suppose i have a service, where i give some input , and i am setting the properties of Name and Age as Nothing
Name and Age are nullable types.
Now as Name and Age are nothing i do not want a xml tag generated in the output.But below xml tags are generated with nil=true.
<Name xsi:nil="true"/>
<Age xsi:nil="true"/>
...
Hi all,
I'm having a bit of trouble with what should be a simple problem.
I have a service method that takes in a c# Message type and i want to just extract the body of that soap message and use it to construct a completely new message. I can't use the GetBody<>() method on the Message class as i would not know what type to serialise ...
I'm trying to call a WCF service (hosted in a Windows Service, not IIS) and am getting the following error:
The maximum message size quota for
incoming messages has been exceeded
for the remote channel. See the
server logs for more details.
I have tried increasing the MaxReceivedMessageSize and the ReaderQuotas to their maxi...
I have a WCF Service hosted as Windows Service and client is an ASP.Net application consuming WCF Service methods.
In process of implementing security, I am confused over which among netTcpBinding/wsHttpBinding will be suitable for my case.
Most likely all the applications in scene (WCF Service, Windows Service, ASP.Net Website) will b...
I have a silverlight app, which uses forms authentication for security purpose.
I have a custom membership provider to authenticate the user. This is hooked up properly and is working.
Then, after its authenticated I have user information which I need to save (More than just the name), hence I create a custom cookie and save it. All wor...
Setting up a WCF service that uses the webHttpBinding... I can return complex types from the method as XML ok. How do I take in a complex type as a parameter?
[ServiceContract(Name = "TestService", Namespace = "http://www.test.com/2009/11")]
public interface ITestService
{
[OperationContract]
[WebInvoke(Method = "POST",
...
If I have a type like:
public class Context
{
public Context()
{
}
public IQueryable<Record> Records
{
get
{
if (user == someone) //psuedocode
{
//return something
}
else
{
//return something else
}
...
I'm finding mixed answers to my question out in the web. To elaborate on the question:
Should I instantiate a service client proxy once per asynchronous invocation, or once per Silverlight app?
Should I close the service client proxy explicitly (as I do in my ASP.NET MVC application calling WCF services synchronously)?
I've found pl...
This relates somewhat to:
http://stackoverflow.com/questions/24993/invalidoperationexception-while-creating-wcf-web-service-instance/1711550#1711550
I have a .NET C# class library (DLL) that calls a WCF web service. It seems like any .exe that calls that .DLL must now have the web service configurations in its .EXE.config file.
So fo...
I can't make this scenario work. Here's the pattern-
[DataContract]
/*abstract*/ class BaseT
{ ... }
[DataContract]
class ChildT : BaseT
{ ... }
[DataContract]
class MessageContents
{
[DataMember]
public BaseT[] XX; // Array of BaseT objects. I need WCF to somehow figure out that they're actually ChildT.
}
// ...receive a web...
Hi - thanks for clicking.
I am trying to get status feedback using an IFrame for file uploads. I am not trying to get progress or percentages -
just when a file is done uploading and if it was a success or failure.
THE PROBLEM is that I can't seem to get the server response
to appear on the client. I have to following design:
I ha...
I'm tuning a server and need some guidance. This server provides the following features:
an ASPX page with a DB call that is downloaded approximately every 3 minutes by several thousand machines
a simple ASP.NET admin web site used by a tiny number of people but that must be highly available
a WCF service that provides file synchroniz...
I have a datacontract as defined below:
[DataContract(Namespace="",Name="community")]
public class Community {
[DataMember(Name="id")]
public int Id{get; set;}
[DataMember(Name="name")]
public string Name { get; set; }
[DataMember(Name="description")]
public string Description { get; set; }
}
and the service...
So which one is the newer one, and why would I use one over the other. Or more importantly, over Windows Forms?
...
Hi, I am developing WCF services in .net 3.5 framework and hosting them in IIS 5.1 windows xp sp3 with basicHttpBiding. Services consuming client developed in .net 2.0 framework. For this I generated proxy client using WSDL.EXE. This tool generates proxy class without any problem, but the problem it adds for every property adds extra pr...
I need to set up two machines later today for a domo of a client/server app written with WCF. (Both machines have Visual Studio 2008 installed)
I have been testing the applications using the WCF Service Host (wcfSvcHost.exe) on my PC.
Will wcfSvcHost.exe let a client connect from a remote machine over HTTP (ideally port 80)?
Or is it...
I have a question regarding the sequencing of events in the scenario where you are calling a wcf service from silverlight 3 and updating the ui on a seperate thread. Basically, I would like to know whether what I am doing is correct... Sample is as follows. This is my first post on here, so bear with me, because i am not sure how to po...
I am working on a WCF service (not externally available) that will authenticate users against Active Directory in two domains for users of our .NET 2.0 WinForm application. The authentication portion is mostly working, but I'm having some problems modifying Active Directory. Here are the basics on the situation and the requirements.
So...
I'm new to WCF. Let's say I have two asp.net apps, one that uses windows authentication (an intranet app), and one that uses forms authentication (an internet app). I want both of these applications to have a service reference to a physically separate machine where all my business logic will live (in WCF). So, the app is like this:
Brow...
Hello, I would like to know how do i incorporate a feature like wcf within and MVC application. My current idea of the architecture is as follows:
EntityFramework -> ASP.NET MVC (Views)
EntityFramework -> ASP.NET MVC with
WCF endpoints -> mobile Apps.
EntityFramework -> ASP.NET MVC ->
Silverlight (using .NET RIA Service...