none
From the VC++ client how to call and consume a WCF service? RRS feed

  • Question

  • Hello All,

    My existing application is in VC++. And from this VC++ client, I need to call service.

    I know that we can use XML Web Services using SOAP Toolkit.

    I never involved in any services related development. So wanted to know is there any other service (apart from webservice) that we can implement to call from the VC++ client.

    Can we use WCF or Java service from the VC++ client?

    If it is possible, can anyone please provide information to use WCF or Java service? 

    And also which service is more popularly using now a days?

    Regards,

    Prakash


    Y A S Prakash

    Saturday, June 29, 2019 1:05 PM

All replies

  • Ask the service developer to expose a RESTful service in WCF or Java and search REST C++ on your side. There's little reason not to on WCF which is specifically designed to make the switching easy. 




    Visual C++ MVP

    Saturday, June 29, 2019 7:02 PM
  • Hi,

    Thank you for posting here.

    >>From the VC++ client how to call and consume a WCF service?

    Hello, which operating system do you want to support? If you only need to support Windows Vista and above, it is highly recommended to use Windows Web Services. I suggest you ccould refer to the link: https://docs.microsoft.com/en-us/previous-versions/gg981593(v=msdn.10) for a tutorial on how to consume WCF from a C++ client.

    If you have to support older OSes, a REST service will be easier to consume. You could use WinHTTP to consume REST services (just like HttpWebRequest in .NET), which is supported in earlier versions of Windows. You could learn more about WinHTTP from the link : http://msdn.microsoft.com/en-us/library/gg316358.aspx

    Best Regards,

    Jeanine Zhang

    Monday, July 1, 2019 3:14 AM
    Moderator