Questions tagged [asmx]

The web service technology from .NET 1.0, now considered a "legacy technology".

The web service technology from .NET 1.0, currently considered a "legacy technology". For new development of web services or web service clients the use of Windows Communication Framework (WCF), ASP.Net Web API or other modern frameworks is recommended.

The ASMX Web Service technology was introduced with .NET 1.0 as "ASP.NET Web Services", and has also been called "XML Web Services". The term "ASMX" refers to the file type of the web service endpoints, such as WebService1.asmx. Note what Microsoft says about their ASMX Forum:

This forum has been retired. It is locked, but is still available for review in the Archived Forums folder. Any future posts on this topic should be put in the Windows Communication Foundation, Serialization, and Networking forum.

ASMX Web Services only support SOAP or JSON over HTTP or HTTPS, and have limited extensibility.

Important ASMX Questions

Other Obsolete Technologies

Web Service Extensions, or WSE were a set of stopgap releases that added to the ASMX technology to permit developers to work with the emerging WS-* standards as they were being developed by the industry. That means you will often find WSE mentioned in conjunction with security. This does not mean that WSE is the solution to security in web services, it means that WSE was that solution until WCF was released. WCF supersedes WSE, which is now obsolete. In fact, WSE is not supported on Windows 2008 or later releases, and is not supported by Visual Studio 2008.

Even more obsolete is the SOAP Toolkit. This was a way to create clients for web services, and worked for old VB or ASP applications. Do not use it.

2830 questions
10
votes
2 answers

Launching aspx SOAP services project in Visual Studio 2013 Causes StackOverflowException

This is a C# web services project in Visual Studio that has existed for a number of years. Today it started throwing an exception upon startup within Visual Studio, but only when the debugger is attached. The exception…
redcalx
  • 8,177
  • 4
  • 56
  • 105
10
votes
2 answers

Any compelling reason to stay on WCF?

I've been trying to create a stable web service application for the last 2-3 months. about 2 months ago I made the choice to move over to WCF to take advantage of the single instanced web services. Since making that move I've had some real…
JL.
  • 78,954
  • 126
  • 311
  • 459
10
votes
5 answers

How do I prevent IIS from compiling website?

I have an ASP .NET web application which on the backend is talking to an ASMX web service. We have counted and the average wait time for the initial request is 20s. I am wondering if there is a way I can send the web service up to the server…
xximjasonxx
  • 1,192
  • 2
  • 11
  • 27
10
votes
1 answer

Should I be using Web API vs Web Methods?

I'm trying to understand web api and some news about web methods. I've heard that we should stop using web methods from a few sources. Additionally, is Web API the successor if web methods should no longer be used?
TreK
  • 1,144
  • 2
  • 13
  • 25
10
votes
2 answers

Calling ASMX Web Service from Javascript

I want to call a webservice from javascript. This is my code: var method="GetStock"; var url = "http://www.mywebsite.ro/ServiceGetStock.asmx"; $.ajax({ type: "POST", url: url + "/GetStock", data:…
POIR
  • 3,110
  • 9
  • 32
  • 48
10
votes
3 answers

What are the benefits of using WCF over ASMX web services?

What are the benefits of using WCF over ASMX web services? Any pointers?
Simon Train
  • 101
  • 1
  • 3
10
votes
4 answers

Is SoapHttpClientProtocol thread safe?

I created a Web Service proxy with the "add web reference" feature of VS 2008 (c#). The generated class derives from SoapHttpClientProtocol Can I store only one instance of my proxy in a singleton? Is it thread safe? Is there state between calls…
10
votes
1 answer

.NET: Output caching for WebMethod?

Can I have the return value of a WebMethod outputcached? E.g. if the WebMethod has been called in the last X seconds or minutes, don't actually run the method again--just use the same result as it last served. Or should I roll my own caching…
Chris
10
votes
2 answers

asmx web service: client authentication

I have a web service with a bunch of methods that I'd like to somewhat secure. The data is not really all that confidential, but I'd still like to restrict access to only those who use a certain user id and password that's stored in the web services…
zSynopsis
  • 4,854
  • 21
  • 69
  • 106
9
votes
2 answers

Response.Write() in WebService

I want to return JSON data back to the client, in my web service method. One way is to create SoapExtension and use it as attribute on my web method, etc. Another way is to simply add [ScriptService] attribute to the web service, and let .NET…
Saeed Neamati
  • 35,341
  • 41
  • 136
  • 188
9
votes
5 answers

Compressing a web service response for jQuery

I'm attempting to gzip a JSON response from an ASMX web service to be consumed on the client-side by jQuery. My web.config already has httpCompression set like so: (I'm using IIS 7)
SirDemon
  • 1,758
  • 15
  • 24
9
votes
5 answers

asp.net webservice handling gzip compressed request

I have an asp.net .asmx webservice written to handle requests from a third party tool. The third party tool makes an http POST request to the webservice to get user information. I'm using IIS7 Running Fiddler with "Remove All Encodings" checked, I…
Geoff
  • 9,340
  • 7
  • 38
  • 48
9
votes
3 answers

WCF service exposed as ASMX won't accept parameters

I have a server/client application developed in Delphi 2006. The client is Win32 and the Server is a .net 1.1 webservice. We are in the process of updateing this project, but it has to be done in small steps. I started with the server and created a…
olve
  • 189
  • 2
  • 13
9
votes
1 answer

.NET Web Service: .asmx?WSDL vs .wsdl

This is probably a stupid question. I don't know anything about Web Service but I have to work on this existing web service. What is the difference between club.asmx?wsdl vs club.wsdl ? I noticed they are similar, but club.wsdl has more stuff in…
Aximili
  • 28,626
  • 56
  • 157
  • 216
9
votes
4 answers

Is there a way to get the raw SOAP request from within a ASP.NET WebMethod?

Example: public class Service1 : System.Web.Services.WebService { [WebMethod] public int Add(int x, int y) { string request = getRawSOAPRequest();//How could you implement this part? //.. do something with complete soap…
Francisco Noriega
  • 13,725
  • 11
  • 47
  • 72