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
6
votes
2 answers

ASMX Web Service - "This web service is using http://tempuri.org/ as its default namespace." message - but it shouldn't be

I've created a web service using Visual Studio ( 2005 - I know I'm old school ) and it all compiles fine but when it opens I get warned thus: This web service does not conform to WS-I Basic Profile v1.1. And furthermore: This web service is using…
glenatron
  • 11,018
  • 13
  • 64
  • 112
6
votes
1 answer

WCF Service instead of ASMX Web Service?

I'm writing a SOAP Server that will act as an endpoint for an external client. The external client expects SOAP 1.1. I'll be taking embedded business objects in the SOAP messages and passing them to an internal application, getting responses back…
wchrisjohnson
  • 190
  • 12
6
votes
4 answers

The file 'blahblah.aspx' has not been pre-compiled, and cannot be requested

Yes I know, this question has been asked loads of times already. But this isn't quite the same. Actually I think the error message is accurate! Normally when you view a published ASPX file, you just see "This is a marker file generated by the…
CompanyDroneFromSector7G
  • 4,291
  • 13
  • 54
  • 97
6
votes
3 answers

ASMX: What should tempuri.org be replaced with?

Every new web service you create using visual studio comes with a predefined namespace like this: [WebService(Namespace = "http://tempuri.org/")] My web service will run at different clients, and on different domains, so because of this I don't…
JL.
  • 78,954
  • 126
  • 311
  • 459
6
votes
1 answer

Share object instance between web service invocations

I have an object that has relatively high initialization cost that provides a thread-safe calculation method needed to process web service requests. I'm looking for the best way to keep an initialized instance available between requests. One method…
Eric J.
  • 147,927
  • 63
  • 340
  • 553
6
votes
10 answers

ASP.NET Web Method that accepts a List is failing with "Web Service method name is not valid."

I want to create a web method that accepts a List of custom objects (passed in via jQuery/JSON). When I run the website locally everything seems to work. jQuery and ASP.NET and everyone is happy. But when I put it on one of our servers it blows…
Bara
  • 1,113
  • 6
  • 18
  • 28
6
votes
1 answer

Importing ASMX Web Service metadata to WCF Endpoint

I am interested in impersonating well-known Web Services and Wcf Services for integration test purposes. To this end, I would like to capture service metadata, auto-generate service stubs, and host service stubs in a self-hosted…
johnny g
  • 3,533
  • 1
  • 25
  • 40
6
votes
1 answer

Invoking a web service - asmx - through a Microsoft Web API end point?

I am using Microsoft ASP.NET Web API 2 and one of my end points has to internally invoke a legacy asmx web service. Is this the correct way? ................................................... WebRequest req =…
Sartorial
  • 173
  • 1
  • 8
6
votes
3 answers

Advantages of Name Value Pairs to SOAP/WSDL

I see APIs such as PayPal, etc. offering to call their services using NVP or SOAP/WSDL. When using a .NET environment (3.5) using traditional web services (no WCF) which is better and why? I know WSDL lets you drop in the API URL and it generates…
PositiveGuy
  • 46,620
  • 110
  • 305
  • 471
6
votes
3 answers

SSAS with Kerberos delegation gets connection timeout error

I have a situation where clients connecting to my webservice(that exists on another server) must access SQL Server databases and SSAS servers. It must use the credentials of the client that is calling the service when accessing the SQL Servers and…
TheWommies
  • 4,922
  • 11
  • 61
  • 79
6
votes
1 answer

The methods xx and yy use the same SOAPAction

We are trying to create a mock service for a web service for testing purposes. To do this we run wsdl.exe to create an interface and then create an asmx web service based on that interface. We have done this several times over the last years without…
Shiraz Bhaiji
  • 64,065
  • 34
  • 143
  • 252
6
votes
2 answers

Benefits to switching from classic asmx to wcf

Recently I made the switch from using asmx web services to using wcf services, the transition is nearly finished, but I know I'm in for a lot of error checking and testing to make sure everything ported as expected. My question is - so far I can…
JL.
  • 78,954
  • 126
  • 311
  • 459
6
votes
2 answers

How to call an ASMX web service via GET?

I have a webservice defined here: /app/AutocompleteManager.asmx [WebMethod] public string AutocompleteComposers() { return "hey, what's up"; } I want to call it using the GET method with extra parameters. If I just go…
marcgg
  • 65,020
  • 52
  • 178
  • 231
6
votes
1 answer

Host ASP.Net web api and consume from another MVC application

I am new to ASP.Net MVC and ASP.Net web api. I have worked on Web services and cosuming them. But I am not sure how to host ASP.Net web api and consume the same from another ASP.Net MVC application. I found some samples where people are using the…
Naresh
  • 2,667
  • 13
  • 44
  • 69
6
votes
1 answer

How to Return Errors from an ASMX Web Service?

My web service method returns a collection object, this will serialize nicely, thanks to the way C# web services work! But if my code throws an uncaught exception, I want to instead return a custom error object. Is this possible using C# ASP.NET…
JL.
  • 78,954
  • 126
  • 311
  • 459