472,133 Members | 1,058 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

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 12521
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

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.