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

Error consuming .NET Web service with jQuery

I am trying to access a .Net Web service (.asmx) that I created and that runs under this location: http://sebtest.somee.com/page/webservice/PositionService.asmx Invoking the service locally works fine, but consuming it with jQuery on the server…
user1192475
  • 47
  • 1
  • 11
0
votes
1 answer

Error while trying to make post call on a asmx webservice

I have a webservice and I am getting the following error only from production server when I am trying to make a post call. It works well on development server! 500 (Internal Server Error) Here are the headers from web…
profanis
  • 2,741
  • 3
  • 39
  • 49
0
votes
1 answer

Passing Json to WebMethod

I am getting an error when I Deserialize o. o is made up of many cars and I am trying to deseralize them to oCarsList. I tried to change o to ByVal o As List(Of Cars)(), but I got a javascript error. Javascript var str2 =…
user1167466
  • 333
  • 1
  • 4
  • 14
0
votes
1 answer

GZip complete asp.net website

i am making a SPA(Single page application) so, the size of javascript is very huge - 300 KB. Webservices (.asmx files) which make jsdebug files- 350 KB and the aspx files - 123 KB, so, a whole bundle of over 700 KB which makes my website very…
aditi bansal
  • 93
  • 1
  • 5
0
votes
1 answer

Securing jQuery SPA web services

I am architecting a project which uses jQuery to communicate with a single web service hosted inside sharepoint (this point is possibly moot but I include it for background, and to emphasize that session state is not good in a multiple front end…
Darbio
  • 11,286
  • 12
  • 60
  • 100
0
votes
1 answer

Using Jquery to call an ASMX service in sharepoint 2010

The service I'm trying to call is deployed as part of a visual web part. If i call it directly: _layouts/service.asmx I get the expected service page, showing me the functions I want to call. When I do the Jquery Ajax call (it works just fine on…
devzero
  • 2,510
  • 4
  • 35
  • 55
0
votes
1 answer

Complex Types are not generated in details when viewing the WSDL from asmx or wcf service

I have this class public class Subject { int ID; string Name; int Semester; int Grade; } I am using it in a .asmx and in .svc(wcf) web service. When invoking the service with the ?wsdl in browser i expect to see the complex type…
0
votes
2 answers

Pagemethod doesnt work from asmx file rather aspx any suggesion?

I am using simple json method for calling webmethod but it works with aspx file ie url: 'myclass.aspx/myfunction' but it doesnt work if I put same function in an asmx file and change url to asmx. Is there anything else have to be done to enable…
Ironsun
  • 801
  • 2
  • 8
  • 19
0
votes
1 answer

Passing a 2d string table to webservice method

My web service takes string [][] as a parameter, but when I call webservice method it gives error: cannot convert from 'string[][]' to 'ServiceReference1.ArrayOfString[] //strItems1 is the array string [][] strItems1 = new string[m_Inputs][]; for…
PUG
  • 4,301
  • 13
  • 73
  • 115
0
votes
1 answer

NSXMLparser: How to return a string if there's an empty element tag ()

I've set up a parser that is consuming an asmx web service, and .NET is creating a close element tag. Here's a clip from the log: This is the Name This is Name2 When I get to the…
whyoz
  • 5,168
  • 47
  • 53
0
votes
0 answers

Web Service (Security) Authorization

I am working on a tradtional (ASMX) web service which is currently used via a private newtwork. So there is no authentication / authorization performed by this web service. We intend to put it on a public network. What is the best way of performing…
Pinu
  • 7,310
  • 16
  • 53
  • 77
0
votes
0 answers

asmx method that can accept application/x-www-form-urlencoded content-type

How can i make a asmx web method that can accept a content type "application/x-www-form-urlencoded". Please see below code: // create request object var req = createRequest(); var params = "core_lesson=English&core_grade=80&core_average=90"; // set…
jeff
  • 448
  • 1
  • 15
  • 34
0
votes
3 answers

How to correctly create Web Service with WHERE clause preventing injection

Not sure where to post this question, but I am concerned about the security of the answer so I targeted here. I have a web service running that reliably returns a dataset and allows me to provide a list now drop down list box of records returned. I…
htm11h
  • 1,739
  • 8
  • 47
  • 104
0
votes
1 answer

Does ASP.NET WebMethod request count for session time?

I have an ASP.NET application which loads a page and then does all of the work by WebMethods. So for a long time the user does not refresh the page. I think after a while the session hits the timeout and session variables are cleared, because there…
paul simmons
  • 5,568
  • 13
  • 51
  • 78
0
votes
3 answers

asp.net web service, Error Generating XML Document

I've created an asp.net web service and am trying to test it using my client. The web method I'm currently testing returns a custom object named GetAllTicketsSinceLastPullDateResult, which contains one ArrayList of custom clsTrip objects, and a…
PaulG
  • 6,920
  • 12
  • 54
  • 98
1 2 3
99
100