By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,086 Members | 1,452 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,086 IT Pros & Developers. It's quick & easy.

POST problem

P: n/a
I've been struggling trying to programmatically post to a web service
and get the respose back.

Ive been trying to use the Add method of the following web service
http://www.xmlwebservices.cc/ws/v1/calc/SimpleCalc.asmx

this takes two integers and returns thier sum. How do I specify that
I want the Add method? Any code examples? I'm new at asp.net, and
I'm really struggling with this. Thanks.

-Brian
Nov 18 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Part of the beauty of a Web Service is that you don't have to do an HTTP
Post to a page to use them. You can simply reference the service in a
project, and use it as if it were a local class. The following MSDN article
should be helful:

http://msdn.microsoft.com/library/de...ebservices.asp

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Brian" <br*********@msn.com> wrote in message
news:c4**************************@posting.google.c om...
I've been struggling trying to programmatically post to a web service
and get the respose back.

Ive been trying to use the Add method of the following web service
http://www.xmlwebservices.cc/ws/v1/calc/SimpleCalc.asmx

this takes two integers and returns thier sum. How do I specify that
I want the Add method? Any code examples? I'm new at asp.net, and
I'm really struggling with this. Thanks.

-Brian

Nov 18 '05 #2

P: n/a
I understand I can do that, but I'm writing a test haress. A
requirement is that it be able to access services through post and
get, as well as SOAP. I've got SOAP working, I'm stuggling with post
and get.
"Kevin Spencer" <ks******@takempis.com> wrote in message news:<ON**************@TK2MSFTNGP10.phx.gbl>...
Part of the beauty of a Web Service is that you don't have to do an HTTP
Post to a page to use them. You can simply reference the service in a
project, and use it as if it were a local class. The following MSDN article
should be helful:

http://msdn.microsoft.com/library/de...ebservices.asp

--
HTH,
Kevin Spencer
.Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Brian" <br*********@msn.com> wrote in message
news:c4**************************@posting.google.c om...
I've been struggling trying to programmatically post to a web service
and get the respose back.

Ive been trying to use the Add method of the following web service
http://www.xmlwebservices.cc/ws/v1/calc/SimpleCalc.asmx

this takes two integers and returns thier sum. How do I specify that
I want the Add method? Any code examples? I'm new at asp.net, and
I'm really struggling with this. Thanks.

-Brian

Nov 18 '05 #3

P: n/a
Brian wrote:
I understand I can do that, but I'm writing a test haress. A
requirement is that it be able to access services through post and
get, as well as SOAP. I've got SOAP working, I'm stuggling with post
and get.


GET and POST are HTTP methods (aka "verbs"). SOAP is an application level
protocol that uses HTTP. Thus, using GET/POST without SOAP implies using
another application level protocol to communicate the service request (e.g.
REST, or some home-brewn stuff). Does your web service support this?

Cheers,

--
Joerg Jooss
jo*********@gmx.net

Nov 18 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.