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
1
vote
1 answer

error while calling asmx file through jquery

When i am trying to access the services in the same solution the webservice is returning me the result. But when i upload this webservice and trying to access then is giving the error. var _postData =…
Billy
  • 13
  • 1
  • 6
1
vote
3 answers

c# .net access raw json request in asmx service

I am trying to setup a simple proxy server that we post the data to my proxy server. The proxy server will take the posted data forward it on to the actual server and get the response from the actual server. Then display the response on the proxy…
David Corrado
  • 363
  • 3
  • 19
1
vote
0 answers

All asmx web services stop working with a port in the url

We have some asmx webservices that are hosted on a local server e.g http:// 192. 168.180. 102/webservice.asmx However when these are hosted in IIS with another a port or alias e.g http:// 192. 168.180. 102:8000/webservice.asmx or…
User101
  • 748
  • 2
  • 10
  • 29
1
vote
0 answers

How do I get C# syntax highlighting in Visual Studio 2010 for an asmx file with no code-behind?

Needing to have a quickly deployable .asmx web service, I followed the instructions for the question How do I create an ASMX web service page without a code behind file , but found myself without syntax highlighting or Intellisense. How can I enable…
1
vote
2 answers

Receive requests with a .asmx file or a .aspx file?

I'm setting up my site to receive info from people via text message. The way it works is they text a number, that service then sends an HTTP POST to a url I specify. I've heard that .asmx files are better than .aspx files because they don't go…
Jason
  • 51,583
  • 38
  • 133
  • 185
1
vote
4 answers

Can I Create a Web Service that has Properties?

I'm trying to test code around a web service that is not available yet. I'm trying to dummy up my own version. According to the specs it will be called like this. var service = new Service(); service.SD = new ServiceData(); service.SD.ID =…
RipleyB
1
vote
4 answers

Handle ASP.NET web service method exit

Say I have a web service that works with a database. Each method opens the database, and then of course closes it on exit. Is there any method to move the open/close code outside the web method itself? Something like OnBeforeWebMethodCalled /…
queen3
  • 15,333
  • 8
  • 64
  • 119
1
vote
1 answer

JavaScriptSerializer: Any way to send unescaped data?

I wrote a .ToJson() extension method like so: public static string ToJson(this object obj) { JavaScriptSerializer serializer = new JavaScriptSerializer(); return serializer.Serialize(obj); } This allows me to do something like…
Jason
  • 51,583
  • 38
  • 133
  • 185
1
vote
0 answers

Access to web service over ISA, SSL

I try to access asmx web service that hosted on IIS behind ISA server and authentication is held by ISA server using certificate (User Certificate => [https] => ISA => Authentication [http] => Web Service). How to invoke service methods using C#…
Max Kilovatiy
  • 798
  • 1
  • 11
  • 32
1
vote
5 answers

how to create a singleton asmx service

how can i create an singleton asmx webservice ? (please don't say use WCF and WWF :D )
Hannoun Yassir
  • 20,583
  • 23
  • 77
  • 112
1
vote
2 answers

How to accept a SoapException on the client side

I was getting the dreaded "client found response content type of "text/html" but expected "test/xml" error, but after some googling I found this post about how to return a SoapException. So I went ahead and implemented that, but now I'm still…
ganders
  • 7,285
  • 17
  • 66
  • 114
1
vote
1 answer

Calling .NET 3.5+ ASMX web service or WCF service from .NET 2.0 CF

I'm working on project for old PDAs that run on the .NET 2.0 CF (compact framework). Right now we are using .NET 2.0 ASMX web services, but I find that severely limiting. It is missing all sorts of things like extension methods, funcs, actions,…
Jeff B
  • 8,572
  • 17
  • 61
  • 140
1
vote
1 answer

New IIS 7.5 Installation On Windows 7 Generates Error 500 Without Logging Details When Posting ASMX Request

On my new(ish) Windows 7 x64 development laptop on which I've just installed IIS, I'm trying to run an .asmx web service compiled with .NET 4.0 and installed with an MSI from a setup project. But whenever I try to execute the service, either from…
ALEXintlsos
  • 1,809
  • 4
  • 17
  • 17
1
vote
2 answers

ASP.NET alter SOAP body

I have a web service in .NET which takes an array as input. The Request of the service is seens as string string
Shivaram
  • 41
  • 5
1
vote
1 answer

How to restrict webservice access to public user in asp.net

I have web service page(webservice.asmx) being consumed javascript call and I want to restrict public request to this webservice other than request from local pages that is aspx or from javscript. The web service checks for form-authentication…