spacer
spacer

C/C++

Web Services Tool-kits

There are many libraries available for developing Web Services clients or servers available for C/C++. These fall into two broad categories:

  1. General purpose modules which implement Web Services technologies (i.e. REST or SOAP)
  2. Service libraries which implement the client and/or server interface for a service type or for a specific service.

A selection of modules commonly used to access Web Services are listed below.

General Purpose

C/C++ libraries which implement Web Services technologies, for example:

Web Service Style C/C++ Library
REST libcurl
libwww
neon
SOAP Axis/C++
Axis2/C
csoap
EasySoap++
gSOAP
WSO2 WSF for C
WSO2 WSF for C++

Client Libraries

Purpose built libraries for a type of service or a specific service, for example:

Web Service Type C/C++ Library
NCBI E-Utilities NCBI Toolbox (C or C++)

EMBOSS

The EMBOSS libraries include support for a number of bioinformatics Web Services, for example:

Web Service C/C++
dbfetch seqAccessDbfetch
MRS seqAccessMrs
seqAccessMrs3
NCBI E-Utilities seqAccessEntrez
SRS seqAccessSrswww

Tutorials

Prerequisites

Knowledge of the following is required for these tutorials:

Web Services Tutorials Examples and Solutions

The source code for the examples are available: c_cpp_exercises.zip

The download is based on the Eclipse CDT project used to develop the tutorials. The files are explicitly referenced in the tutorials and links provided to the on-line versions. Eclipse CDT is not required to work though the exercises, a text editor, a working C/C++ compiler installation and the make build tool are the only requirements.

To import the project into Eclipse:

  1. Download and install Eclipse.
  2. Install the Eclipse CDT plug-in for Eclipse if your installation does not include it.
  3. Download the project
  4. Unpack the project into a working directory
  5. Import the project into Eclipse using “File” → “Import…”
    1. For “import source” select “General” → “Existing Projects into Workspace”
    2. Specify the working directory containing the project
    3. Select the project

Initially the project will contain errors due to some code generated as part of the exercises not being present.

Web Services Tutorials

Tutorials on using a selection of popular C/C++ libraries to develop clients for Web Services:


Up Programming Web Services Contents Contents
1) Extensible Markup Language (XML) - http://www.w3.org/XML/
 
tutorials/06_programming/c_cpp.txt · Last modified: 2010/09/23 11:34 by hpm
spacer
spacer