I'm trying to get a simple example working using gSoap, for VS2008.

I've done the following:

wsdl2h -o Init.h http://myservices/InitalisationService.asmx?WSDL

And then this:

soapcpp2 -I "C:\3pSDK\gsoap-2.7\gsoap\import" -i -C -limport Init.h

which produces many files. My project folder looks like this:

// generated files
Init.h
InitalisationServiceSoap.initalizePlayer.req.xml
InitalisationServiceSoap.initalizePlayer.res.xml
InitalisationServiceSoap.nsmap
InitalisationServiceSoap12.initalizePlayer.req.xml
InitalisationServiceSoap12.initalizePlayer.res.xml
InitalisationServiceSoap12.nsmap
ortC.cpp
ortH.h
ortInitalisationServiceSoap12Proxy.cpp
ortInitalisationServiceSoap12Proxy.h
ortInitalisationServiceSoapProxy.cpp
ortInitalisationServiceSoapProxy.h
ortMatlab.c
ortMatlab.h
ortStub.h

// Project Files
ReadMe.txt
stdafx.cpp
stdafx.h
WebServicesClient.cpp
WebServicesClient.vcproj
targetver.h

// files added to the project from gSoap folder
stdsoap2.cpp
stdsoap2.h
typemap.dat

When I build, I get a lot of linker errors (unresolved externals). I can't find anything to link against (e.g. no binary libraries) - what am I missing?

I believe that this may have something to do with the following from the docs:

To complete the build, compile and link the generated soapC.cpp, soapcalcProxy.cpp, and the run-time gSOAP engine -lgsoap++ (or use source stdsoap2.cpp in case libgsoap++.a is not installed) with your code.

is there a gsoap++ library for win32?

 1>Compiling...
 1>WebServicesClient.cpp
 1>ortC.cpp
 1>Generating Code...
 1>Linking...
 1>stdsoap2.obj : error LNK2019: unresolved external symbol _soap_faultcode referenced in function _http_response
 1>stdsoap2.obj : error LNK2001: unresolved external symbol _namespaces
 1>stdsoap2.obj : error LNK2019: unresolved e
Edit
Report