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
8
votes
5 answers

ASMX file upload

Is there a way to upload a file from local filesystem to a folder in a server using ASMX web services(no WCF, don't ask why:)? UPD P.S.file size can be 2-10 GB
2xMax
  • 1,639
  • 6
  • 21
  • 41
8
votes
2 answers

How to increase the POST size for an ASMX web service?

Background I am developing an ASP.Net server side control that needs to talk to an ASMX web service. The server side control uses a WebClient object to talk to the web service, since it needs to be reused often in various application, and to make it…
BinaryMisfit
  • 29,219
  • 2
  • 37
  • 44
8
votes
1 answer

NetworkCredential UseDefaultCredentials not working

We wrote a code long back to call a service with domain credentials. Now domains are changed and planning to use default Windows Account So I am trying to reset Network credentials for a asmx webservice via config. I created a SoapExtentsion class…
Billa
  • 5,226
  • 23
  • 61
  • 105
8
votes
2 answers

Calling ASP.NET ASMX Web Service from jQuery

I am trying to call an ASMX from jQuery using JSON and get a SOAP error response. What am I doing wrong?! This is my jQuery call: $.ajax({ type: "POST", url: '/Services/TeamPerson.asmx', contentType:…
Mark Richman
  • 28,948
  • 25
  • 99
  • 159
8
votes
5 answers

Returning JSON from ASMX, and handling it correctly in Javascript

I realize there are tonnes of similar questions already up here but I cannot figure this one out. I have a Web Service (C#, .net 3.5). The essential Code you need to know of is as follows: [WebService(Namespace =…
collumbo
  • 517
  • 3
  • 6
  • 22
8
votes
3 answers

ASP.NET WebMethod Returns JSON wrapped in quotes

I have an asp.net page with a WebMethod on it to pass JSON back to my javascript. Bellow is the web method: [WebMethod] public static string getData(Dictionary d) { string response = "{ \"firstname\": \"John\", \"lastname\":…
Mark Clancy
  • 7,831
  • 8
  • 43
  • 49
8
votes
1 answer

What is the difference between SOAP and ASMX

It sounded an easy for me to know this, but when I googled about it, I couldn't find the exact relationship between SOAP webservices and ASMX webservice. Are they one and the same? Is asmx an implementation of SOAP among others? Here is why this is…
user1019042
  • 2,428
  • 9
  • 43
  • 85
8
votes
5 answers

Do standard webservices (asmx) work with MVC?

I have just tried adding a WebService (asmx based) from a WebForms project to a new MVC project. I cant seem to get to the asmx webservice in IE? In MVC should this work the same, I have the service in a Services folder, should this be in a View or…
Mark Redman
  • 24,079
  • 20
  • 92
  • 147
8
votes
4 answers

What are these extra parameters in my ASMX Proxy Methods?

If I add a web reference from a .NET 1.1 client to a WCF service, the proxy methods generated at the client contain an extra parameter ending with the suffix 'Specified' for each service method parameter, e.g. [OperationContract] string…
stovroz
  • 6,835
  • 2
  • 48
  • 59
8
votes
5 answers

First call to a .net webservice is slow

I'm calling a .net webservice from my .net winforms app, both in framework 4.0. During the execution of the program, the first time the webservice has a method called, the call takes ~10-12 seconds. Subsequent calls take ~1-2 seconds. Subsequent…
Brian M.
  • 826
  • 1
  • 8
  • 16
8
votes
4 answers

Slow web service (and WCF service) calls from Windows 7

I am building a .NET 3.5 Winforms app that uses WCF services (wsHttp binding) to communicate to my server which gets data from SQL Server and passes it back to the Winforms app (Smart Client). I noticed since running Windows 7 RTM there is about a…
Neal
  • 9,487
  • 15
  • 58
  • 101
8
votes
4 answers

Prevent generation of proxy classes in Reference.cs when adding/updating a web reference

I have a web service and a client. The classes used in parameters and return types are in a common DLL shared by both. However, whenever I update the web reference, visual studio generates copies of the classes with the same names and public…
stannius
  • 1,260
  • 3
  • 16
  • 33
8
votes
1 answer

Is it possible to use async/await in webmethod asmx service

I am trying to figured it out, but have no success for now. Is it possible to use async/await in webmethod asmx service ? What I found till now is that async/await can be used only in WCF service method (rest or whatever).
Nikola Yankov
  • 1,264
  • 1
  • 15
  • 28
7
votes
1 answer

Web services: method cannot be reflected exception

When trying to create an instance of a service, I'm getting a "Method cannot be reflected" exception. Digging deeper down in the inner exceptions reveals: "Types 'WebServiceClient.com.compamy.string1' and 'WebServiceClient.com.company.string'…
Krumelur
  • 32,180
  • 27
  • 124
  • 263
7
votes
2 answers

Maintain Session While Calling an ASMX Web Service

I am using a client app to connect to a web service for authenticated user only. Here is simplest example: My web service code: public class TestService : System.Web.Services.WebService { [WebMethod(EnableSession = true)] public string…
huynhtuanh
  • 327
  • 1
  • 5
  • 17