I created a separate web service project using VS 2005.
My first question is can I add more than 1 service (asmx) files
and use them in single webservice project?
How can I publish them and use/call/consume them from different websites?
(I know how to use them when they are in same project but different
project is bit confusing)...
Hello,
I have a web service that uses WCF. This web service has a single method that I want to be accessible from two different types of clients. The first type of client is a Silverlight application. The second type of client is a AJAX application that relies on JQuery. Is it possible to write the method once such that both types of cl...
When I enable trace, e.g.:
How badly this affects application performance?
...
Following on from this question, would it be a wise idea to place a WCF service at the server side, between client and database to handle queries?
The idea being that you take load of the network and reduce round trips to and from a database.
I would use the Entity Framework to query the database in the service, and just send results t...
We have a few thousand Windows XP client machines on various customer sites that are all running some interactive software which is instrumented to collect anonymous usage data. The client machines use some old, old, old client-server software that uploads the data to an internet-based server, pushes configuration info back down to them ...
I'm looking for the best approach to share types (the actual classes, not proxies) between a WCF service and a client. To that end, I defined the classes in a separate assembly that both service and client reference. I selected "Reuse types in all referenced assemblies" when generating the service reference in the client, but Reference...
I have a project that I am experimenting with DI in. I am using Unity and things seem to work well for normal assemblies and the injections.
I am trying to further break dependencies with WCF services. The WCF service that I want to inject is created at runtime currently without using DI and I don't use the VS .net generated proxies:
...
How can I make a sessionful wcf service for Silverlight clients? What binding can I use?
...
I am using an example from iDesign about one way calls. I can get it to work on a Vista machine (VS2008) but not on a windows 7 machine (VS2010).
I get this error:
HTTP could not register URL http://+:8001/MyService/. Your process does not have access rights to this namespace
ServiceHost host = new ServiceHost(typeof(MyService));
host...
I'm using a ClientAccessPolicy.xml file that I think allows pretty much all access to my WCF service:
<?xml version=""1.0"" encoding=""utf-8""?>
<access-policy>
<cross-domain-access>
<policy>
<allow-from http-request-headers=""*"">
<domain uri=""*""/>
</allow-fr...
Hi, I am new to HTTP Post and encounter an strange issue. I have a request object defined as below:
[DataContract(Namespace = "http://Test.com/WCF")]
public class Request
{
[DataMember]
public string CardNumber { get; set; }
[DataMember]
public string CardExpDate { get; set; }
[DataMember]...
I could run a Windows Service hosted WCF service listening http://localhost:80/MyService while IIS was serving pages on http://localhost:80 and both works.
But many places in the internet (like this and this) say that only a single process can listen each port simultaneoulsy.
Are they wrong?
...
I'm using certificates to secure my communications between client and server (no code, just endpoint configuration). Certificates are currently stored in ACOS5 smart cards. Everything works very well except that every time when WCF creates a new channel to access the server, the ACOS5 driver asks user to enter “User PIN”. Unfortunately, ...
I have a WCF Service. It uses Linq-to-objects to select from a Dictionary. The object type is simple:
public class User
{
public Guid Id;
public String Name;
}
There is a collection of stored in a Dictionary<Guid,User>.
I want to have a WCF OperationContract method like this:
public IEnumerable<Guid> GetAllUsers()
{
...
When you create a Silverlight enabled WCF service, the following line is placed in the source file -
[AspNetCompatibilityRequirements(RequirementsMode =
AspNetCompatibilityRequirementsMode.Allowed)]
What does it do? The online help didn't make a lot of sense to me.
...
I have something I want to initialise and use throughout a WCF Service Library. If it was in an ASP.NET site I'd be doing it in the Application_Start method of the global.asax, but what's the equivalent for a WCF Service Library?
...
Our company currently has a web site which is deployed in Windows 2000 OS, which means that we could only install .NET 2.0 on that machine. Upgrading the Webserver OS is out of the question, since this web server also hosts other web applications in our country. As also part of our IT's policy, for security reasons the web sites are not ...
I have a WCF service that has a method to return the Windows Username of a Silverlight client that is consuming the service . The WCF service is using basicHttpBinding with the TransportCredentialOnly mode set and the TransportClientCredentialType set to Windows. In IIS Windows authentication is enabled and anon authentication disabled.
...
Hi,
I have a problem that googling couldn't solve it.
I have a REST WCF service that will be called from a form like this and upload a very small plain text file:
<form action="http://www.server.com/myService.svc/Upload" encType="multipart/form-data" method="POST">
SERIALID <input type="text" size="20" name="SERIALID" value=""><br...
Why does the ServiceBehavior attribute needs to be implemented on classes and not interfaces? Is there a way to make it global for all WCF services? Is there a way to specific the ServiceBehavior in the web.config file? I would like to have all of my WCF services to implement the InstanceContextMode == PerCall.
Thank You,
...