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

How to call a web service from an URL link?

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:

Expand|Select|Wrap|Line Numbers
  1.         Context.Response.StatusCode = 307;
  2.         Context.Response.AddHeader("Location", URL);
  3.         Context.Response.Redirect(URL, true);
  4.         Context.Response.Flush();
  5.  
E.g. the web service is called from this link:

Expand|Select|Wrap|Line Numbers
  1. <a href="http://server.com/MyWebService.asmx?op=MyWebMethod&parameters=parameter1&parameter2">asdfasdf   </a>
  2.  
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!
Apr 2 '07 #1
8 28547
dorinbogdan
839 Expert 512MB
Welcome to TheScripts TSDN ....

I will move this thread into the ASP forum, since it seems more appropriate for it, and not XML related.
However you can try to post on .Net forum too.

Thanks,
Dorin.
Apr 2 '07 #2
I will move this thread into the ASP forum, since it seems more appropriate for it, and not XML related.
I thought I'm at the right place because web services deal with xml ;)

But you don't have an answer to my question?
Apr 2 '07 #3
dorinbogdan
839 Expert 512MB
What error do you get?
Please give more details.
Thanks,
Dorin.
Apr 3 '07 #4
What error do you get?
I don't get a error. I just get the web service's xml response, but I want to give the URL parameters (that doesn't work in any of my try - site not found).
Apr 3 '07 #5
dorinbogdan
839 Expert 512MB
One more useful article:
Calling a WebService with JavaScript and C#.

I hope these help.
Apr 3 '07 #7
Thanks that was what I needed!
Apr 4 '07 #8
dorinbogdan
839 Expert 512MB
Glad to hear that.
You're always welcome.

What article did you use?

God bless you,
Dorin.
Apr 4 '07 #9

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: pu | last post by:
Hi, Could any one tell me what the following messages means please? And where can I get the error messages with their descriptions? ===begin=== ODBC --call failed. blank (#110) ===end=== I...
4
by: Vinod | last post by:
Hi Team, Can we call ".aspx" files from ".asp" ? How ? Thanks in advance
4
by: BrianDH | last post by:
Group Early this week I ask for examples on how to call a VB.NET Web Service and access its DataSet for a traditional ASP page. I was told, "you can't", "won't work", "not possible". Well I...
7
by: Sunil Varma | last post by:
Hello all, I wrote a Windows Service in VC.NET 2005 I want to debug the solution. I tried as mentioned in the following link. ...
3
by: Chung Leong | last post by:
Here's the rest of the tutorial I started earlier: Aside from text within a document, Indexing Service let you search on meta information stored in the files. For example, MusicArtist and...
3
by: Angus | last post by:
I have a web page with a toolbar containing a Save button. The Save button can change contextually to be a Search button in some cases. Hence the button name searchsavechanges. The snippet of...
1
by: apondu | last post by:
Hi, I am new to web services and i am facing a problem. I am interested in downloading some file from internet and use it for furthur processing For eg. i have a file at a the following URL and...
6
by: alho | last post by:
The web service is called by a program running on pocket pc. When to call the web service, the first call is still ok, but for the second or later calls, it will throw "403 Forbidden" WebException....
0
by: ipranay | last post by:
i am trying to create a ssis package with a web service task in it, which will call the web service available on our intranet, everything is fine except that the httpconnection that is to be used has...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.