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
7
votes
3 answers

Why can't I expose an interface in a .NET asmx web service?

I have a .NET web service (using asmx...have not upgraded to WCF yet) that exposes the following: public class WidgetVersion1 : IWidget {} public class WidgetVersion2 : IWidget {} When I attempt to bind to the web service, I get the following…
mcliedtk
  • 1,031
  • 1
  • 12
  • 20
7
votes
2 answers

Client IP address in ASP.NET (.asmx) webservices

I am using ASP.NET (.asmx) web services with Silverlight. Since there is no way to find the client IP address in Silverlight, I had to log this on the service end. These are some methods I have…
Zain Shaikh
  • 6,013
  • 6
  • 41
  • 66
7
votes
3 answers

ASMX web service reference how to set equivalent to MaxReceivedMessageSize

Web Service is an ASMX web service (NOT WCF) I am receiving an error The maximum message size quota for incoming messages (65536) has been exceeded. To increase the quota, use the MaxReceivedMessageSize property on the appropriate binding…
Gustavo
  • 685
  • 3
  • 7
  • 17
7
votes
2 answers

Is it possible to change the properties of a WebReference in run-time?

I am trying to come up with such a solution that the user is going to enter the URL of a web-service and it is going to be tested. Although what I want is a URL change, I guarantee the Service Description is always going to be the same (except the…
tafa
  • 7,146
  • 3
  • 36
  • 40
7
votes
2 answers

SOAP Request Fails when parameter is supplied

When i call my Soap ASMX service with the parameter orderid , it fails and says . Any ideas? System.InvalidOperationException: Request format is invalid: text/xml; charset=utf-8. at…
Chief
  • 914
  • 1
  • 9
  • 26
7
votes
3 answers

.NET SOAP Web Service return JSON

I need to prepare a .Net SOAP Web Service which returns JSON format, we have to use those service in iPad & Android. I searched a lot but found only WCF Restful service that return JSON and ASMX SOAP service that return XML. Please help me to…
himanshu
  • 442
  • 2
  • 7
  • 17
7
votes
2 answers

System.InvalidOperationException: The type [XYZ] may not be used in this context. BUG Confirmed

I'm at my wits end on this one. I occasionally get the error above from my .Net 2.0 asmx web service. I've got the proper XmlInclude() in place, and it only appears sometimes - when I rebuild and update the site, it may show up, it may not, no rhyme…
Jerod Venema
  • 44,124
  • 5
  • 66
  • 109
7
votes
1 answer

What is the difference between ashx, asmx, axd + cs(handler), webmethod(in aspx) and async methods in asp.net framework 4.5?

I need to know the technical difference of those files. Which one is the best option? When and why should we use it? I need a human answer, not the MSDN links.
7
votes
2 answers

Can I change a web service reference URL in the Config file?

I have an application targeting the 2.0 .NET framework. The solution is using the VS web service reference folder. A grep through the solution reveals that this URL lives in a handful of files. However in the deployed application a search shows that…
Nick
  • 19,198
  • 51
  • 185
  • 312
7
votes
1 answer

The test form is only available for requests from the local machine

Why is it that for some of my web services, I get test forms, so I can see the generated XML data, but for other web services, I get a message saying "The test form is only available for requests from the local machine."? Both times, I am connecting…
oshirowanen
  • 15,297
  • 82
  • 198
  • 350
7
votes
4 answers

Should i go for WCF or ASMX web service

My website currently working in ASP.NET 1.1 Old Process In our database we have huge amount of data stored for a decoding purpose. We have to update this huge set of data table each week(Data is supplied from a vendor). In our website (in asp.net…
James
  • 2,136
  • 3
  • 23
  • 42
7
votes
3 answers

Describing ASMX web service WebMethod parameters

This seems like a simple question, but I haven't been able to find the answer online via many Google searches. I have a C# web service and, when I visit its ASMX page in the browser, for a particular method it always has the following: "The…
Sarah Vessels
  • 30,930
  • 33
  • 155
  • 222
7
votes
1 answer

WebService behind reverse proxy

I have a web service which is behind a reverse proxy like this: Now what is happening is when I try to add a web reference to test the web service then it says that it is unable to download the wsdl file. That is because when the request is sent it…
Pinu
  • 7,310
  • 16
  • 53
  • 77
7
votes
3 answers

Stream Large File to Web Service

We have a Web service (asmx) that takes a byte array buffer and streams it to an external file service for storage and archiving. It's called by a Windows service that generates fairly small files (3-5M), so creating a byte array that size and…
Jim Stanley
  • 146
  • 1
  • 3
  • 11
7
votes
2 answers

jQuery UI autocomplete update hidden field with value but display label in UI, in conjunction with ASMX

In the snippet below, how can I get the jquery autocomplete plugin to: Update a hidden field with the UserID Update '#MessageTo' with the full name I believe I need to use .result, but I can't figure out the syntax. Please note that I'm using…
Hoppe
  • 6,508
  • 17
  • 60
  • 114