Click here to Skip to main content
15,896,606 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi I need some help creating a asp page that calls a web service. Please forgive me I'm new at this thanks.
This is the scenario From one of our applications I will call an asp page as follows http://localhost/allscript.asp?acctnum=12345&mrn=6789
in the page (allscripts.asp) I know I can retrieve the inbound values by using string acct=Request["acctnum"] string MRN=Request["mrn"] etc..
Then I want to pass these two values to a web service I created on the localhost called "edChartlink" which will return a url after encryting the above information. Once I recieve the url I'll call that url.
I'm not quite sure how to call the web service from the asp page and pass it the parameters.
Does anybody know of an article I can reference or an example code I can view. I can't find much on google.
Thanks again and I appreciate any input I can get.
Jose'
Posted

This should help you get started
http://www.w3schools.com/webservices/ws_example.asp
 
Share this answer
 
Comments
Jose Garcia 16-Feb-11 10:09am    
good example however this is for .NET I was thinking more in line with classic ASP. But I'll give this a try doesn't look to complicated and it might get me up and running quickly being that I'm on a strict time constraint. Thank you very much
High-level Steps:
1. Have a webservice reference to your project.
2. Create webservice object when needed
3. Call the webmethod exposded using the webservice object
4. Pass the parameters to the method as per defined.

If you still need an article then just Google for consuming webservice in a web application.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900