473,399 Members | 2,858 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,399 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 12574
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Paul Hasell | last post by:
Hi, I'm trying to invoke a web method asynchronously but just can't seem to get it to tell me when it has finished! Below is the code I am (currently) using: private void...
1
by: A.M-SG | last post by:
Hi, I have a web service with two soap extensions enabled on it. When I run the default IIS method invoke page, the invoke button bypasses all my soap extensions. But when I call the...
1
by: hharry | last post by:
Hi All, I have asimple web service: <WebMethod()> _ Public Function ReSample(ByVal sInput As Integer) As String
2
by: ilyas | last post by:
Hi all I have a web service that I have written. It is written in C# I want to use this web service from a browser, but my users all have different browsers so its important that the code to...
0
by: Werner Willemsens | last post by:
Hi, I have the following situation. COM server exposed on Windows CE 5.0 through SOAP (SOAP toolkit) C# client on XP calls Web Service methods on CE (COM)SOAP server. The complete call takes...
3
by: =?Utf-8?B?RGFuaWVs?= | last post by:
Hi, I have a winform client which consumes a WCF service. I have a single service client(proxy) at the winform side, but spread the service calls into multiple threads so that they can do works...
3
by: Lance Wynn | last post by:
Hello, I am receiving this error when trying to instantiate a webservice component. I have 2 development machines, both are XP sp2 with VS 2008 installed. On one machine, the code works fine. On...
2
by: =?Utf-8?B?SmltIE93ZW4=?= | last post by:
Hi John, Hopefully this post will find its way back to you - or perhaps be answered by someone else. As I mentioned in my last post on the earlier portion of this thread, changing the...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.