The gSOAP toolkit simplifies the development and deployment of SOAP/XML Web Services and client applications in C and C++. The gSOAP RPC compiler does all the difficult work for you. It generates the necessary C and C++ source codes to seamlessly glue your C/C++ applications to the SOAP/XML Web Services stack. With the compiler you can enable your (existing) C and/or C++ applications to “talk SOAP”!.
gSOAP is not just a class library. The gSOAP RPC compiler produces routines to encode native and user-defined C/C++ types in XML. To make things even easier, gSOAP provides memory management with garbage collection so (XML-decoded) data can be cleaned up without a hassle.
Calling WCF Services from a Linux C++ Client Using gSOAP
Step 1: Build a server Web service by WCF
First, you need to make a server webservice by c#. Please follow this tutorial http://www.youtube.com/watch?v=GzN1vHWlJjA
using namespace std;
// This will be the name of the service
// class in the proxy header file from above
// This is the request and response that
// the service you are trying to call takes.
// Again you can find the types in the class
// used in the C++ proxy header
string is(”Hello There America”);
req.inputString = &is;
int err = s.__ns1__GetCount(&req, &resp);
if (SOAP_OK == err)
cout << “Service Returned: ” << *resp.GetCountResult << endl;
cout << “Error: ” << err << endl;