cancel
Showing results for 
Search instead for 
Did you mean: 

Alert Message displayed according to WebService response

Former Member
0 Kudos

I've created and used a Web Service in my VC application which simply send a mail. This Web Service returns a boolean response which indicates if the mail has been correctly sent. I want to inform the user accordingly with an alert message.

If the response is correct, I want the user to be processed to confirmation page;

If the response is uncorrect, I want to inform th user accordingly.

Which operator should I use?

Do I have to use the output point of my Web Service object?

Thanks

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

you have to return a boolean value from your webservice, according to the result (true if all is ok, false if not), and work with visibility condition of two output forms : if returned value of your webservice is true, display a "All ok message", and "All is KO if false is returned".

Am I clear enough ?

Fabien.

Former Member
0 Kudos

Hi,

Thanks Fabien for your answer ... but it hasn't solved completely my problem.

My webservice effectively returns a boolean, and I use this boolean to show wether a confirmation message or a error alert. But the alert form (which is normally displayed only if WSReturn == "false") is by default always displayed. The response sent by my webservice seems to be by default set to false... very strange, isn't it?

Has anybody encountered such a situation? I just would like to display one form or the other depending of the result of my WS call.