Hello All
I have a WCF Silverlight(3) Http Duplex Service set up in IIS. It works wonderfully until I recycle the ApplicationPool in IIS.
Connected SL clients who then call methods on this duplex service then start to get TimeoutExceptions/CommunicationExceptions from the web service. Increasing the timeouts on the client side does not...
I have a WCF REST service that works from a Windows service (.NET 3.5). To make it easier to build and debug, I would like to run it from a console. When I do this, I am setting up the endpoints in the console app. When I create an endpoint, it fails with this error:
"The contract name 'IRestService' could not be found in the list of ...
I'm trying to get a cross domain call to work using JSONP within JQuery. In IE, the alert method never executed. In FF/Safari/Chrome, it's always null. I looked at Fiddler and the result from the WCF method is as I'm expecting, which is:
method({"Name":"blah1","Data":"blah2"});
Here's my JavaScript:
$.getJSON("http://localhost:560...
How to dispose objects in a Singleton WCF service? I am using Entity Framework (3.5) and returning a bunch of custom POCO objects to the client. The service needs to be alive as it provides cross-client communication and hence Duplex binding is used. I would like dispose all the POCO objects created once they are serialized to the client...
I'm looking for a replacement for Microsoft.SqlServer.Types.SqlGeography that will work in Silverlight. I'm primarily interested in arbitrary collection of data (point, path, or polygon) and the STBuffer, STUnion and STIntersect functionality.
I need to retrieve some geography data from my database via WCF on the middle tier and return ...
Recently I read in an article that the Approach 1 following is more preferred/advantagious than Approach 2, while designing OperationContracts in WCF.
Approach 1
[OperationContract()]
ResponseMessageType SomeOperation1 (RequestMessageType reqMessage);
Approach 2
[OperationContract()]
string SomeOperation2 (string parm1, string parm2...
I have to call a Web service that is extremely demanding (unstandard) regarding the SOAP message format that it chooses to process. I have no control over the server side implementation and there is no WSDL available, all I have is an intercepted message attached bellow.
My first thought was WCF+MessageContract, but whatever I do with t...
I have been asked this question in interview
how does XML and Soap work with WCF ?
can any one explain this?
...
There is an external secure service that I am consuming in my .net class by making a web reference to it and passing it the username token like so:
MyWebService objWS = new MyWebService();
UsernameToken token = new UsernameToken("User","Password", PasswordOption.SendPlainText);
objWS.RequestSoapContext.Security.Timestamp.TtlInSeconds = ...
Changed thread subject * - The issue isn't specific to WCF.
We have some web content that is setup in virtual directories using integrated windows authentication. The virtual directories are running under application pools that are using a custom identity (custom user account). The problem is that NTLM authentication works however Ker...
I have a .Net application split in client and server sides, and the server provides REST services (using WCF). I have services definitions like these:
[WebGet(UriTemplate = "/Customers/{id}")]
Customer GetCustomerById(string id);
[WebGet(UriTemplate = "/Customers")]
List<Customer> GetAllCustomers();
The Customer class and its friend...
Hi,
I have implemented a scenario which uses netTcpBinding and WsHttpBinding with Transport Security(https) as communication binding type in WCF. Then I compared the performance results. Interestingly, netTcpBinding was slower than wsHttpBinding. I have read a a lot of documents about binding performance and I know that the netTcpBindin...
i have a WCF Method that receives array of structs.
the struct contains two strings "Key" and "Value":
public struct mydata
{
public String key;
public String value;
}
[ServiceContract]
public interface IBasicService
{
[OperationContract]
[WebGet(UriTemplate = "ReceiveStructsOfData?myDataArray={???????? WHAT DO I WRITE...
For my thesis I need to measure the performance of Binary Binding vs. basicHttp(Soap) Binding in WCF Services and a Silverlight Client for a specific object.
I already found some example performance data for these bindings.
I wonder how to measure them by myself for a specific object.
Are there any tools which make this process easy o...
WCF supports some interoperability bindings. Does any of these bindings allow to communicate with kernel mode sw?
AFAIK kernel mode sw can open named pipes, in the Local System security context. Are those named pipes interoperable with WCF?
...
Does anyone know of any samples that use the DataTables jquery plugin with a WCF service?
I'm attempting to use a WCF service with the JavaScriptSerializer which unfortunately seems to return dodgy JSON by adding extra backslashes. However the DataTables would seem to provide a way to work around that given that the retrieval of the JS...
Scenario:
WCF Service call routing to COM+ application.
netTCPBinding, throttling set pretty high.
[ServiceBehavior(InstanceContextMode = InstanceContextMode.Single, ConcurrencyMode=ConcurrencyMode.Multiple)]
Service has two methods, one simply returns the string was input, the other calls the COM+ component and FOR TESTING returns ...
At first I had to make 2.0 work with WCF service. I accomplished that using BasicHttpBinding . Since BasicHttpBinding doesn't support Duplex callback, I can't make the server ping the client. Any ideas????
Thanks
...
Given the following service contract:
[ServiceContract]
public interface IMyInterface
{
[OperationContract(Action = "urn:myns:inputaction", ReplyAction = "urn:myns:replyaction")]
Reply Method(Request request);
}
With this message contract (the reply is, as yet, inconsequential):
[MessageContract(Is...
I would like to develop a WPF/WCF client/server app that permits client apps to control a server-side/music-server across a LAN. My hope is for the client/server application to permit:
Clients to subscribe to the server.
Clients to send commands (WS-* protocols) to the server that operate the music-server.
Server to broadcast any musi...