gsoap

gSoap shared data types between interfaces

六月ゝ 毕业季﹏ 提交于 2019-12-05 01:25:34
I'm trying to implement two windows services that each one implements is own gSoap interface, and both are clients and servers of each interface. So my problem is that i use the same data type in both interfaces (class with members) and generate the c++ code with the soapcpp2.exe -q option that will create two different namespaces, this is fine and it works, but the problem is that the data type that should be equal in both interfaces are now different due to the namespace separation, but if i remove the namespaces i will have conflicts because the shared data type have the same name in both

gSoap generated client-side structure initialization and use

我的未来我决定 提交于 2019-12-04 20:29:12
gSoap generated client-side structure initialization and use (using ANSI C bindings) First of all, I searched and although there are a number of struct initialization solutions offered, I did not find anything directly answering this issue. Also, this question is being posted simply to assist anyone else that has a similar question, as I have already worked out the solution and because of my newbie status will post it immediately at least 8 hours after posting this. However, I am still very interested in comments and edits to the solution I will offer from those with better solutions, or with

gSoap: how to gracefully shutdown the webservice application?

拥有回忆 提交于 2019-12-04 19:57:32
I'm using gSoap to write a webservice. It's running as a console application. In all gSoap examples I see, that requests are dispatched in infinite loop like for(;;;) even in multi-threaded version. But how can I make my webservice to terminate gracefully when, say, user presses space on the console? Preferably: stop accepting new connections; Serve existing ones; Exit from application The section 7.2.4 How to Create a Multi-Threaded Stand-Alone Service in the documentation has example code for writing an accept loop. You need to write your own accept loop and add signal handling so it

how to use SSL in C++ gSOAP generated classes

核能气质少年 提交于 2019-12-03 13:55:22
i need to use gsoap library in C++ and i need to use https. documentation says how to work with HTTPS in C, but not in C++ (http://www.cs.fsu.edu/~engelen/soapdoc2.html#tth_sEc19.20). in particular, i have compulation error on soap_ssl_init(); function. i've looked /usr/lib/libgsoap* files and found ligsoapssl++.a file and linked against it. this error has gone, but i get error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed . that's mean i need to call soap_ssl_client_context func, but there isn't in C++ generated classes. What should i do? UPD: i've solved this

gSOAP Multithreading

匿名 (未验证) 提交于 2019-12-03 08:59:04
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: 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 = Conf.listener_port; if (!port) CardSrvc.serve(); else { if (CardSrvc.run(port)) { CardSrvc.soap_stream_fault(std::cerr); exit(-1); } } return 0; } But i want multithreading, so i looked in the documentation and found their example , which i tried instead my code. While compiling i get this errors: main.cpp: In function int main

gsoap使用

匿名 (未验证) 提交于 2019-12-02 23:55:01
一. 安装gsoap 下载地址: http:/ /sourceforge.net/projects /gsoap2/files / 解压安装:./configure -- prefix=/usr/local/gsoap && make && make install 示例目录:gsoap-2.8/gsoap/samples 有各类语言使用接口方法 async chaining gmt Makefile mashup README . txt udp xml - rpc - json atom chaining ++ googleapi Makefile . am mashup ++ rest varparam autotest curl hello Makefile . cpp_proxy_rules mtom roll wcf aws databinding httpcookies Makefile . cpp_proxy_rules_j mtom - stream router webserver calc dime link Makefile . cpp_rules oneway rss wsa calc ++ dom link ++ Makefile . c_rules oneway ++ ssl wsrm calc_vs2005 factory lu Makefile .

gSoap EWS “Error 500: Internal Server Error”

戏子无情 提交于 2019-12-02 17:45:55
问题 I have some problems with ews(gSoap). I have next code: ExchangeServiceBindingProxy *proxy = new ExchangeServiceBindingProxy(endpoint.c_str()); soap *pSoap = proxy->soap; pSoap->userid = "Ivan1"; pSoap->passwd = "1"; pSoap->ntlm_challenge = ""; pSoap->authrealm = "Ursa-Minor"; pSoap->ssl_flags = SOAP_SSL_NO_AUTHENTICATION; pSoap->keep_alive = true; pSoap->mode = SOAP_IO_KEEPALIVE; //get root folder ID ns3__DistinguishedFolderIdType *dfit = new ns3__DistinguishedFolderIdType(); dfit->Id = ns3_

Using gSoap in Qt/Windows

℡╲_俬逩灬. 提交于 2019-11-30 16:04:44
问题 I followed the steps on gSoap's page and tried to run the example code in Qt/Windows with Mingw32 Compiler. However, I can't add lgsoap++ to linker, as stated in the documentation, since it is not in the source package To complete the build, compile and link the generated soapC.cpp, soapcalcProxy.cpp, and the run-time gSOAP engine -lgsoap++ (or use source stdsoap2.cpp in case libgsoap++.a is not installed) with your code. Then I tried adding stdsoap2.cpp to SOURCES and this is the compile

What license do I need to use gSOAP in a commercial product? [closed]

淺唱寂寞╮ 提交于 2019-11-29 02:27:19
问题 I'd like to use gSOAP in a product which will be distributed commercially. The use I have in mind is what I suspect is a pretty typical workflow—generating a header using wsdl2h, consuming the header with soapcpp2, and then calling the functions generated in the stub in my code. I'm not 100 percent sure which license(s) I need to use to be able to do this. Has anybody here already gone through this and figured out the solution? 回答1: I hope the following clarification helps. Please contact us

gSOAP Multithreading

放肆的年华 提交于 2019-11-27 15:52:11
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 = Conf.listener_port; if (!port) CardSrvc.serve(); else { if (CardSrvc.run(port)) { CardSrvc.soap_stream_fault(std::cerr); exit(-1); } } return 0; } But i want multithreading, so i looked in the documentation and found their example , which i tried instead my code. While compiling i get this errors: main.cpp: In function int main(int, char**)': main.cpp:56: error: soap_serve'