I generated a set of web service proxy objects with the .Net 3.5 svcutil.exe tool. The soap body element has 2 extraneous xml namespace alias declarations. Specifically schema and schema instance namespaces ( http://www.w3.org/2001/XMLSchema, http://www.w3.org/2001/XMLSchema-instance ).
For other reasons, the service I'm interacting wit...
I'm currently developing a WCF REST Web Service that will be running on Microsoft Azure. To limit the number of requests per IP address to prevent abuse, I currently store the IP and timeout using the ASP.NET Cache.
This method works great but since muliple VM instances with Azure don't share a single cache, the requests could be split ...
Getting error:
Failed to add a service. Service metadata may not be accessible. Make sure your service is running and exposing metadata.
The service is working fine locally, but after deploying it in production i am getting the error for a single Service others are working fine.
Please Help.
...
Hello,
I'm a beginner in WCF, which I have chosen instead of Web Services because all articles and blogs I've read seem to point out that ASMX is old news.
I have read a bit about the differences between old Web Services and WCF, and I got the general idea. I also took the MSDN WCF tutorial which seemed simple enough.
My problem is th...
Hi, In my old asmx web services I used to have AuthHeader which contains the UserName & password and the AuthHeader is mandatory for every web method request. User will send his username & password using this AuthHeader and I will validate the request with the Username & password.
How can I ahieve the samething with WCF as webservice h...
Hi,
I have a bog standard html page.
All I want to do is :
use JQuery on that page to send JSON requests to a WCF service
retrieve JSON back.
That's it.
I have the html page and JQuery written, no problem.
However, I can't find one tutorial that works. All the ones I've found have many conflicting parts to do with behaviors...
I write WCF service and want to keep it's activity log: trace, warnings and error messages. The very straight-forward approach is to wrap all contract service code inside try/catch sections and write error messages from catch part rethrowing service contract error exceptions.
I suppose it would be nice if there would be one code-point t...
I'm still pretty new to Silverlight, quite new to WCF, and am trying to broaden my horizons into both. I'd like to learn what is considered to be good practices while doing so.
On the client side, I have a Silverlight application. On the server side, I have a database that the Silverlight application will be utilizing. In between the...
Hey, I have a silverlight application that allows the user to modify their username, password, bio etc. This information is stored in a MySQL database and retrieved used a WCF webservice.
I need to sanitize all information received from the user before it gets into the database. At the moment I can't store apostrophes in my DB. Where is...
I am looking at implementing a Web Service API for our product. I have figured out how you go about the general architecture/fault handling within WCF. My question is a more general one of how to design the overall error handling system. For example I have a method called SaveCompany(companyobject). Each company name needs to be uniq...
Hi :)
1) I've noticed that the netTCP binding uses SOAP as the envelope, which I think then it uses SOAP as a message protocol. How could I create my own SOAP message, send it through the netTCP and the other side understand it?
2)Today, our application creates the SOAP envelope from scratch putting the proper namespaces and body eleme...
The examples everywhere show how to do Kerberos Token Profile 1.1 via WCF, however it uses Message security. In fact, the WCF implementation defaults to sign+encrypt. I have a requirement of using SSL, and instead using KTP for authentication and signing, and NOT encrypting.
If I change the mode to TransportWithMessageCredential, it no ...
Hello To All,
I am running a WCF Service as Windows Service.
I am having trouble getting log4net to do any actual logging
In what app.config should I place my configuration code for log4net.
The Service Host app.config the Service app.config or the underlying methods that the Service Calls?
-b
...
I have an WPF application. The problem: need program(daemon, service) that send signals by network to my wpf application and fires some events in real time. Need recomendations how to write this service.
...
I'm writing a .net WCF service. I've written a few classes that I want to return to the calling code from the WCF service; hence, I decorate them with the DataContract attribute.
Let's suppose that my WCF service is called FooService. It contains a method called FooMethod which returns an object of type FooData (which is decorated wit...
I need presentation layer in silverlight, asp.net etc , so everything is through wcf services.
I have number of doubts in my implementation of repository layer, service layer, wcf services
things i currently do
I have repository , its not per table its created per aggregate root
I have service layer its for doing a group of actions in...
I am aware of formatted DataContract names, as described here: http://msdn.microsoft.com/en-us/library/ms731045.aspx (Customizing Data Contract Names for Generic Types near the bottom).
Example:
[DataContract( Name = "SearchCriteriaFor{0}", Namespace = "http://schema.mycompany.com/MyProject/" )]
public class SearchCriteria<T> { ...
...
I'm trying to config a WCF service for Silverlight to use either http or https and it works fine with IIS, but not the web server built into Visual Studio (Cassini). The services section of web.config system.serviceModel is:
<services>
<service behaviorConfiguration="RhymeDotBehavior" name="RhymeDot.Service.Root">
<endpoint name="Rh...
I have a WCF service (.NET 4) hosted in IIS. My service contract has one method with:
[FaultContract(typeof(string))]
My service implementation for that method validates input parameters and may throw an exception like this:
if (string.IsNullOrWhiteSpace(siteName)) { throw new FaultException("siteName is required."); }
The consumer...
If I am creating web applications using ASP.NET and Silverlight is nowhere in the future and there's no need to expose data to third party services (eg, no oData needed), are there any advantages of using WCF Data Services over the traditional ADO.NET methods we've been using over the years?
...