Hi,
i have two web services. One with user functionality, one with admin functionality.
Both services effectively work with the same object types, for instance:
AdminService provides functionality for deleting/modifying Customer objects
UserService provides functionality for listing/reading Customer objects
Now in the client i have...
why is this working in streamed wcf?
the binding code:
public static NetTcpBinding CreateNetTcpBinding()
{
int messageSize = 1024*64;
XmlDictionaryReaderQuotas readerQuotas =
new XmlDictionaryReaderQuotas();
readerQuotas.MaxArrayLength = messageSize*100;
NetTcpBinding tcpBinding = ne...
Hello everyone,
How do I create a proper JSON enabled WCF svc service by overriding the createhost function?
Here's what I've tried...
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ServiceModel.Activation;
using System.ServiceModel;
using System.ServiceModel.Description;
using System....
In other platforms can I develop a service without worrying about addresses and bindings?
What is the name of equivalent technologies for Java, Python and other environments?
Edit:
For those who are unfamiliar with WCF, this is a part of the .NET 3.x framework whose main feature is to enable developing services that can answer multiple ...
I'm looking for a way to accomplish the behavior illustrated in source code below. I've create WCF service proxies with the "Always generate message contracts" option. All of my request and response message contracts implement a common interface and I'd like to execute them using the same function. It seems to me that there should be a g...
I have a RESTful WCF web service that processes huge XML files that are passed in as a Stream with a Header Content-Type: text/text using a POST method. When a client tries to use this web service with a Header Content-Type: text/xml, they receive a "...contains an unrecognized http body format value 'Xml'. The expected body format valu...
Hi All,
I'm using a simple ajax-enabled WCF service. I'm creating a string of XML on the client and doing a get (by default). Here is the code. I see the 'WebGet' attribute, but there's no 'WebPost'
[OperationContract, WebGet(ResponseFormat = WebMessageFormat.Json)]
public string PrepareDoc(string inputXML)
{
var arg ...
I'm trying to use impersonation with my WCF service (using net.tcp binding) hosted in IIS 7. I've got to the point where it's impersonating the client but whenever I try to access any configuration settings in the web.config using Settings.Default.SomeSetting it throws a SettingsPropertyNotFoundException.
Is this because IIS is running u...
I need to maintain distributed transactions in my application
Assume Service1 is installed on Server1
[ServiceContract]
IService1
{
[OperationContract]
Operation1();
}
Service2 is installed on Server2
[ServiceContract]
IService2
{
[OperationContract]
Operation2();
}
and the client is consuming the two services
usi...
I have written a WCF service that returns 'semi-private' data concerning peoples name, addresses and phone numbers. By semi-private, I mean that there is a username and
password to access the data, and the data is meant to be secured in transit. However,
IMHO noone is going to expend any energy trying to obtain the data, as it is mostly ...
The problem is simple, finding the answer is not (for me at least).
I'm trying to make a WCF service that queries MapPoints FindAddressResults() and returns the answer which I then fetch with Ajax and Javascript.
The problem however is that now I'm getting a FindResults result from FindAddressResults() and I don't know how to expose th...
I have a C#/WCF application (hosted in windows service) which was deployed and tested on 32 bit Windows server. Now I need to deploy it for production. My network team suggested to deploy it on 64 bit Windows Server to take full advantage of server capabilities.
My questions:
Is there any performance gain in deploying an application ...
By best I mean:
Cheapest development cost (1.1 project is unlikely to live > 6 months)
Easiest migration to WCF or similar
By communicate between I mean:
Remote communication between computers
Most likely no firewall restrictions
With .Net 1.1 the options appear to be: sockets, remoting, and various flavours of web service.
The ...
Hi
I have following data contract class for my WCF Service:
[DataContract(Name = "MyClassDTO")]
public class MyClass
{
private string name = "Default Name";
[DataMember]
public string Name
{
get { return name; }
set { name = value; }
}
}
When I use Visual Studio's Add Service Reference function to...
How to authenticate credentials of the WCF Services while Consuming by client?
...
I have WCF services structured like suggested by Miguel Castro. This means that I have set everything up manually, and have a console application hosting my services using ServiceHost objects.
I want to keep my service classes thin, and they are currently just passing on calls to behavior classes. My problem now is unit testing the ser...
I need to monitor several systems going thru stress testing. I want to make a client-server .NET(C#) application that will ping the systems to check temperature, memory usage etc.
The client will provide system info (cpu-mem-hdd configuration) at start then it will undergo through several benchmark/stress tests. The server will keep tr...
First, I want to thank Matt Davis for this post. I know the post was not chosen as the answer to that specific question, but the post was extremely helpful to me. I had a couple small issues to fix (mostly adjusting the filepaths in the code he provided), but I was easily able to create an unmanaged C++ client for a C# WCF service usin...
We publish a class library that must remain compatible with .NET 2.0. However, we would also like to use this class library internally for WCF-based projects.
Reading e.g. expose-object-from-class-library-using-wcf brings up an approach for using 2.0 class libraries by creating DataContractSurrogate objects to map 2.0 classes. Howev...
I have a WCF based test harness client for a set of web services. The test client allows me to see raw requests and responses going to and from the services. A Message Inspector endpoint behavior is used to "pick off" the raw requests and response messages and save them for later display in the UI.
This works great, except for the use ...