Today web services are not new things. Lots of good examples are there in the internet which teaches us on how to consume a web service. But most of them are using .net, java or php for this. So today I tried to consume a web service using C language. If you know the SOAP messaging format, then it’s just another socket application. I used web service which is located in the http://www.w3schools.com/webservices/tempconvert.asmx . Program uses HTTP POST to call the web service method. In the package there are two projects which can be loaded from VS2010 and Dev-Cplus. For Dev-plus, you might have to link the “ws2_32.lib” from the project options. I know there are lots of very easy methods to consume web services from other languages. But I did this for fun


These are the reference that I have used for this
http://www.jmarshall.com/easy/http/ - A good tutorial on HTTP