LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   using libcurl in c program how can I consume webservices (https://www.linuxquestions.org/questions/linux-newbie-8/using-libcurl-in-c-program-how-can-i-consume-webservices-861537/)

sushilpandey 02-09-2011 12:08 AM

using libcurl in c program how can I consume webservices
 
Hi,

I have need to call webservices using libcurl through C program under ubuntu environment. Ho can I do this. I am unable to call web service using curl.

paulsm4 02-09-2011 12:46 AM

Q: What have you tried?

Q: Are you sure C and libcurl are the right tool for the job?
For example, have you considered Java? Or C++/Apache-Axis?

sushilpandey 02-09-2011 05:51 AM

I have to use C or C++ program only and libcurl file is installed in the device for which I am preparing the module.

paulsm4 02-09-2011 11:58 AM

OK - libcurl it is then :)

As you probably know, "web services" generally come in one of two flavors:

a) SOAP (e.g. for a .Net web service)
b) REST (increasingly common, due to the complexity and overhead incurred by SOAP web services)

Here's some example code for both SOAP and REST, using libCurl:

http://www.ebi.ac.uk/Tools/webservic...p/rest/libcurl

Here's a nice, short introduction to SOAP Web Services:

http://www.soatutorial.net/soa-techn...oap-wsdl-uddi/
<= I would definitely encourage you to make sure you're comfortable with the basic concepts
before you dig in to any code

meet.pawan53 02-21-2011 11:14 PM

Libcurl
 
How can I consume web servisec by Libcurl.


All times are GMT -5. The time now is 07:38 PM.