I’m not familiar with the web services. I created a Email Service using web service.
My questions is:
How to make a Email Sending with have a MsgBox “Sent” and ” sent Failed”?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You need to create a custom response type and return that from your service. The client (who called the service) should read the response and be responsible for popping up a message box stating whether or not the service call was a success.
Here is what the type could look like:
Here is what the service code would look like:
This way, your service never faults the channel and will always return your response object (even in the case of an exception). You can then use your response object to communicate to the client the status of your service call.
Here is what the client might look like:
The client code is a rough example, but it should give you an idea of what I’m talking about.