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

soapcpp2 can't generate soapClient.c file

I am trying to build a tr069 client using gsoap. I followed the instructions in the document but I could not get soapClient.c. Here is the steps: wsdl2h -c -o tr069.h cwmp-1-1.xsd --> this generate tr069.h soapcpp2 -c tr069.h --> this only…
user195678
  • 535
  • 4
  • 13
  • 27
1
vote
3 answers

wsdl2h can't connect to https

I'm trying to use gSoap to connect to a web service secured with https. However, when I run wsdl2h with an https url, it throws the following error: Cannot connect to https site: no SSL support, please rebuild wsdl2h with SSL or download the files…
IslandCow
  • 3,412
  • 3
  • 19
  • 24
1
vote
1 answer

Trying to use gSoap with WCF and WSHttpBinding

I am attempting to use the gSoap library to talk to a WCF server with the WSHttpBinding. I seem to be running into a problem with the WS-Addressing plugin for gSoap. When I enable the WS-Addressing plugin, by using #import "wsa5.h" I can no longer…
IslandCow
  • 3,412
  • 3
  • 19
  • 24
1
vote
4 answers

WCF WSDL only offers complex types / methods

I've found my way to WCF + WSDL. It works great in a first example with gSOAP and axis2. But I'm also faced with one issue: When I look at my WSDL, it always uses complex types (request and response) for remote procedure calls.
Matthias
  • 15,919
  • 5
  • 39
  • 84
1
vote
2 answers

gSOAP WSSE Header missing xmlns namespace declarations

I have a problem generating a gSOAP security header (WSSE). I have compiled all the necessary file and used the following calls to add the WSSE security header to the…
Daniel Retief Fourie
  • 626
  • 2
  • 10
  • 20
1
vote
0 answers

WS-Discovery Proxy (Ubuntu, gSOAP, C++)

WS-Discovery Proxy I've been trying to get an older example of a WS-Discovery Proxy implemented in C++ to run. It can be found here https://github.com/mpromonet/ws-discovery I know it's a shot in the dark, but I really need a working Discovery…
farDev
  • 11
  • 2
1
vote
0 answers

Can't use anyAttribute using gSOAP generated c++ code

I have an XSD schema file using anyAttributes for allowing custom extensions for different users. Unfortunately, I am getting problems with the C++ code generated by gSOAP. It works fine for everything not being modeled as anyAttributes, but if…
CJacker
  • 11
  • 3
1
vote
3 answers

Gsoap undefined references

I'm trying to use and web service with gsoap. I've already generated all *.h and *.cpp using wsdl2h and soapcpp2, included all libraries, at least I think so, but when I build the project it gives me the message of undefined references to a lot of…
Thiago Aciely
  • 33
  • 1
  • 7
1
vote
0 answers

soap_in() missing compilation error for gSOAP

I'm working on a existing C++ project which uses gSOAP. I have switched from std::string to custom one and trying to force gSOAP to use it instead. I have defined following file for soapcpp2: //env.h extern class Wlp::string; extern typedef…
UmmaGumma
  • 5,633
  • 1
  • 31
  • 45
1
vote
0 answers

How do I tell gsoap to not serialize NULL elements?

The class I'm using for my SOAP requests has a ton of optional elements, and they're getting serialized as some value some…
John Bode
  • 119,563
  • 19
  • 122
  • 198
1
vote
1 answer

WCF and gSOAP - interoperable code?

I'm trying to write a simple WCF Server + gSOAP client proof-of-concept application using SOAP 1.2 protocol. Here's server code: [ServiceContract(Namespace="http://test.com")] public interface IService1 { [OperationContract] void…
galets
  • 17,802
  • 19
  • 72
  • 101
1
vote
1 answer

Access Amazon S3 services with C++ GSOAP client

I am starting to develop an app to access the Amazon S3 storage using the SOAP API. I have read the documents that says the the method PutObject must be used if the file size is greater than 1 MB. Now PutObject uses DIME attachment. Is there a…
david
  • 11
  • 3
1
vote
0 answers

gsoap: Specify schema type for optional element xsd:anyType

I am trying to login to a webservice using the following code: _ns1__Login log; log.soap = proxy.soap; log.systemname = &loginData.systemName[0]; log.username = &loginData.username[0]; log.Password = &loginData.password[0]; log.timeout =…
singed
  • 11
  • 1
1
vote
2 answers

Does LabWindows/CVI have something similar to _setmode() for setting the file (or stream) translation mode to binary or text?

I am using gSoap to generate ANSI C source code, that I would like to build within the LabWindows/CVI environment, on a Windows 7, 64 bit OS. The gSoap file stdsoap2.c includes several instances of the _setmode() function, with the following…
ryyker
  • 22,849
  • 3
  • 43
  • 87
1
vote
1 answer

XML+SOAP: are newlines permitted?

I'm working with SOAP and XML to interact with some web-services. I noticed that gsoap-generated routines do not have newlines and they work correctly. I successively tried to write my own routines by using libxml2, which indents the XML with…
Ottavio Campana
  • 4,088
  • 5
  • 31
  • 58