Open a link from within a Web Service ?

  • Thread starter Thread starter Jean-Yves
  • Start date Start date
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
__________________________________________________________________
 
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?

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
Author: ADO.NET and XML: ASP.NET on the Edge

****************************************************************************
****
Think Outside the Box!
****************************************************************************
****
 
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?
 
Back
Top