on 09-02-2008 1:39 PM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.