---------- Forwarded message ----------
From: Dan O'Neill <[EMAIL PROTECTED]>
Date: May 19, 2005 10:44 AM
Subject: Re: showing dialog / message box to client
To: Plorks mail <[EMAIL PROTECTED]>

Is the client on the same machine as the service? I could be wrong but Im pretty sure that its nearly impossible to open a java pop-up on someone elses machine without them running it....


On 5/19/05, Plorks mail < [EMAIL PROTECTED]> wrote:

Unfortuately i have no control over the client - joe public calls one of web
service so can be anywhere

In my web servce i expose a method, in that method do some validating and
just use this code server-side

int answer = JOptionPane.showConfirmDialog(new JFrame(), message, title,
JOptionPane.YES_NO_OPTION );

if (answer == JOptionPane.YES_OPTION)
{
// clicked yes
}
else if (answer == JOptionPane.NO_OPTION)
{
// clicked no
}


The dummy client i ccreated i just call that method

......

Service service2 = new Service();
Call call2 = (Call)service2.createCall();
call2.setTargetEndpointAddress(endpoint);
call2.setOperationName("test");
call2.addHeader(tokenHeader);
call2.invoke (new Object[]{});





>From: Dan O'Neill <[EMAIL PROTECTED]>
>Reply-To: Dan O'Neill < [EMAIL PROTECTED] >
>To: Plorks mail <[EMAIL PROTECTED]>
>Subject: Re: showing dialog / message box to client
>Date: Thu, 19 May 2005 10:31:54 +0100
>
>I had that too... but I'm sorry to say I never got around it... It was very
>annoying but Only had limited time so had to ignore it...
>
>Sorry I could be of more help
>
>Dan
>
>p.s. how did you get the GUI to pop up client side without having client
>code? Have to say I was trying for a long time before I had to resort to
>client-side code?
>
>On 5/19/05, Plorks mail < [EMAIL PROTECTED]> wrote:
> >
> >
> > Thanks Dan
> >
> > My problem is this
> >
> > Every call a client makes (the client can be anything vb, c# web app
> > etc...)
> > I need to check a token value within the soap header
> >
> > Once i get the value my web service will validate it with a db table.
>The
> > db table also holds an expiry date/time for the token value. The token
> > value has 7 days until it expires. What i want to achieve is when the
> > token
> > value is checked with the db table and it has <= 60 minutes until it
> > expires
> > i want to throw up a message box to the client informing them the token
> > has
> > so miany minutes leff until it expires, do they want to renew it (yes/no
> > button)
> >
> > I've done this in my web serice
> > int answer = JOptionPane.showConfirmDialog (new JFrame(), message, title,
> > JOptionPane.YES_NO_OPTION);
> >
> > if (answer == JOptionPane.YES_OPTION)
> > {
> > // clicked yes
> > }
> > else if (answer == JOptionPane.NO_OPTION)
> > {
> > // clicked no
> > }
> >
> > I've created a simple client to test this. The message displays
> > correctly,.
> > but what i'm finding is if i leave the message on the screen for a
>couple
> > of
> > minutes i get this error -
> >
> > java.net.SocketTimeoutException: Read timed out
> >
> >
> > Thanks for any help
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > >From: Dan O'Neill < [EMAIL PROTECTED]>
> > >Reply-To: Dan O'Neill < [EMAIL PROTECTED]>
> > >To: axis-user@ws.apache.org
> > >Subject: Re: showing dialog / message box to client
> > >Date: Thu, 19 May 2005 09:45:01 +0100
> > >
> > >Hi,
> > >
> > >I don't fully understand your method but I had to do something very
> > >similar.
> > >
> > >
> > >In my application I used a client side handler to recognise when a
> > response
> > >was recieved by the client. Then that handler started a thread -
> > >DisplayGUI.java for example. This was being run on the client side. The
> > >displayGUI.java took in the information and then sent this information
> > back
> > >to my application for processing....
> > >
> > >Now I don't whether you have control of the client.... or whether you
>can
> > >ask them to download handlers, extra classes, etc. Now this imposes a
> > >question on interoperability but if thats not a problem then this kind
>of
> > >idea should work?
> > >
> > >Dan
> > >On 5/19/05, Plorks mail < [EMAIL PROTECTED]> wrote:
> > > >
> > > >
> > > >
> > > > Dear All
> > > >
> > > > I'm writing a server-side web service. During one exposed amethod I
> > need
> > > > to
> > > > show a dialog/message box to the client asking them a question.
> > > >
> > > > The clients clicks yes or no button and that determines which code
> > gets
> > > > executed.
> > > >
> > > > Can anyone advise on how i should so this?
> > > >
> > > > If i use this
> > > > int answer = JOptionPane.showConfirmDialog (new JFrame(), message,
> > title,
> > > > JOptionPane.YES_NO_OPTION);
> > > >
> > > > Then i'll be showing a dialog box and waiting for user input while
>in
> > >the
> > > > middle of a remote socket call - which will be wrong
> > > >
> > > > Does anyone have any suggestions on how i should do this
> > > >
> > > > Many thanks for any advice
> > > >
> > > > _________________________________________________________________
> > > > Winks & nudges are here - download MSN Messenger 7.0 today!
> > > > http://messenger.msn.co.uk
> > > >
> > > >
> > >
> > >
> > >--
> > >"I swear, the next bastard that kisses the ground in front of me is
>gonna
> > >get
> > >kicked in the antique chicken coops." - Cohen the Barbarian
> >
> > _________________________________________________________________
> > FREE pop-up blocking with the new MSN Toolbar – get it now!
> > http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/
> >
> >
>
>
>--
>"I swear, the next bastard that kisses the ground in front of me is gonna
>get
>kicked in the antique chicken coops." - Cohen the Barbarian

_________________________________________________________________
Winks & nudges are here - download MSN Messenger 7.0 today!
http://messenger.msn.co.uk




--

"I swear, the next bastard that kisses the ground in front of me is gonna get
kicked in the antique chicken coops."  - Cohen the Barbarian


--
"I swear, the next bastard that kisses the ground in front of me is gonna get
kicked in the antique chicken coops."  - Cohen the Barbarian

Reply via email to