I have a mvc controller class that uses a WCF service(WSHttpBinding), sometimes multiple calls within one http request, and want to know how expensive it is to create a client for that service. Is it ok to create an instance of the client for every call or should I create a member variable in the class?
public class RingbacksController...
I have a WCF service hosted in IIS7 (the service and client configuration is at the end of this post). I have run across an odd scenario that I was hoping someone might have some ideas about how to attack it and find a solution.
The service only exposes one contract, 'ProcessMessage'. I can send/receive synchronous messages from the se...
I use this code to authenticate to my WCF Service:
proxy.ClientCredentials.UserName.UserName = "test";
proxy.ClientCredentials.UserName.Password = "pass";
Is there any way to access this information from within a method of my WCF Service code? (I'm not interested in the password used, more the username for audit purposes.)
I'm trying...
I have generated a WCF service interface from a delivered WSDL schema, this interface have then been implemented in one of my WCF services without any problems.
[ServiceBehavior(Name = "HL7Service", Namespace = "urn:hl7-org:v3")]
[ServiceContract(Namespace = "urn:hl7-org:v3", Name = "HL7Service", SessionMode = SessionMode.Allowed)]
publ...
I have a web service that receives data in XML. I wish this XML to be encrypted before it is sent and have the serializer handle the decryption. This would let the service methods receive the objects as normal with the encryption detail hidden from them.
I have looked at IOperationBehaviour and inheriting from DataContractSerializerOp...
Hi everyone
Is NetTCPBinding supporting Callbacks? If so, please redirect me to any appropriate example. Thanks
...
I've recently started on a project to build out a RESTful API in WCF, and I'm going to need to expose documentation along with the API itself. I was hoping to leverage the XML code comments in my docs for this documentation.
But what I want to output is just the contracts that are exposed by the service: the endpoints and the JSON/XML o...
I've made a copy of my production website for staging purposes. My Silverlight app is served on port 81, and tries to access a WCF service via SSL on port 2443. I've verified that the service is reachable by typing in the URL:
https://mydomain.com:2443/UtilService.svc -- I get the "you have created a service" page.
But when my SL app ...
I've got a WCF service on a server on one side of a firewall. I need to access the service from many workstations on the other side of the firewall. The network guys insist that all holes through the firewall are one-to-one so at the mo, I'll have to set up every workstation one by one. There could be loads and it'll get tedious and b...
I'm new to creating WCF REST services - so please let me kwow if I'm doing things wrong here.
I have a REST-based service developed using WCF, with the following DataContract defined:
namespace Messaging
{
[DataContract(Name = "Email", Namespace = "")]
public class Email
{
#region Fields
private string s...
I try to do something really simple in theory : deserialize a string to a Message, here is the code :
[TestMethod]
public void EncoderErrorTest()
{
var message = "<s:Envelope xmlns:s=\"http://www.w3.org/2003/05/soap-envelope\" xmlns:a=\"http://www.w3.org/2005/08/addressing\"><s:Header><a:Action s:mustUnderstand=\"1\">htt...
Hello,
I'm trying to cache some application data that only needs to be instantiated when the application starts. I've tried using HttpRuntime.Cache, creating a static object that is instantiated only when the service starts, and I've tried making the service singleton and using global variables. Every time a new request hits the servic...
On my work computer, debugging in Visual Studio 2008 (SP1) seems to work somewhat different from what I'm used to. I have two problems that might or might not be related.
First problem:
When I'm running a web application in debug mode, and an unhandled exception occurs, I get a Yellow Screen of Death immediately. Normally my code just ...
Hi,
I'm developing a WCF service and if there is an error I want to serialize the incoming parameter from the original method that was called on the service. I am using IErrorHandler to catch all exceptions.
My initial thoughts were that I will store the serialized parameter in OperationContext.IncomingMessageProperties so that I can ...
I'm trying to serve up Excel documents that I have stored in a database via a WCF RSS feed (the user clicks a link in the feed and it sends down a specific Excel document).
The Excel files aren't sitting in a directory any where (in which case I could just give each user a static URL).
So what I'd like to do is have a dynamically ge...
I'm creating a transport binding in WCF, and I've seen that outgoing messages of my output channel don't have the To header set (WS-Addressing).
I don't really want to add yet another responsability to my transport channel. Do you know a behavior or binding which takes care of that for me ?
...
I have a few wcf services created a number of ways.
all of them only display the directory listing when i browse to them.
(I fixed the part about authentication)
Also I have very nice mex settings for all of them as well.
it seems to me that there should be a file in the service location to browse to?
its especially annoying that I ...
I am working on a Windows forms application where I would like to queue operations for a windows service to accomplish in the background. I was reviewing using WCF for this purpose and it seems to fit the bill, although I am unsure how to implement a queue for these sort of operations.
What I envision on the client side (the forms appl...
Has anyone got any experience with Web Service Extensions? Been a late day and have spent the past few hours scratching my head trying to make a web service extension from the MS examples.
I have an .net 3.5 web service client, built by adding a reference to the wsdl, via the VS IDE "Project > Add Service Reference". This built my web...
Hello,
I am currently working on a silverlight application, more precisely a game, that has 2 states : Lobby and Game.
I created my service application to reflect that structure. I created a LobbyService to handle all lobby related operations and a GameService to handle all actual game operations. On top of that, I have a third service...