How can I detect the user agent in a web service? My web service is implemented using a WCF webservice with basicHTTPBinding. It will be a post from some SOAP clients. I wish to know the user-agent from the clients.
I shall like to see some sample code for this.
I am using a WCF based web service and in the svc.cs, I tried to catch thi...
I have several RESTful endpoints like such:
System.Security.Role.svc
System.Security.User.svc
etc.
This is meant to be a namespace so our RESTful URL's would look like:
/rest/{class namespace}/{actions}
I have tried a few examples to get the SVC extension removed when my endpoint has multiple periods in it, however, nothing seems t...
I've been using PrincipalPermission for a while in wcf services.
[PrincipalPermission(SecurityAction.Demand, Role = SecurityRoles.CanManageUsers)]
although now i have a requirement to simplify roles by business unit.
- currently aspnet_roles has fine grained can* permissions.
Here is my approach and wanted to see if anyone can provide ...
I am new to WCF and WCF derived services.
I am using VS 2010, silverlight 4, ria services 4.
Recently I created plain WCF REST services (no RIA, no SOAP) with my endpoint (using wsHttpBinging):
<endpoint address="" behaviorConfiguration="wsBehavior" binding="wsHttpBinding" bindingConfiguration="wsbinding" contract="WcfSer...
What's the best way to create a real-time communication with wcf? I.e. for games, I need a way that when a remote user press the left arrow key on his keyboard, an object in the server moves accordingly.
I think I should use WCF, is that the right option?
thanks!
...
I have a RESTful WCF 3.5 endpoint as such:
System.Security.User.svc
This is supposed to represent the namespace of the User class and is desired behavior by our client.
I have another endpoint I created for testing called:
Echo.svc
I am writing an overridden IHttpModule and in my module, I follow what almost everyone does by doing...
I have a WAS hosted set of services configured to use net.tcp running under an IIS AppPool user account. When hosting the services with WAS I have a hard time getting any diagnostic tracing out of them to track down problems. The same services with tracing set to use i.e. c:\logs\trace.svclog as trace output works fine when using self-ho...
I understand you can choose from a range of bindings, such as TCP, HTTP, HTTPS etc.
Am I correct in thinking it always uses SOAP to send data over this connection? I am watching a guide to WCF and it is talking about how exceptions are serialized into SOAP and sent to the client. I would have thought that not all bindings would use SOAP...
I have a WCF service that is running as a windows service. As soon as the WCF service starts it will try to connect to the DB and do some initialization processing.
I'm having an issue when I restart my machine (the wcf service is set to start automatically), the service would get an exception as too sql is busy. So it seems like the s...
I'm trying to push a subset of a collection of data through WCF to be consumed by WCF - think paged data. As such, I want this collection to have one page's worth of data as well as a total number of results. I figured this should be trivial by creating a custom object that extends List. However, everything I do results in my TotalNumber...
I have a server application that spins up and monitors about 8 separate processes that gather data from different systems. The server app then runs some calculations over the aggregated data and stores it in a db. Simple stuff.
I now have a requirement to modify the process so that it no longer saves data to the db but rather exposes it...
I'm hosting a WCF service inside a winform app. I want to monitor when somebody calls the service to a textbox on the form like:
2:23 Method X called params(x, y)
2:24 Method Y called params(z)
I am using a service host for WCF and inside my concrete class I have created some delegates and events. I just cant seem to wire the events up...
Hello,
I need your suggestions in solving this issue. Here is the requirement.
We have a Microsoft Exchange server and we have a service email account [email protected].
We have scanners all owner the company when a user scans a document and email is sent to [email protected] as attachment.
Now I need to write a Windows service which...
Hi there,
I am having some troubles trying to allow my WCF service to process a larger string. I keep getting the following error.
The maximum string content length quota (8192) has been exceeded while reading XML data. This quota may be increased by changing the MaxStringContentLength property on the XmlDictionaryReaderQuotas object u...
I am not able to open the meta data url - http://localhost:8082/Tasks/mex
I have added the mexhttpBinding in the config file. Can I see this mex endpoint in browser?
The config files look like:
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
Questions:
Is Mex is differ from WSDL? If no, why do we r...
I have developed a WCF service in .Net and its Consumed as a window service. This WCF has binded with net.TCP binding from a ASP.net Website. this Website hosted with SSL certificate.
I have Called Authorize.net CIM webserice from this WCF with Httpsbinding. This throwing exception as "could not establish trust relationship for the SSL...
Hi everybody,
I have a WCF service like this:
[ServiceContract( SessionMode=SessionMode.Required)]
public interface IService
{
[OperationContract(IsInitiating = true, IsTerminating = false)]
void login(string id);
[OperationContract(IsInitiating = false, IsTerminating = false)]
string getdata();
}
public class Servic...
Hi!
I'm programming a WCF service that internally relies heavily on Inversion of Control. I would like to bootstrap / initialize my IoC container inside a custom ServiceHostFactory. I've read some examples of different hooks that are available, but none of them seem to work for me.
This approach is the one I'd prefer to use (custom ISe...
The communication object, System.ServiceModel.Channels.ServiceChannel,
cannot be used for communication because it is in the Faulted state.
what is the error over here. why i get this error..
pls help me out..
...
Hi there,
I've created a ComVisible assembly to be used in a classic-asp application. The assembly should act as a wcf client and connect to a wcf service host (inside a windows service) on the same machine using named pipes. The wcf service host works fine with other clients, so the problem must be within this assembly.
In order to ge...