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
0 answers

gSoap + HTTP Error: 400 Bad Request : Causes?

I am getting an error when i make a call like soap_call__ns2_HelloWorld(&soap,NULL,NULL,&req,&resp) Error 400 fault: SOAP-ENV:Client [no subcode] "HTTP Error: 400 Bad Request" Detail: [no detail] WSDL was published on a Windows Server 2008 R2,…
3
votes
0 answers

Dynamic arrays in gSOAP the C++ way, using STL vector instead of __ptr/__size?

I am developing a web service using gSOAP 2.8.8. I would like to send an unbounded sequence of a custom data type. I can implement this by following section 11.11 of gSOAP's User Guide like so: class ns__InnerType { std::string someStr; int…
Philip
  • 1,532
  • 12
  • 23
3
votes
1 answer

gsoap wsdl2h failing on wcf wsdl file

I'm using the gsoap tool wsdl2h on a wsdl file that was automatically generated by a windows client when a service reference was added for the WCF service in Visual Studio. wsdl2h -o service.h service.wsdl ** The gSOAP WSDL/Schema processor for C…
user1646528
  • 437
  • 2
  • 7
  • 15
3
votes
5 answers

Where have you used gSOAP?

Can you give examples how you used gSOAP and how well it was integrated in your existing architecture? Have you found development bottlenecks with gSOAP?
citn
  • 1,522
  • 3
  • 18
  • 29
3
votes
1 answer

how to stop gSOAP operations

In my application I use gSOAP in a separate thread. Timeouts for connect, send and recive are set to 10s. When I want to stop the application (or just pause that thread to change some settings) I sometimes have to wait the whole 10 seconds (for…
Adam Trhon
  • 2,915
  • 1
  • 20
  • 51
2
votes
2 answers

Writing webservice in C/C++

I'm starting to develop a client webservice in C/C++. I don't know which library to use. I've read about Axis2C and gSoap. Any suggestion for developing a C/C++ SOAP webservice client? It seems that Axis2C is being discontinued.
jlanza
  • 1,208
  • 3
  • 23
  • 43
2
votes
1 answer

Implementation of generic SOAP client using gSOAP

Is there any clear documentation or samples to implement Generic SOAP Client using gSOAP as they implement the online version of it here?
csk
  • 418
  • 1
  • 5
  • 11
2
votes
1 answer

gSOAP Multithreading

iam trying to build an multihreading webservice. Single threading is working, in my main function i use this: int main(int argc, char **argv) { CardSoapBindingService CardSrvc; Config Conf ; Conf.update(); int port =…
user1010775
  • 361
  • 3
  • 7
  • 24
2
votes
1 answer

WCF service for gSOAP client

I have received a request to build a Service to handle trafic from a predesigned client. The documentation stated the service is a SOAP service but I later found out the protocol used by the predesigned client is gSOAP using SOAP 1.2 The issue I get…
Dorana
  • 311
  • 1
  • 4
  • 12
2
votes
2 answers

gracefully shutdown (multi-threaded) gSOAP service with http-keepalive enabled

I have a multi-threaded gSOAP service running with enabled http-keepalive. How can I gracefully shutdown the service when there are still clients connected? A similar question was asked in gSoap: how to gracefully shutdown the webservice…
audiocomplex
  • 33
  • 1
  • 6
2
votes
2 answers

How to pass header information to the soap header SOAP_ENV__Header, in c++ using gsoap

I am working on calling the webservices using the gsoap packages in c++ and get the responses. I have to pass some header information as well, which I am not sure how to do that, as my header is like this - /* SOAP Header: */ struct…
Deepak
  • 21
  • 4
2
votes
0 answers

Best way to do arrays in gsoap, considering WSDL compliance and performance

I'm using gsoap to generate an XML SOAP parser and WSDL grammar, and was wondering what is the recommended way to express a static array that is both fast to parse and generates a corresponding WSDL that passes all the validation tests (like Eclipse…
Matt Ball
  • 1,434
  • 2
  • 17
  • 24
2
votes
0 answers

gsoap and WS-Notification

I would like to use WS-Notification in my gsoap client in order to receive notifications from a server. I have developed the wsdl, and every operation, except the notification operations, are built correctly. I ran a search on the web to find for a…
Daniel
  • 127
  • 1
  • 8
2
votes
0 answers

Link errors using Qt custom types instead of STL types in gsoap binding

I'm developing a Qt C++ program which must send data to a web-service. I have used gsoap (v2.8.111) to generate the data binding source code this way: wsdl2h -v -c++ -t ./typemap.dat -o binding/DonaldDuck.h ./DonaldDuck.wsdl wsdl2h -v -c++ -t…
2
votes
2 answers

type conversion warnings in porting 32 bit app to 64 bit app using sizeof operator

I am porting an application from 32 bit to 64 bit. The application includes gSoap generated ANSI C source code. The prototypes of several generated soap functions include int data types in the argument list, such as: int PASCAL FAR setsockopt ( …
ryyker
  • 22,849
  • 3
  • 43
  • 87