The gSOAP Toolkit.ppt
《The gSOAP Toolkit.ppt》由会员分享,可在线阅读,更多相关《The gSOAP Toolkit.ppt(27页珍藏版)》请在麦多课文档分享上搜索。
1、IEEE CCGrid May 22, 2002,1,The gSOAP Toolkit,Robert van Engelen Kyle Gallivan Florida State University,IEEE CCGrid May 22, 2002,2,Overview,Web Services gSOAP design and implementation Results Conclusions,IEEE CCGrid May 22, 2002,3,Web Services: the Big Picture,SOAP RPC,SOAP DSIG WSDL UDDI,IEEE CCGri
2、d May 22, 2002,4,SOAP,Light-weight protocol based on XML as the marshalling format for data in request and response messages Vendor- and platform-neutral Language-neutral Object-model-neutral Transport-neutral XML allows data transformation (XSLT) XML enables long-term data persistence,IEEE CCGrid M
3、ay 22, 2002,5,WSDL,Web Service registers with UDDI Web Service publishes WSDL Clients can develop proxies from the WSDL for SOAP RPC and messaging,IEEE CCGrid May 22, 2002,6,gSOAP,Open source (C, C+, and Java) 2000 registered users Uses a source-to-source stub and skeleton compiler to automate the i
4、ntegration of SOAP RPC in applications Automates the deployment of (legacy) C/C+ applications as Web Services Automates the development of clients Suitable for high-performance computing,IEEE CCGrid May 22, 2002,7,gSOAP Goals,Application-centric Minimize application code adaptation Support (de)marsh
5、alling of applications native data structures in SOAP/XML Preserve the logical structure of data Minimize data migration overhead and formatting errors Avoid (hand-written) wrappers Generate fast (de)marshalling routines and streaming XML parsers Efficient run-time remote object allocation,IEEE CCGr
6、id May 22, 2002,8,The gSOAP Stub and Skeleton Compiler,Generates source code stubs and skeletons for SOAP RPC Generates XML (de)marshalling routines for native and user-defined C/C+ data types The gSOAP runtime provides low-level HTTP, TCP, SOAP/XML handling and memory management capabilities,HTTP/T
7、CP/SOAP and XML API,Stub/Skeleton and Marshalling Code,User application,Runtime Library,gSOAP-generated,IEEE CCGrid May 22, 2002,9,Development,Server,IEEE CCGrid May 22, 2002,10,Development,Client,IEEE CCGrid May 22, 2002,11,Example,Service description (WSDL): Namespace: urn:xmethods-delayed-quotes
8、Method name: getQuote Input parameter: symbol of type xsd:string Output parameter: result of type xsd:float,Generated remote procedure declaration for stub generation with gSOAP: ns_getQuote(char *symbol, float ,Client code: main() float q; if (soap_call_ns_getQuote(“URL”, “”, “AOL”, q) = 0) cout “A
9、OL: “ q endl; ,IEEE CCGrid May 22, 2002,12,Encoding C/C+ Data Types in XML,Primitive C/C+ types, enum, struct/class with single inheritance, pointers, arrays, special types (e.g. base64) Not supported: unions, void*, templates, multiple inheritance,IEEE CCGrid May 22, 2002,13,Serialization,gSOAP gen
10、erates serialization routines for application types Serialization code traverses object graph at run time to detect co-referenced objects and cycles Serialization code outputs object graph in XML according to SOAP encoding rules,IEEE CCGrid May 22, 2002,14,Serialization Example,struct BG int val; st
- 1.请仔细阅读文档,确保文档完整性,对于不预览、不比对内容而直接下载带来的问题本站不予受理。
- 2.下载的文档,不会出现我们的网址水印。
- 3、该文档所得收入(下载+内容+预览)归上传者、原创作者;如果您是本文档原作者,请点此认领!既往收益都归您。
下载文档到电脑,查找使用更方便
2000 积分 0人已下载
下载 | 加入VIP,交流精品资源 |
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- THEGSOAPTOOLKITPPT
