Home > Constructing SOAP with C++ and gSOAP 2.7.9c for Windows > Building the Windows Client
gsoap_sample
as
the name of the solution. Click OK.
When you start a new C++ project, the Win32 Application Wizard appears.gsoap_sample.cpp
file,
included in the project, with the files in the table below.Before adding the source files to the plugin directory,
you must change their file extensions from .c
to .cpp
.
Option | Description |
---|---|
CyberSource sample | sample.cpp |
Generated by gSOAP | soapC.cpp soapClient.cpp |
Included in gSOAP package | gsoap_directory\dom.cpp* gsoap_directory\stdsoap2.cpp gsoap_directory\mod_gsoap\gsoap_win\wininet\gsoapWinInet.cpp gsoap_directory\plugin\smdevp.cpp gsoap_directory\plugin\wsseapi.cpp * gsoap_directory is the directory in which you downloaded and extracted gSOAP |
openssl_directory\lib\VC
gsoap_directory\stdsoap2.cpp
, find
the following calls:ASN1_item_d2i
meth->d2i
(&data)
as const
unsigned char **
. The calls now read:ext_data = ASN1_item_d2i(NULL, (const unsigned char **) &data, ext->value->length, ASN1_ITEM_ptr(meth->it)); ext_data = meth->d2i(NULL, (const unsigned char **) &data, ext->value->length);
stdsoap2.cpp
file, error C2440: '=' : cannot
convert from 'const char *' to 'char *
char *
as follows: t
= strchr((char *) s, ',');
soap_wsse_get_BinarySecurityTokenX509
,
find d2i_X509
in gsoap_directory\plugin\wsseapi.cpp
.const
as follows:
cert = d2i_X509(NULL, (const unsigned char**)&data, size); You
can now test the client.Revision