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
7
votes
1 answer

Ignore an unknown XML element node in GSOAP

I am new to GSOAP, so might be missing something obvious here. But I really couldn't find its solution in GSOAP documentations. I need to know, how do I silently ignore an unknown node in my xml in GSOAP without affecting other nodes. For example: I…
foobar
  • 2,887
  • 2
  • 30
  • 55
6
votes
2 answers

Why does gSOAP set stdin mode to binary if reads data from a file stream?

I've been playing with gSOAP XML data binding by loading XML document into C++ class, modifying data and serializing it back into XML. Here's the snippet of the XML - library.xml:
Bojan Komazec
  • 9,216
  • 2
  • 41
  • 51
6
votes
1 answer

Web service client library for C++

I'd like to implement a web service client for a project on Windows. I want to get web service info, soap request and soap response. I need a C++ library that I can use for these purposes (not wsdlpull). Requirements: should be a C++ library can be…
csk
  • 418
  • 1
  • 5
  • 11
6
votes
1 answer

XML/C++ type binding goes wrong

I have a WSDL file which I need to generate a c++ web service code from it. The toolchain I'm using is gSOAP. The problem is that the generated server class, have a function for each operation with parameters as char* instead of something like…
sorush-r
  • 10,490
  • 17
  • 89
  • 173
6
votes
2 answers

undefined reference to vtable - virtual member, classes generated by gsoap

gsoap with its tools wsdl2h and soapcpp2 provided me with a soapStub.h file containing the following: class SOAP_CMAC ns2__SOAPKunden { public: std::string *adresszusatz; // ... public: virtual int soap_type() const { return 7; } …
groovehunter
  • 3,050
  • 7
  • 26
  • 38
5
votes
1 answer

How to compile multiple gsoap client webservices into one executable?

I using gSOAP for web services, but i have a problem i must compile 2 web services into one executable file, and some functions have same names instead of argument for using other prefix for function names. Compilation Error: X.o: In function…
Svisstack
  • 16,203
  • 6
  • 66
  • 100
5
votes
1 answer

Is gsoap threadsafe as a soap client?

I'm using gsoap 2.8 in order to connect to a WCF service (My application is the client). Is it threadsafe? Should I define some precompiled definition? Thanks, Mattan
Mattan
  • 289
  • 1
  • 4
  • 14
5
votes
1 answer

gSOAP Chaining C++ Server Classes to Accept Messages on the Same Port Not Working

We have six WSDLs compiled within the same project, and due to some limits of hardware we can only open one port for listening. For doing this, we choose the approach described by chapter 7.2.8 How to Chain C++ Server Classes to Accept Messages on…
Wallace
  • 561
  • 2
  • 21
  • 54
5
votes
6 answers

WSDL best practices

I'm developing a SOAP application that integrates with a 3rd party. I think the WSDL of this third party is very strange. I'm pretty new to SOAP, so I don't want to go asking them to fix it if it isn't broken. Here's some things I've noticed that…
rmeador
  • 25,504
  • 18
  • 62
  • 103
5
votes
3 answers

gsoap client call blocks when the server is not available

I am looking for a method to detect if the gsoap web service is available. Unfortunately when the service is offline then the client gsoap calls block for a long time. Setting the soap.recv_timeout and the soap.send_timeout to zero do not help.
Gabor Forgacs
  • 495
  • 1
  • 7
  • 16
5
votes
1 answer

Linker error when using gSOAP with 2 different wsdl files

I am writing a C++ web service client using gSOAP on linux using 2 separate wsdl files in the same application. I have managed to get things working with just one wsdl file, and after reading documentation, went through the process of using wsdl2h…
mathematician1975
  • 21,161
  • 6
  • 59
  • 101
4
votes
1 answer

publishing wsdl with gSOAP stand-alone server?

Now, I developed a gSOAP stand-alone server on 8080 port and it's working for SOAP RPC. But I want to return wsdl content of a wsdl file in my file system when clients request for getting wsdl on the 8080 port. what I can do to return wsdl to…
softghost
  • 1,167
  • 1
  • 10
  • 16
4
votes
2 answers

Calling WCF from C code

I am working with a native C client application (not built with Visual Studio) that needs to call a WCF service. I am creating the WCF service, so I have complete control of it. Most of the information I have found deal with calling WCF from…
Edward Leno
  • 6,257
  • 3
  • 33
  • 49
4
votes
0 answers

How to force gSOAP to generate vector of objects (not pointers!) for any XSD style?

I've been playing with gSOAP XML Data Binding and noticed that class generation varies depending on the XML schema style. Let me show you an example: library.xml:
Bojan Komazec
  • 9,216
  • 2
  • 41
  • 51
4
votes
2 answers

VMWare ESX/ESXi CPU usage

I'm using Visual studio 2010 and (native) C++ trying to extract the overall CPU usage of the VMWare host and then the CPU usage of each running VM. I've looked into VMWare Webservice SDK 4.1 using gSoap to build a C++ interface, but its to slow and…
ROAR
  • 1,304
  • 1
  • 11
  • 28
1
2
3
39 40