Home > Constructing SOAP with C++ and gSOAP 2.7.9e for Linux > Preparing the Linux Development Environment


Preparing the Linux Development Environment

  1. Download the latest gSOAP package for Linux.
  2. Open the package by running this command:

    tar xvfz gsoap_linux_2.7.9e.tar.gz

  3. At the same level as the gSOAP directory created in the previous step, create these items with the appropriate command:
    Item Description Command:
    client Directory for the client-related files (Makefile and sample.cpp) mkdir client
    gsoap Symbolic link to your gSOAP directory ln -s <gsoap_path> gsoapwhere <gsoap_path> is the path to the gSOAP directory that you created in Step 2.
  4. In the gsoap/stdsoap2.cpp file, find the following calls:

    ASN1_item_d2i (occurs once)

    meth-d2i (occurs twice)

  5. In each call, cast the second parameter (&data) as const unsigned char **.

    The calls should now read:

    ext_data = ASN1_item_d2i(NULL, (const unsigned char **) &data ...

    ext_data = meth->d2i(NULL, (const unsigned char **) &data ...

  6. In the gsoap/plugin/wsseapi.c file, find cert = d2i_X509.
  7. Add const to the second argument’s cast as follows:

    cert = d2i_X509(NULL, (const unsigned char**)&data, size);