none
Display Messagebox From WCF RRS feed

  • Question

  • Hi

    I am developing a project having two solutions one for WCF and another for WEB. I want to display a messagebox from WCF so that the user can see the message. How can i do it? What is the best method to do it? 

    Thanks

    Tuesday, January 6, 2015 2:41 AM

Answers

  • Hi,

    Based on my understanding, for this scenario, if you want to show message from WCF, you could invoke the corresponding WCF service from Web application. And display the return message to the users in the web application.

    First you could create the WCF services, and host the WCF service so that you could invoke the service.

    Then, add the service reference in your web application and invoke the methods provided by the WCF services, and show the result to the user in your web application.

    For more information, you could refer to:

    http://www.c-sharpcorner.com/UploadFile/013102/creating-wcf-service-iis-hosting-and-consuming/

    Regards

    Wednesday, January 7, 2015 5:43 AM
    Moderator

All replies

  • Hi,

    Based on my understanding, for this scenario, if you want to show message from WCF, you could invoke the corresponding WCF service from Web application. And display the return message to the users in the web application.

    First you could create the WCF services, and host the WCF service so that you could invoke the service.

    Then, add the service reference in your web application and invoke the methods provided by the WCF services, and show the result to the user in your web application.

    For more information, you could refer to:

    http://www.c-sharpcorner.com/UploadFile/013102/creating-wcf-service-iis-hosting-and-consuming/

    Regards

    Wednesday, January 7, 2015 5:43 AM
    Moderator
  • All you can do is send back a string message from the WCF service. You would take the string message and display it in a Web control like a lable.
    Thursday, January 8, 2015 10:03 PM