473,390 Members | 1,159 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,390 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 1012
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: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.