Questions tagged [gsoap]

gSOAP is an open source C and C++ software development toolkit for SOAP/XML Web services and generic (non-SOAP) C/C++ XML data bindings.

gSOAP is an open source C and C++ software development toolkit with auto-coding tools for XML Web services and generic C/C++ XML data bindings. Also supports JSON-RPC.

The toolkit analyzes WSDLs and XML schemas (separately or as a combined set) and maps the XML schema types and the messaging protocols for XML REST and SOAP to easy-to-use and efficient C and C++ code. It also supports exposing (legacy) C and C++ applications as XML Web services by auto-generating XML serialization code and WSDL specifications.

The toolkit is available under two licenses

  1. GPLv2
  2. Commercial-use license

gSOAP Tutorials

  1. Web Service
  2. Client
586 questions
2
votes
1 answer

gSoap - service call returns with SOAP_OK, but return struct uninitialized

This is a dereference of null pointer problem - in both the ANSI C & gSoap domains: I am using the following public WSDL: http://www.mobilefish.com/services/web_service/countries.php?wsdl and have tested its behavior using soapUI. I created…
ryyker
  • 22,849
  • 3
  • 43
  • 87
2
votes
1 answer

Setting SSL_CTX_set_cipher_list() fails with "No cipher match" error

I'm trying to limit the cypher list in my gsoap ssl server using SSL_CTX_set_cipher_list(). But the method returns with 0, no matter what list I provide. Without setting the list everything works fine. I'm basically doing the same as in gsoap…
maersk
  • 103
  • 2
  • 7
2
votes
1 answer

multi-threaded gSOAP services

Is there a way for the stub/skeleton compiler to generate threaded services (i.e. by spawning a thread for each request or by thread pooling) or do I have to manually add soap_copy(), pthread_create() ... I know that -- according to the FAQ and user…
user696597
  • 41
  • 2
  • 6
2
votes
1 answer

Relocation R_X86_64_PC32 against undefined symbol can not be used when making a shared object; recompile with -fPIC

I recently upgraded gSOAP from 2.8.7 to 2.8.76. I had to make a few minor code adjustments for the upgrade, but after the upgrade the code won't link on the computer it would before. I'm trying to use gSOAP to create a shared library on a computer…
Nick
  • 589
  • 7
  • 18
2
votes
1 answer

gSOAP namespace prefix problem

I have noticed a few people have asked this question but I haven't been able to find a satisfactory answer. I am using gSOAP to create c++ stubs from a wsdl document. The problem is gSOAP is prefixing the namespace to the soap method names when…
toc777
  • 2,607
  • 2
  • 26
  • 37
2
votes
0 answers

Upgrading to TLS1.2 (LINUX C++ GSOAP), encounter SSL_ERROR_SYSCAL

Q1: We would like to know the possible root cause of the following: After upgrading from gsoap 2.8.21 to 2.8.70 , we encountered issue upon executing SSL_Connect (during handshake) when we are trying to use one of the methods of the generated gsoap…
2
votes
3 answers

gSOAP and general SOAP problem

I am using gSOAP to create C++ code from a WSDL document. The problem is gSOAP is giving me errors when I run the wsdl2h tool on my WSDL file. The errors are all related to namespace issues. For example Warning: could not find element…
toc777
  • 2,607
  • 2
  • 26
  • 37
2
votes
2 answers

web service slowdown

I have a web service slowdown. My (web) service is in gsoap & managed C++. It's not IIS/apache hosted, but speaks xml. My client is in .NET The service computation time is light (<0.1s to prepare reply). I expect the service to be smooth, fast and…
wiwulo
  • 201
  • 3
  • 10
2
votes
1 answer

valgrind reports memory leak in gsoap

Valgrind is detecting some memory leaks in Gsoap. This is a very basic example code: //file hr.cpp #include "soapH.h" #include "ns1.nsmap" int main() { struct soap *soap_ = soap_new(); soap_destroy(soap_); soap_end(soap_); …
hebrerillo
  • 21
  • 3
2
votes
1 answer

Gsoap, ONVIF and discovery

How can I get gsoap to generate proper bindings for ONVIF and ws-discovery together? I have no problem generating one or the other, but not both combined. This will generate proper wsdiscovery bindings: wsdl2h -g -o wsdiscovery.h -t typemap.dat…
Jon Smirl
  • 349
  • 2
  • 10
2
votes
1 answer

gSoap fault SOAP-ENV:MustUnderstand[no subcode]

I am building a web service for ONVIF camera using gSoap. I have generated the header and the source files using the core wdsl provided by ONVIF at https://www.onvif.org/profiles/specifications/. However, every time i make a request from the client…
thunderbird
  • 2,715
  • 5
  • 27
  • 51
2
votes
1 answer

gSOAP - is there a way to specify the time for soap_wsse_add_UsernameTokenDigest?

I'm trying to use gSOAP to talk to a network camera that supports ONVIF, and I need a way to specify the time that soap_wsse_add_UsernameTokenDigest uses when it hashes the password. At the moment I'm unable to insure that both the camera and my…
Michael Kohne
  • 11,888
  • 3
  • 47
  • 79
2
votes
2 answers

gsoap: how to make it configurable?

I've implemented client for my Web Service. Auto-generated files for each web method contain hardcoded bindings to web service end point: soap_endpoint = "http://localhost/MyService.asmx"; It is fine for development purposes, but before pushing…
Budda
  • 18,015
  • 33
  • 124
  • 206
2
votes
1 answer

Is there an easier way to set/get values in a gSOAP request/response?

I am using gSOAP to configure an ONVIF compatible camera. Currently, I am manually setting all the parameters in the request by doing something like this. This is for the SetVideEncoderConfiguration MediaBindingProxy mediaDevice (uri); AUTHENTICATE…
mndar
  • 21
  • 2
2
votes
1 answer

Axis Client gsoap Server

I already have a C++ server containing a service that inserts an user to the DB, the service work's great when I test it on console. But the fact is that I'm developing a Java client application that consumes the service with Apache Axis,…
ALREy Max
  • 21
  • 1