How to call a web service from an URL link?

W

WGErich

How can I call a web service from an URL link? And the webservice
redirects the user to another HTML page after it has done some
actions. The redirection is no problem with this code:

Context.Response.StatusCode = 307;
Context.Response.AddHeader("Location", URL);
Context.Response.Redirect(URL, true);
Context.Response.Flush();



E.g. the web service is called from this link:

<a href="http://server.com/MyWebService.asmx?
op=MyWebMethod&parameters=parameter1&parameter2">asdfasdf </a>

Of course the format and the number of parameters (all primitive data
types) can vary! But I just want to perform some actions by the web
service and then show another page!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top