471,056 Members | 1,652 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,056 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 947
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

8 posts views Thread by Sam Sungshik Kong | last post: by
3 posts views Thread by John Dalberg | last post: by
4 posts views Thread by Damien | last post: by

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.