473,325 Members | 2,860 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,325 software developers and data experts.

My WS doesn't work in get request

Hi,
I've a web service working ok in POST request but when I try to
invoke it by the browser url, in GET format, the server throw a error
"Request Format not Known"
I try invoke this simple WS but doesn't work too:
[WebMethod]
public int Sum(int A, int B)
{
return A+B;
}
The url that I try is:
http://localhot/myWeb/webservices/se...mx/Sum?A=2&B=3

Why doesn't work?
Can you help me?
Thanks in advance

Aug 30 '06 #1
1 1009
Add this to your Web.Config file
<webServices>

<protocols>
<add name="HttpGet"/>
<add name="HttpPost"/>
</protocols>
</webServices>

--
Regards,

Debasish Pramanik
Assetlink India.
Phone: +91 20 26119531 (226)

"Nemo" <jo***********@gmail.comwrote in message
news:11**********************@h48g2000cwc.googlegr oups.com...
Hi,
I've a web service working ok in POST request but when I try to
invoke it by the browser url, in GET format, the server throw a error
"Request Format not Known"
I try invoke this simple WS but doesn't work too:
[WebMethod]
public int Sum(int A, int B)
{
return A+B;
}
The url that I try is:
http://localhot/myWeb/webservices/se...mx/Sum?A=2&B=3

Why doesn't work?
Can you help me?
Thanks in advance

Aug 30 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Sam Sungshik Kong | last post by:
Hello! I use Python for ASP programming. I found something weird. Response.Write(Request("something")) It draws "None" when there's no value for something. Actually I expect "" instead of...
2
by: D. Nii | last post by:
Hi there, I have a web application that recently got redesigned and now makes use of Response.Redirect . The "new" application is hosted on Win2000 and works for all kinds of clients using IE...
1
by: Mike | last post by:
Hi, I'm new to ASP and can't get this form to work. It's a simple page that draws a calendar for the current month and then you can select a new month and it draws the new calendar. It works...
5
by: Paxton | last post by:
I created an html email containing a form whose method is POST. The form is posted to an asp page for processing, but no values are retrieved. So I response.write all the Request.Form fields, and...
3
by: John Dalberg | last post by:
I am setting the HttpContext.Current.User in the Application_AuthenticateRequest event in global.asax.cs. When I use the IsInRole function in a web page, it works fine. So far so good. (Note that...
4
by: Damien | last post by:
Hi guys, Before I spend hours barking up the wrong tree, am I right in thinking that there is no way for a non ASP.NET page to POST to a ASP.NET page and be able to retrieve the variables in any...
9
by: Neo Geshel | last post by:
I have strip-mined, strip-searched, and completely exhausted the Internet (up to the 30th page on Google, with 100 results per page!!), all without finding an answer to my question AS TO WHY IT...
1
by: taurofuerte | last post by:
rs3.Open "SELECT DateVal FROM Budget WHERE DateVal='" & CDate(Request.Form("newdate")) & "'", adoCon If NOT rs3.EOF Then Response.Write("It already exists") Else Call Save()
5
by: Khafancoder | last post by:
Hi guys, i am building a FileSharing website, i wanna allow users to be able using download managers such as DAP to download files from webserver but don't allow them to retrive files url......
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.