gsoap

WSDL best practices

安稳与你 提交于 2019-12-23 15:19:17
问题 I'm developing a SOAP application that integrates with a 3rd party. I think the WSDL of this third party is very strange. I'm pretty new to SOAP, so I don't want to go asking them to fix it if it isn't broken. Here's some things I've noticed that I consider wrong about it, though I'm sure it's technically a valid document (hence the reason I wrote "best practices" in the title). Also, I'm using gSOAP as my SOAP library, which may be why I think some of these things are weird (I'm even newer

How to compile gSoap with ssl enabled on windows?

谁说胖子不能爱 提交于 2019-12-23 04:06:37
问题 I am trying to build gSoap binaries with ssl support. I have downloaded the latest gSoap and binaries for WIN32 openssl from this website: http://slproweb.com/products/Win32OpenSSL.html According to the gSoap documentation, I have to compile using the standard procedure with the DWITH_OPENSSL option enabled. I think the most natural option would be tu use minGW, but I have little experience with this tool. When I try this, (and after applying this patch I am left with two missing libraries a

HTTP 401 Unauthorized error in sending GetItem Request

坚强是说给别人听的谎言 提交于 2019-12-23 03:47:12
问题 I'm using EWS GetItem operation to fetch data from exchange server, but i've got following error Error 401 fault: SOAP-ENV:Server[no subcode] "HTTP Error" Detail: HTTP/1.1 401 Unauthorized However my login credential are correct, since those are works well with findItem request and response, but when GetItem request goes to server it give above error. My credentials are like: soap *pSoap = proxy->soap; proxy->soap_endpoint = "https://outlook.office365.com/ews/exchange.asmx"; pSoap->userid =

how to remove xsi:type information from gSoap message?

与世无争的帅哥 提交于 2019-12-22 17:52:13
问题 I am woking on windows platform, gSoap is working fine but it integrates complex type defination in the soap message. How to remove these complex type definition from soap message xsi:type="ns4:MYServerRequestDto" xsi:type="ns4:MySettingDto" how to regenerate gsoap files so it will not include type information? <?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns

How to deploy a gSOAP Web Service in Ubuntu?

你。 提交于 2019-12-22 09:10:23
问题 I have a doubt concerning the deployment of a Web Service in Ubuntu. It was implemented using gSOAP and it should be deployed, e.g. be accessible from websites (which are developed in e.g. ASP .NET). I got confused with the whole CGI, Ubuntu, Apache topics. Until now I was able to implement a Web Service in ASP .NET and deploy it on Microsoft ISS. Other than that I can also access a gSOAP Web Service described in a WSDL, using ASP .NET What are the steps to deploy my own Web Service? I have

Sharing generated code for shared imported XSD files

断了今生、忘了曾经 提交于 2019-12-22 08:46:45
问题 I use gSOAP for XML data binding. Recently I refactored my XSD files by extracting a common part from two files to a separate third file and then imported it in the first two files. This was a deep and complex element that was refactored out. In actual code I would like to have a single function that takes an object of gSOAP generated type describing that element and constructs some internal objects. But for this I would need to have that generated class be stable and same for both final XSD

how to use SSL in C++ gSOAP generated classes

橙三吉。 提交于 2019-12-21 04:27:29
问题 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

gSOAP Multithreading

旧巷老猫 提交于 2019-12-17 14:18:34
问题 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

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

时间秒杀一切 提交于 2019-12-14 02:19:08
问题 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 SOAP_ENV__Header { public: void *dummy; /* transient */ }; Is there something I missed, or it is supposed to be like this only and we have to make changes here? I have read here some info, but my header is just dummy. Secondly, for further debugging, I wanted to

Communication between gSOAP client and Java webservice over HTTPS

淺唱寂寞╮ 提交于 2019-12-13 03:45:39
问题 I'm developing a client server pair, where the server is based on Java, and the client is based on C++ (gSOAP). The communication works perfectly with using HTTP. Now I want to implement an encrypted communication based on HTTPS. Therefore I followed the gSOAP tutorial on https://www.genivia.com/tutorials.html#cert To create self signed certificates: one for the client, one for the webservice. Then I converted the .pem files using OpenSSL as you find here: openssl pkcs12 -export -in