You can do this quite easily by creating an .ashx handler instead of a regular web service, but at this point you are losing a lot of infrastructure around web services, in particular, something that interprets the data coming from the client in a structured way that SOAP gives you.
Here is an example of creating an RSS feed as a raw handler, and here is a more general tutorial . This is not particularly difficult - if this does not help you, do an ashx search and you will get many hits.
I donβt know how easy it is to do this from a web service project, but I did it only from a simple ASP.NET web application project. Perhaps this βjust worksβ - it's worth a try.
source share