Good Day Everyone...
My understanding may be wrong, but I thought once you applied the correct attributes the DataContractSerializer would render fully-qualified instances back to the caller.
The code runs and the objects return. But oddly enough, once I look at the returned objects I noticed the namespacing disappeared and the object-...
I have a bunch of self-hosted WCF services. Everything's working fine but I'm look for ways to normalize/simplify the resultant config. I've simplified it as much as possible, but I'm still not happy. Currently, my config looks like this:
<system.serviceModel>
<bindings>
<netTcpBinding>
<binding name="BindingConf...
I'm setting up a net.tcp WCF service using instructions here: http://blogs.msdn.com/swiss_dpe_team/archive/2008/02/08/iis-7-support-for-non-http-protocols.aspx
One of the steps says to do the following: "If you open the IIS7 management console and you look at the advance setting of our IIS7HostedService Web Application, you will see tha...
I'm looking at WCF documentation in the MSDN (http://msdn.microsoft.com/en-us/library/bb332338.aspx), and have come across this wee piece of config:
<endpoint name="basicHttpBinding"
address=""
binding="basicHttpBinding"
contract="QuickReturns.StockTrading.ExchangeService.?
Contracts.ITradeService"/>
Can anyone tel...
Hey
I'm trying to connect to my Wcf service which is configured using castles wcf facility.
When I go to the service in a browser i get:
Metadata publishing for this service is currently disabled.
Which lists a load of instructions which i cant do because the configuration isnt in the web.config.
when I try to connect using VS/add...
The title says it all. Am I exposing my service to a buffer overflow attack? If so how would you defend against this?
...
We've got the following WCF Service Contracts:
[ServiceContract(Namespace = "http://example.com", Name = "Service1")]
public interface IService1
{
[OperationContract]
[FaultContract(typeof(Fault1))]
ValidateUserResult ValidateUser(
string username,
string password);
}
[ServiceC...
I recently created a WCF service that works fine when tested from Visual Studio 2008. but when I deploy the project to IIS and I try to access the .svc file from IIS, I get this error :
"Server Error in '/' Application.The resource cannot be found. "
I've been having this issue for the past 4 days .
in the Handler Mappings of IIS Ma...
In my specific case: A WCF connection is established, but the only method with "IsInitiating=true" (the login method) is never called. What happens?
In case the connection is closed due to inactivity after some time: Which setting configures this timeout? Is there still a way for a client to keep the connection alive?
Reason for this q...
I've got a WCF service that offers a Login method. A client is required to call this method (due to it being the only IsInitiating=true). This method should return a string that describes the success of the call in any case. If the login failed, the connection should be closed.
The issue is with the timing of the close. I'd like to send...
I have a WCF service that takes text a customer enters and passes it to a windows service. I am using jQuery to send the text to the WCF service (in json). Before passing the data I call $.trim() on the text. Today i received text with a null character in it that looked like this:
00-15-5D-0A-0B-01\0
If I go back and test, and send...
Is there a way to see the messages that RIA services/clients send?
...
I have a List which is populated with objects of various concrete types which subclass BaseType
I am using the WCF DataContractSerializer
<Children>
<BaseType xmlns:d3p1="http://schemas.datacontract.org/2004/07/Tasks"
i:type="d3p1:ConcreteTypeA"></BaseType>
<BaseType xmlns:d3p1="http://schemas.datacontract.org/200...
Hi all. When I went to University, teachers used to say that in good structured application you have presentation layer, business layer and data layer. This is what I heard for more than 5 years.
When I started working I discovered that this is true but sometimes is better to have more than just three layers. Two or three days ago I dis...
I've been playing around with WCF peer to peer, one way operation contract and callbacks.
I have a following service:
[ServiceContract(CallbackContract = typeof(ICodeFoundCallback))]
public interface ICodeSearch
{
[OperationContract(IsOneWay = true)]
void Search(string searchQuery);
}
public interface ICodeFoundCallback
{
...
I am a WCF / Security Newb. I have created a WCF service which is hosted via a windows service. The WCF service grabs data from a 3rd party data source that is secured via windows authentication. I need to either:
Pass the client's privileges through the windows service, through the WCF service and into the 3rd party data source, or...
Is it possible to create a WCF service (web service) that only accepts a single connection at any one time with all other calls either queued or rejected.
Need to implement the competitive consumer pattern where there are a number of clients which could deal with task at hand but when a client askes for more work a task must go to only ...
When invoking a WCF service asynchronous there seems to be two ways it can be done.
1.
WcfClient _client = new WcfClient();
public void One()
{
_client.BegindoSearch("input", ResultOne, null);
}
private void ResultOne(IAsyncResult ar)
{
string data = _client.EnddoSearch(ar);
}
2.
public void Two()
{
WcfClient client...
Is there a way to use the same username and password from the membership provider for a WCF service authentication? if so, which binding does it supports? I need to extract a profile variable from the user currently calling the service. Thanks for any help.
...
Im trying to build an API using WCF and .Net 4, however when I throw the WebProtocolException, it is not displaying a nice error message like it should, instead it is treating it like an unhandled exception.
I am using the WebServiceHost2Factory.
Has anyone else used WebProtocolException with .net 4?
An example of my call is below
th...