473,320 Members | 1,926 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,320 software developers and data experts.

POST problem

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
3 900
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: brendan | last post by:
Sorry this isnt a cross post .. i just didnt get any help from alt.php. I have a website which utilises post forms for navigation in some areas. Problem is, when *some* users hit the BACK button...
3
by: sammmista | last post by:
hello experts, Plz dont treat this as another newbie query , i did my homework but still getting nowhere :( :( :( Trying to learn PHP on Fedora core 1 (PHP 4.3,MySQL,HTTPD).Unable to post data...
12
by: Jan Roland Eriksson | last post by:
I have worked some more on this suggested new mFAQ version trying to get all user input to blend into the text. Another review by the NG would be welcome. ===== Archive-name:...
5
by: Jan Roland Eriksson | last post by:
Some more fine tuning and inclusion of last suggested text from regulars has been done to this test post #4 of the mFAQ. As usual, rip it up anywhere you feel that it's appropriate to do so. ...
1
by: khawar | last post by:
my application is in asp.net using C# hi guys having a complicated problem i am using payflowlink to process CC payments I have to send a httppost to their servers. The problem is how do i do a...
4
by: Ollie | last post by:
I have wrriten a reverse proxy for a client of mine, this reverse proxy takes the url takes it attempt to access a *.XXXX and returns the the contents of an aspx web page from another internal...
0
by: WIWA | last post by:
Hi, I want to login to a password protected website and fetch the content of the page behind. I have based my code on http://weblogs.asp.net/jdennany/archive/2005/04/23/403971.aspx. When I use...
24
by: moriman | last post by:
Hi, The script below *used* to work. I have only just set up a server, PHP etc again on my Win98 system and now it doesn't? On first loading this page, you would have $p = and the button...
3
by: bb nicole | last post by:
Below is my job post code, it cannot post into database... WHAT IS THE PROBLEM OF IT?? <?php session_start(); ob_start(); //connect to server and select database
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.