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

gSoap XML data binding - Possible to auto complete read/write functions?

I am using several XML files each with their own handler class. Each class has loadXML and exportXML functions that are identical but one line. I would like to determine a method where I don't have to copy and paste each time I create a new…
0
votes
3 answers

check NULL value of a std:string pointer

In c++, as far as I know, I believe that a std::string cannot represent the absence of a value. Therefore, in case of a method returning a pointer to a std::string such as, std::string *myMethod(). Does it make sense to check if the return value…
vilanova
  • 77
  • 1
  • 10
0
votes
1 answer

gSOAP C++ - UTF8 Data encoding

I have a problem with gSOAP C++. I want to read some records from a postgres database. For that I set the client_encoding to UTF-8. In the sent.log of gSOAP I have those characters: überstr. or öde (First should be a "ü" and the second one a…
user2622344
  • 956
  • 1
  • 10
  • 26
0
votes
1 answer

How to dereference pointer when pointee value assigned in response

I want to dereference a pointer firsm->RootFolder->TotalItemsInView which takes value, when response is arrived. ns1__MessageType* messgT = new ns1__MessageType(); std::vector v; int count; ews__FindItemResponseMessageType *firsm…
Tushar Soni
  • 115
  • 1
  • 12
0
votes
2 answers

gSoap EWS "Error Schema Validation"

I have some problems with ews(gSoap) for GetServerTimeZones operation. my client code is: //request ews__GetServerTimeZonesType *zoneReq = new ews__GetServerTimeZonesType(); zoneReq->Ids = new…
Tushar Soni
  • 115
  • 1
  • 12
0
votes
1 answer

How do I put the exception message from gsoap then send to a std::string?

I know the code below could print the exception, but how do I put the exception message to the std::string? The code below prints the exception proxy.soap_stream_fault(std::cout);
Ken Yup
  • 23
  • 7
0
votes
1 answer

How to catch exceptions from gsoap?

I'm currently building an iphone app based on gsoap for the communication. I'm trying to manage connection problems and I can't find any specific return statement when the device is not connected to host. Is there a way to get some kind of…
Romain Piel
  • 11,017
  • 15
  • 71
  • 106
0
votes
1 answer

gSOAP to WCF . Application/soap+xml; charset=utf-8

I have simple web service running on http://calculator.gear.host/Service1.svc I have no problem while do call from WCF Test Client and have error while calling from gSOAP c++ client. HTTP/1.1 415 Cannot process the message because the content type…
vico
  • 17,051
  • 45
  • 159
  • 315
0
votes
1 answer

How to tell CMake when using add_library to not include a specific object file

I am trying to make a static library, for example my_lib.a. This library is depending from a gSoap code - file2.cpp.o, which is generated because of this CMake instruction (and 2 custom commands): add_library(${TARGET_NAME} ${SRC_FILES} …
Anton
  • 41
  • 8
0
votes
1 answer

does gSoapWinhttp plugin with gSoap supports linux

I'm using gSoap proxy services for ews and i need SSL and Auth. support for the endpoint. While my prefer platform is Linux. From gSoap documentation http://www.cs.fsu.edu/~engelen/soapdoc2.html found that it has all SSL and Auth. support in C for…
Tushar Soni
  • 115
  • 1
  • 12
0
votes
2 answers

consume gsoap webservice from .NET client

From a .NET application, how do I consume a Web Service developed using gSoap c/C++ library? I can create a C/C++ client using gSoap library to consume the web service. But I need to consume it from within a .NET (C#) application. I tried Adding a…
byte
  • 1,665
  • 1
  • 19
  • 36
0
votes
0 answers

Generate 2 wsdl from 2 header files that import a third .h file without obtaining double structures

I have some C++ headers files and I want to make their content available through a webservice using gSOAP. The headers are: Shared.h, A.h, B.h; both A.h and B.h include (import) the Shared.h file. I generated two separate WSDL documents: A.wsdl…
Knacker
  • 31
  • 1
  • 5
0
votes
0 answers

Warning with soapcpp2.exe compilation in gSoap

This is what i have got on cmd after run WSservice.h header file with soapcpp2.exe C:\Users\Tushar\Desktop\zzzzz>soapcpp2 -i -C -I C:\Users\Tushar\Desktop\gsoap_2. 8.22\gsoap-2.8\gsoap\import WSservice.h ** The gSOAP code generator for C and C++,…
Tushar Soni
  • 115
  • 1
  • 12
0
votes
1 answer

Connect to right custom Exchange server

I am trying to implement a client side service which exchange data with exchange server, so i'm using gSoap library. However i want that any user can access their own mail data with their official mail credentials via my this client service. I'm…
Tushar Soni
  • 115
  • 1
  • 12
0
votes
1 answer

Does gSOAP RESTful implementation require the definition of a WSDL

I looked through the samples in gSOAP and the rest example defines a WSDL and then generates code for the client and server applications. Is there a way to implement a RESTful service using gSOAP without defining a WSDL? When i try to compile the…
Michael
  • 546
  • 1
  • 7
  • 19