stoneyrh / gsoap Goto Github PK
View Code? Open in Web Editor NEWMirror to gSOAP from SourceForge
License: Other
Mirror to gSOAP from SourceForge
License: Other
I am trying to encrypt the soap message using the function soap_wsse_add_EncryptedKey() but it is not encrypting the soap body.
Here is the snapshot of the code.
soap_wsse_set_wsu_id((*proxy)->soap, "wsse:BinarySecurityToken SOAP-ENV:Body");
if ( soap_wsse_add_BinarySecurityTokenX509((*proxy)->soap, "X509Token", *cert1 )
|| soap_wsse_add_KeyInfo_SecurityTokenReferenceX509((*proxy)->soap, "#X509Token")
|| soap_wsse_sign_body((*proxy)->soap, SOAP_SMD_SIGN_RSA_SHA256, *pkey1, 0)
|| soap_wsse_sign_only((*proxy)->soap, "SOAP-ENV:Body") ) {
return ( 3 );
}
soap_wsse_add_EncryptedKey((*proxy)->soap, SOAP_MEC_AES256_CBC, "Cert", <X509> public key cert, NULL, NULL, NULL)
Document says to follow this way to encrypt. but it is failing to encrypt the data, I am using gsoap-2.8.116, same was happening with lower version of gsoap. Any help will be highly appreciated.
gsoap\uddi2 Run make and an error is reported
error: invalid initialization of reference of type ‘uddi2__bindingDetail&’ from expression of type ‘uddi2__bindingDetail*’
if (soap_call___inq2__find_USCOREbinding(soap, endpoint, NULL, this, result))
We found seperate SSL and JSON-RPC( gsoap-2.8/gsoap/samples/xml-rpc-json/ssl & xml-json-rpc) examples and they are working fine individually. We intergrated SSL server(/ssl/sslserver.c) into json-currentTimeServer.cpp and SSL client(ssl/sslclient) into json-currentTime.cpp.We can able encrypt JSON RPC request from RPC client(Seen in wireshark) and not able detect by json_recv(ctx, request) in server.
Is it JSON-RPC over SSL is strongly discouraged?
How can we approach SSL integration in JSON-RPC
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.