HighTechTalks DotNet Forums  

How to call a web service from an URL link?

ASP.net Web Services microsoft.public.dotnet.framework.aspnet.webservices


Discuss How to call a web service from an URL link? in the ASP.net Web Services forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
WGErich@googlemail.com
 
Posts: n/a

Default How to call a web service from an URL link? - 04-02-2007 , 10:26 AM






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">a sdfasdf </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!


Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.