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

How ssl client in gsoap can send only TLSv1 request to server

I am using gSoap 2.8.16 version. I recently upgraded my openssl at client to 1.0.2d version. But still I have soap server with openssl 1.0.0 version. I am finding protocol version fatal error due to TLS version mismatch in client and server. So I…
Anu
  • 1
  • 1
0
votes
1 answer

gsoap and qt convert variables memory handle

i use this code to convert Qstring to gsoap standard wchar_t; wchar_t *MGsoapQtChanger::toGsoap(QString str) { s= new wchar_t[str.size()+1]; int i=str.toWCharArray(s); s[i]='\0'; return s; } and it work good for me. but the problem…
Mehrdad
  • 13
  • 4
0
votes
2 answers

Undefined reference to a function defined in the same file

I am compiling a code generated with gsoap, and I should compile some files provided by gsoap in /usr/share/gsoap/plugin/ too. The problem is that in linking step, I get undefined reference error: wsseapi.o: In function…
Sheric
  • 416
  • 2
  • 16
0
votes
1 answer

Visual Studio 2005 throws build error in soapclient.cpp I built with GSoap

I have built soapclient.cpp using GSoap libraries all built successfully, without any errors. Now included the necessary files to the project as instructed by the guide (http://www.genivia.com/dev.html#Example_gSOAP_client_(C++)), but getting…
Warrior
  • 59
  • 2
  • 10
0
votes
1 answer

gSOAP files has stray @

I am compiling a program using gSOAP with g++ and qmake. After hours of working around it, I got to this error from the compiler: /usr/share/gsoap/import/ds.h:89:2: error: stray ‘@’ in program @char* Id; ^ Taking a look in the files in…
Sheric
  • 416
  • 2
  • 16
0
votes
2 answers

Internal Server Error in CreateItem operation of EWS

I'm using CreateItem Operation to save message in the Draft folder using EWS with gSOAP toolkit, but when i run the code I've response XML as follows:
Tushar Soni
  • 115
  • 1
  • 12
0
votes
1 answer

gsoap convert anyAttribute to custom type

Using gsoap, I have created a client for a soap server. In wsdl from which I created my sources there is a type with an element of type NotificationMessage as defined in wsnt. Is there any way to convert it to a custom object? I need something like…
Omid
  • 25
  • 5
0
votes
1 answer

Onvif with gsoap status error 4 SOAP_TYPE

I was working with gsoap and onvif, few days ago I encountered an error SOAP_TYPE Here is the command i used with wsdl2h and soapcpp2: wsdl2h -P -x -Ie:\gsoap2.8.24\gsoap -o onvif.h http://www.onvif.org/onvif/ver20/analytics/wsdl/analytics.wsdl…
0
votes
1 answer

making a web services query using gSoap with query arguments

I'm attempting to convert a soap query written for C# into a gSoap query in Visual C++. The C# query adds an XML node's to the query call, in order to pass parameters to the query: XmlNode queryOpts = xmlDoc.CreateNode(XmlNodeType.Element,…
user206705
0
votes
0 answers

How to customize gSOAP XML-generation of fixed arrays?

Main outputs of this are .wsdl and .xsd: $ soapcpp2 -c tmp.h Relevant part of tmp.h is: /* .. */ struct s_t { long an_array[4] 1:1; long another[5] 0:1; }; /* .. */ XML samples are also generated. Is there a way to have influence on…
renonsz
  • 571
  • 1
  • 4
  • 17
0
votes
0 answers

Disable encode unicode strings in Apache Axis client

I use Apache Axis in JSF portlet to connect with gsoap2 server. There is a problem with strings from my client. I need to send some strings in UTF-8 in cyrillic. But client transform strings in my request to ASCII like боб gsoap server have some…
4justman
  • 113
  • 10
0
votes
0 answers

gSoap caches error response in FCGI mode

We are using gSoap compiled with the WITH_FASTCGI flag. The resulting soap FCGI server is processing (successive) SOAP packets OK, but there is a problem with the error responses. The first time an error response is created everything works OK. But…
Lieuwe
  • 1,734
  • 2
  • 27
  • 41
0
votes
2 answers

http status from gsoap header

does anybody knows how to retrieve the http status in gSoap? I have "HTTP/1.1 202 ACCEPTED..." and I want to print the 202 somehow.
cateof
  • 789
  • 3
  • 11
  • 24
0
votes
1 answer

gSOAP C++: nillable attributes

how is it possible to set the xsi:nil="true" attribute on only single elements? With the runtime-flag "SOAP_XML_NIL" I will set it globally, so it affects every attribute. Thank you
user2622344
  • 956
  • 1
  • 10
  • 26
0
votes
1 answer

Regarding GSoap SOAP_IO_KEEPALIVE reset

According to Gsoap manual we intialize SOAP_IO_KEEPALIVE using soap_init2(&soap, SOAP_IO_KEEPALIVE, SOAP_IO_KEEPALIVE); But while closing socket "A client should reset SOAP_IO_KEEPALIVE just before the last call to a server to close the…