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
3
votes
4 answers

Compile gsoap-onvif solve #error: ‘M_ASN1_STRING_data’ was not declared in this scope

I'm trying to compile the gsoap-onvif project here: https://github.com/xris-hu/gsoap-onvif I call the make file and it throws some errors. Working on ubuntu 18.10 i solved some of them installing the dependencies: g++, gsoap,…
Jonny
  • 85
  • 1
  • 7
3
votes
2 answers

Connecting to WCF web service using gSOAP

I am writing a simple cmd client to try to consume the WCF web service i developed in order to test how to connect to the Web service using unmanaged C++. I have been following this tutorial…
Ahmed I. Khalil
  • 743
  • 6
  • 20
3
votes
1 answer

Onvif device not found by Onvif device manager

I'm trying to implement a camera device server with onvif profile s standards using gsoap. on ws dynamic discovery, when I tried to run code in https://github.com/mpromonet/ws-discovery/blob/master/gsoap/server.cpp, Onvif device manager does not…
rotringuser
  • 113
  • 15
3
votes
4 answers

C++ - gsoap : Parameter passing memory management issues

I am writing a web server and client test stub for it. I have questions regarding memory management of the parameters. From my client I am calling a soap function ns1_func1(input * pInput, output* pOutput) Now both input and output class contain…
Happy-Go-Lucky
3
votes
2 answers

SOAP1.1 or SOAP1.2

I have two request messages generated by gSOAP library: 1 POST http://localhost:8998/Service1.svc/ HTTP/1.1 Host: localhost:8998 User-Agent: gSOAP/2.8 Content-Type: application/soap+xml; charset=utf-8;…
vico
  • 17,051
  • 45
  • 159
  • 315
3
votes
3 answers

Is there an Objective-C Wrapper for gSOAP?

I'm going to use gSOAP to interact with a WCF webservice in my Mac project. It does pretty much exactly what I need and it does it well (pretty much the exact opposite of WSMakeStubs;)). The only downside is that it's C/C++ only, meaning I either…
Redwood
  • 66,744
  • 41
  • 126
  • 187
3
votes
3 answers

gSOAP server with multiple wsdl from ONVIF specifications

I'm trying to create a web service in C++ using gSOAP. I generated a couple of headers from ONVIF wsdl: wsdl2h -x -o dm.h http://www.onvif.org/onvif/ver10/device/wsdl/devicemgmt.wsdl -tC:\gsoap-2.8\gsoap\typemap.dat wsdl2h -x -o an.h…
Knacker
  • 31
  • 1
  • 5
3
votes
2 answers

gSoap with multiple WSDLs

I try to make c++ proxies form multiple WSDLs, but generated proxy class has wrong endpoint. Result endpoint for each method in proxy class is a joined value like: soap_endpoint = "http://endpoint1 http://endpoint2 etc". After running: wsdl2h.exe…
skozlovf
  • 241
  • 1
  • 3
  • 13
3
votes
1 answer

ONVIF WS-Discover 1.0 - Client and Event Handlers

In my onvif client application I'm looking to implement the WS-Discovery with gsoap and wsddapi.c, but I have problems with the handler. I can send multicast message over UDP with soap_wsdd_probe (wsddapi.c), I have implemented the soap_bind, the…
Luca84
  • 63
  • 1
  • 4
3
votes
1 answer

GSOAP: enabling keep alive in gsoap

I need to enable keep alive in gsoap. I tried it by setting soap.keep_alive = 1 and setting the keep alive flag for input/output modes. But still I am not observing keep alive messages in wireshark. How to enable keep alive in gsoap and what are the…
3
votes
1 answer

Usage of compression on WCF web service and gSOAP

I wish to add compression to the WCF based web service to reduce the payload and increase throughput. But the issue is that I consume the service from a c/linux application using gSOAP. I know gSOAP allows compression, but I am not sure if gSOAP and…
Kangkan
  • 15,267
  • 10
  • 70
  • 113
3
votes
2 answers

Weird structure member alignment in C++ / gSoap 2.8.2

I've encountered a weird structure member alignment issue in C++. This happens when using gSoap 2.8.2. gSoap defines this struct: struct SOAP_STD_API soap { short state; /* 0 = uninitialized, 1 = initialized, 2 = copy of another soap struct…
Rudolfs Bundulis
  • 11,636
  • 6
  • 33
  • 71
3
votes
5 answers

Where can find WSDL file generated by gSOAP

I received url of web service running on gSOAP/2.7 (deciding from HTTP headers). The problem is they didn't provide me with WSDL file. Anybody knows which default URL I should look for WSDL if service address is http://www.host.com/
Sergej Andrejev
  • 9,091
  • 11
  • 71
  • 108
3
votes
4 answers

Network programming: SOAP vs DIY marshalling with XML library?

I know that there are a lot of discussions already on SO about SOAP, bloat, XML, and alternative mechanisms like REST. Here's the situation. A new team member is really talking up SOAP based upon the difficulty of implementing protocols by hand. He…
Wannabe Tycoon
  • 307
  • 1
  • 3
  • 10
3
votes
3 answers

Linking error gsoap in mac in c

I try to add gsoap in my application. I built gsoap for i386. Created c code with under commands: wsdl2h -c -s -o soap.h soap.wsdl soapcpp2 -c -C soap.h I got files. After this I tried to include these to my app. I added to my project in xCode.…
James
  • 523
  • 4
  • 19