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 does **not** close sockets?

I've an issue with gSoap - it's not closing the socket.. Here's the situation: the application is working fine, but when I call "reload" function, it cannot reconnect.. Here's a piece of code: soap_destroy( &m_soapObj ); soap_end( &m_soapObj…
Kiril Kirov
  • 37,467
  • 22
  • 115
  • 187
2
votes
1 answer

gSOAP C++ client memory leak

I have read the gSOAP docs and seen mentions of the fact that one should call soap_destroy(soap) and soap_end(soap) etc., however they are always examples with a single invocation on the service object. The service I am using returns about 40KB of…
user416246
  • 21
  • 4
2
votes
1 answer

Different behavior when automake is used to build a gSoap application

We have developed a simple C++ application using gSoap . When we use classical Makefile, everything is OK and the system works fine. But when we use GNU autotools as the build system, we encounter a strange constraint violation validation error …
2
votes
0 answers

Can't compile wsseapi.c using gSOAP on Linux

On a linux system, I want to create a client app using gSOAP-2.8.8 that interacts with a SOAP service. After exposing the WSDL file, I am unable to compile wsseapi.c. I am using this command: g++ -c wsseapi.c -DWITH_OPENSSL -DWITH_DOM And it…
2
votes
0 answers

soapcpp2.exe not finds stlvector.h

Trying to use gSOAP in windows with help of codeproject sample .I run command soapcpp2.exe -IC:\gsoap-2.8\import C:\polygon\CurrencyConv.h And have error: **Critical error: #import: Cannot open file "stlvector.h" for reading.** Where is problem?
vico
  • 17,051
  • 45
  • 159
  • 315
2
votes
1 answer

gSoap SSL/TLS certificate host name mismatch in tcp_connect

My soap client is not accepting the certificate on the service I have to connect to. It gives the error: SSL/TLS certificate host name mismatch in tcp_connect. However chrome does accept the certificate. I inspected the certificate in chrome and I…
Eelke
  • 20,897
  • 4
  • 50
  • 76
2
votes
3 answers

C++ gsoap mime/dime for binary files in windows

I'm pretty close to losing my head here ;) I'm developing a service that uses gsoap. I would like to return a mime response. I have everything working, but when reading binary files, all kind of files like jpeg, pdf, etc... contains the \0 char…
2
votes
2 answers

Adding From Header Field HTTP POST Header in Gsoap

I am using g-soap-2.8 to send a post request to a web service. But the problem is that the web service requires From (Http Header Field) must be present in Header. But gsoap has no context related to From header field. Can anyone explain how to add…
2
votes
1 answer

how to use ssl certificates in openssl with gsoap, using a c++ client/server

I am using gsoap and openssl under Visual Studio C++, I created a client and a server on localhost (port 443). I have a non explicit error without any description when using (from client side) the option: soap_ssl_client_context(&soap,…
Anas
  • 131
  • 10
2
votes
0 answers

generating soap files for tr069 client, help required

I am using gsoap for implementing the soap stack of my tr069 client completely written in C language. The xsd file i am using is cwmp-1-2.xsd from broadbanforum. In cwmp-1-2.xsd , The ParameterValueStruct is defined as :
Avin
  • 21
  • 1
2
votes
1 answer

gSOAP: How to pass info inside soap header

I wish to send some information like authentication token inside SOAP header. I am using gSOAP/c/Linux. Please help me how to pass? My SOAP_ENV__Header looks like /* SOAP Header: */ struct SOAP_ENV__Header { struct ns3__Header *ns3__MyHeader; …
Kangkan
  • 15,267
  • 10
  • 70
  • 113
2
votes
1 answer

how to remove xsi:type information from gSoap message?

I am woking on windows platform, gSoap is working fine but it integrates complex type defination in the soap message. How to remove these complex type definition from soap message xsi:type="ns4:MYServerRequestDto" xsi:type="ns4:MySettingDto" how…
Mandar
  • 1,006
  • 11
  • 28
2
votes
2 answers

gSoap missing stdsoap2.cpp, undefined reference to `soap_peek_element'

I have a problem with gSoap. I generated files by running these commands: wsdl2h -o calc.h http://www.genivia.com/calc.wsdl soapcpp2 -i -j -I/usr/share/gsoap/import calc.h After that, I included the files to my project pro file: TARGET =…
Micchaleq
  • 433
  • 1
  • 5
  • 21
2
votes
3 answers

gSoap - extracting request/response as XML string

I'm using the gSoap library for my Qt C++ application to interact with some basic web service. Is there a way to extract the full SOAP request/(response) message that is about to be sent/(was received) from soap object as XML string? (for…
Moomin
  • 1,846
  • 5
  • 29
  • 47
2
votes
1 answer

How to not let gSoap add "USCORE" after each underscore in a field's name?

I'm creating web service by gSoap, using existing WSDL and the necessary schemas as argument for the command wsdl2h. I have in my schema the element i_ID declared this way :
Farah
  • 2,469
  • 5
  • 31
  • 52