84
votes
4answers
34k views

Request format is unrecognized for URL unexpectedly ending in

This is not a question - posting it here for reference: When consuming a WebService, I got the following error: Request format is unrecognized for URL unexpectedly ending in /myMethodName
48
votes
8answers
10k views

What is the difference between an asp.net web method and a wcf service?

I'm new to .Net and do not understand the difference. Can someone point me in the right direction?
47
votes
8answers
97k views

How to use jQuery to call an asp.net web service?

I'm trying to use jQuery to get data from an ASP.NET web service (SharePoint Server 2007 lists.asmx) but any call to a web service will really help as a first step in that direction.
43
votes
2answers
30k views

Create an ASMX web service from a WSDL file

I have a WSDL file and I am trying to create a web service that conforms to the WSDL. I've created clients using WSDL files that consume an existing service, but I've never created a web service that ...
40
votes
8answers
39k views

ASP.NET MVC & Web Services

Does adding a Web Service to my ASP.NET MVC project break the whole concept of MVC? That Web Service (WCF) depends on the Model layer from my MVC project to communicate with the back-end (so it looks ...
35
votes
2answers
41k views

Enable ASP.NET ASMX web service for HTTP POST / GET requests

I would like to enable a ASP.NET classic (ASMX) web service for HTTP POST and GET requests. I realise this can be done on a machine or application level by adding ... <webServices> ...
29
votes
2answers
17k views

Difference between REST and WebServices

What is difference between REST and WebService (SOAP), I looked at the facebook api, they use HTTP headers and some parameters (probably xml or non) and return result in xml, where else SOAP does ...
29
votes
6answers
10k views

What is limiting the # of simultaneous connections my ASP.NET application can make to a web service?

I have an ASP.NET 4.0 application running atop IIS 7.5 on a 64-bit Windows Server 2008 R2 Enterprise machine with gobs of RAM, CPU, disk, etc. With every web request, the ASP.NET application makes a ...
26
votes
7answers
33k views

Calling ASP.NET server side method via JQuery

I'm trying to call a server side method from client side via jQuery, my code is as follows: Server side: using System.Web.Services; [WebMethod()] //[ScriptMethod()] public static ...
26
votes
2answers
3k views

Handle exceptions in web services with Elmah

Is there a way to globally handle exceptions in regular ASP.NET Web Service (asmx) using ELMAH like we do it in ASP.NET web site ?
24
votes
5answers
40k views

Call ASP.NET PageMethod/WebMethod with jQuery - returns whole page

jQuery 1.3.2, ASP.NET 2.0. Making an AJAX call to a PageMethod (WebMethod) returns the full/whole page instead of just the response. A breakpoint on the page method shows it's never getting hit. I ...
23
votes
3answers
1k views

WCF Security - A list of what I dont understand

I'm going around in circles with regards to WCF and security so i'm just going to shove a load of questions here and hope someone can help me gain a clear picture. Can someone please give me a ...
22
votes
7answers
4k views

When should a web service not be used?

Using a web service is often an excellent architectural approach. And, with the advent of WCF in .Net, it's getting even better. But, in my experience, some people seem to think that web services ...
22
votes
8answers
43k views

How to return JSON from a 2.0 asmx web service

Update: I have since moved on to another project, and I am now able to use .Net 4.0. As a result, this question is no longer relevant to me. From the number of views on this question, though, it must ...
21
votes
5answers
15k views

How do I get the caller's IP address in a WebMethod?

How do I get the caller's IP address in a WebMethod? [WebMethod] public void Foo() { // HttpRequest... ? - Not giving me any options through intellisense... } using C# and ASP.NET

1 2 3 4 5 235
15 30 50 per page