Open a link from within a Web Service ?

J

Jean-Yves

Hi.
I would like to open an ASP.NET page from a Web Method like this:
Form my WinForm App:
OpenLink("Select * From Customers",
"http://myserver/ReportApp/ShowReport.aspx")

<(Web Method)> _
Public Function OpenLink(ByVal sQuery As String, ByVal sURL As String) As
boolean
..... SomeCode to Open Internet Explorer with the URL
End Function

How to open that link from within the Web Method ?

Thanks.
Jean-Yves


__________________________________________________________________ Jean-Yves
Mr ICQ#: 36608088 Current ICQ status: + More ways to contact me
__________________________________________________________________
 
C

Cowboy \(Gregory A. Beamer\)

This would be bad design.

The standard idea is a WebMethod returns SOAP for a client call. The web
service is on a server, while the calling application is on a client. The
client may also be a server, but the main idea is the web service simply
serves up information in an XML format.

Sticking with good design, you could embed a command that will cause the
client to open a new page (JavaScript for standard web clients, for
example). But, you would not open a page on the server.

Am I missing the point?
 
J

John Saunders

Jean-Yves said:
Hi.
I would like to open an ASP.NET page from a Web Method like this:
Form my WinForm App:
OpenLink("Select * From Customers",
"http://myserver/ReportApp/ShowReport.aspx")

<(Web Method)> _
Public Function OpenLink(ByVal sQuery As String, ByVal sURL As String) As
boolean
..... SomeCode to Open Internet Explorer with the URL
End Function

How to open that link from within the Web Method ?

Thanks.
Jean-Yves

Jean-Yves,

Who is meant to call this web method? The client? What sort of code is the
client running? Windows forms, or just IE?

When the web service (which is running on the server) opens IE with the URL,
on which display should IE display the HTML from the web site denoted by the
URL?

Are the client and the server running on the same machine? If not, how would
the web method (which is running on the server) going to do _anything_ on
the client?
 

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

Forum statistics

Threads
473,774
Messages
2,569,599
Members
45,174
Latest member
BlissKetoACV
Top