[prev in list] [next in list] [prev in thread] [next in thread] 

List:       soap-user
Subject:    Re: web service with Gui
From:       Scott Nichol <snicholnews () scottnichol ! com>
Date:       2002-08-30 17:44:15
[Download RAW message or body]

The servlet source and a small amount of descriptive information are now
available at http://www.scottnichol.com/apachesoapservletclient.htm.

Scott Nichol

----- Original Message -----
From: "Scott Nichol" <snicholnews@scottnichol.com>
To: <soap-user@xml.apache.org>
Sent: Friday, August 30, 2002 12:54 PM
Subject: Re: web service with Gui


The attached file is a servlet that calls the stockquote sample service.
YOu must deploy stockquote in order to use this servlet.  On GET, the
servlet serves up a page to enter a ticker symbol (e.g. IBM) and a URL (the
address of your SOAP router, e.g.
http://localhost:8080/soap/servlet/rpcrouter).  When you click GET, this is
POSTed.

Note: if you have an HTTP proxy to get to the internet, the stockquote
sample will not work.  Sorry about that.

Scott Nichol

----- Original Message -----
From: "Scott Nichol" <snicholnews@scottnichol.com>
To: <soap-user@xml.apache.org>
Sent: Friday, August 30, 2002 10:43 AM
Subject: Re: web service with Gui


You currently have

Browser --> servlet1 --> jdbc --> servlet1 --> browser

To access a Web service from a browser, you would have

Browser --> servlet2 --> webservice --> jdbc --> webservice --> servlet2 -->
browser

Basically, your servlet1 gets split into servlet2 and webservice.  The code
in servlet1 that makes the jdbc calls would go in the webservice.  The
servlet2 will take HTML form variables to create parameters for the
webservice method call, then take the webservice results to format as HTML
for the browser.  Roughly speaking, servlet2 is the controller and view,
while the webservice is the model in the MVC pattern.

Scott Nichol

----- Original Message -----
From: "Neha Srivastava" <neha.srivastava@wipro.com>
To: <soap-user@xml.apache.org>
Sent: Thursday, August 29, 2002 11:42 PM
Subject: Re: web service with Gui


actually initially i made  the servlet which had all the jdbc code and an
html form to take the user input.

when i populate the html form it calls the servlet which retrieves  the
values and return them on another html form.

but then what should i write in the serviceimplementation class?
the Client is command line then where will my htnl form go?


thanks and regards
neha

----- Original Message -----
From: "Scott Nichol" <snicholnews@scottnichol.com>
To: <soap-user@xml.apache.org>
Sent: Friday, August 30, 2002 8:59 AM
Subject: Re: web service with Gui


> You simply use the same logic from your console application in either a
Java
> application that uses a GUI (AWT, Swing) or a JSP or servlet to provide a
> browser-based GUI.
>
> Scott Nichol
>
> ----- Original Message -----
> From: "Neha Srivastava" <neha.srivastava@wipro.com>
> To: <soap-user@xml.apache.org>
> Sent: Thursday, August 29, 2002 11:24 PM
> Subject: web service with Gui
>
>
> hi all,
>
> I have made a webservice using apache soap where my client invokes a
method
> getValues in my serviceimplementation class  which inturns get the values
> frm the excelsheet and return them to the client.
>
> But  all this  is console based, I want to have a Gui to invoke the
service
> and get the result.
>
>
> can anybody please help me with this.
>
> Thanks and regards
> neha
>
>
>
> --------------------------------------------------------------------------
--
> ----
>
>
> --
> To unsubscribe, e-mail:   <mailto:soap-user-unsubscribe@xml.apache.org>
> For additional commands, e-mail: <mailto:soap-user-help@xml.apache.org>
>
>
> --
> To unsubscribe, e-mail:   <mailto:soap-user-unsubscribe@xml.apache.org>
> For additional commands, e-mail: <mailto:soap-user-help@xml.apache.org>
>




----------------------------------------------------------------------------
----


--
To unsubscribe, e-mail:   <mailto:soap-user-unsubscribe@xml.apache.org>
For additional commands, e-mail: <mailto:soap-user-help@xml.apache.org>


--
To unsubscribe, e-mail:   <mailto:soap-user-unsubscribe@xml.apache.org>
For additional commands, e-mail: <mailto:soap-user-help@xml.apache.org>





----------------------------------------------------------------------------
----


--
To unsubscribe, e-mail:   <mailto:soap-user-unsubscribe@xml.apache.org>
For additional commands, e-mail: <mailto:soap-user-help@xml.apache.org>


--
To unsubscribe, e-mail:   <mailto:soap-user-unsubscribe@xml.apache.org>
For additional commands, e-mail: <mailto:soap-user-help@xml.apache.org>

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic