views:

90

answers:

6

I'm writing a native c++ application that needs to grab information from a web service.

What is the recommended library/libraries to handle this in c++?

I cannot use .NET for this.

+1  A: 

The best I found so far is Apache Axis

schoetbi
apache axis is java, OP wants c++
akira
Please look at the cpp subproject located athttp://ws.apache.org/axis/cpp/download.html
schoetbi
+2  A: 

libcurl or alternatives.

Andrejs Cainikovs
I had a quick look at libcurl. It seems to be more of a comms swiss army knife, rather than geared towards interacting with webservices. I just need something quick to talk to a webservice.... and I think this_kind_of_syntax belongs in perl (!).
freefallr
+3  A: 

gSOAP is quite good.

Almost all the big players(Adobe Systems, AOL, BEA, Boeing, Cisco Systems, CNR, eBay, Ericsson, Exxon/Mobile, HP, IBM, Intel, Microsoft, Nokia, Pfizer, Siemens, WindRiver, Xerox...) are using it.

Incognito
thanks, This looks good. I'd be curious to know how this handles proxy negotiation...
freefallr
+1  A: 

Check out Wt: A C++ web toolkit

Steve Obbayi
OP wants to retrieve information from a webservice, not to built one.
akira
hey akira, You dont have to use it to build a web service you can also use it to access existing ones. It works as either a client or server.. think the way VLC player works
Steve Obbayi
+1  A: 

Windows Web Services APIs http://msdn.microsoft.com/en-us/library/dd430435%28VS.85%29.aspx

obelix
this is W7 and Server 2008 only API. I have to support XP clients too!
freefallr
+2  A: 

You can try WSF Staff (client part). Easy create web services and clients in C++.

Generated code is compact, light, human readable and easy to understand.

Open source, based on Axis2/C (wrapped most most used Axis2/C features into C++ code, also have many additional options). Ported to Windows, Linux.

Project page:

http://code.google.com/p/staff/

Example: How to create Calculator client:

http://code.google.com/p/staff/wiki/ExampleCalculatorClientWindows

Example: How to create StockQuote client by WSDL:

http://code.google.com/p/staff/wiki/ExampleCreatingCppClientFromWsdl

loentar