469,271 Members | 1,014 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,271 developers. It's quick & easy.

How to call web service from a http post

I understand how to consume a web service by registering it as a web
reference in my project, but how to use HTTP Post to call a web service? For
example I have a web service called TestService, and have a WebMethod called
TestMethod, it has a string type parameter A, anybody can explain a little
bit on how to call it from http post?

Thanks!

Jason

Dec 19 '06 #1
3 12435
I am pretty new to wenservices my self. But I think the following should give
you a good idea.

You have added the webservice as a reference to your project. The reference
is called Proxy.

Proxy test = new Proxy();
test.Credentials ... use this code if u have authentication
object[] test2 = test.WebMethodName(parameters);

This is pretty basic and assumes you have consumed a webservice. Hope this
helps.

"Jason Zhou" wrote:
I understand how to consume a web service by registering it as a web
reference in my project, but how to use HTTP Post to call a web service? For
example I have a web service called TestService, and have a WebMethod called
TestMethod, it has a string type parameter A, anybody can explain a little
bit on how to call it from http post?

Thanks!

Jason

Dec 28 '06 #2
I understand how to consume a web service by registering it as a web
reference in my project, but how to use HTTP Post to call a web service? For
example I have a web service called TestService, and have a WebMethod called
TestMethod, it has a string type parameter A, anybody can explain a little
bit on how to call it from http post?

Thanks!

Jason

hi,

i also face same kind of problem. if you know anything relevant to http post and http get, can you share with me.

thanks
lakshmi
BizTalk Utilities - Frustration free BizTalk Adapters
http://www.topxml.com/biztalkutilities
Jan 18 '07 #3
The WebClient class provides the ability to read/write to URLs. Maybe that
will work for you.

http://msdn2.microsoft.com/en-us/lib...webclient.aspx

"subbulakshmi" wrote:
>
I understand how to consume a web service by registering it as a web
reference in my project, but how to use HTTP Post to call a web service? For
example I have a web service called TestService, and have a WebMethod called
TestMethod, it has a string type parameter A, anybody can explain a little
bit on how to call it from http post?

Thanks!

Jason

hi,

i also face same kind of problem. if you know anything relevant to http post and http get, can you share with me.

thanks
lakshmi
BizTalk Utilities - Frustration free BizTalk Adapters
http://www.topxml.com/biztalkutilities
Feb 13 '07 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by Paul Hasell | last post: by
reply views Thread by Werner Willemsens | last post: by
3 posts views Thread by =?Utf-8?B?RGFuaWVs?= | last post: by
2 posts views Thread by =?Utf-8?B?SmltIE93ZW4=?= | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.