欢迎来到麦多课文档分享! | 帮助中心 海量文档,免费浏览,给你所需,享你所想!
麦多课文档分享
全部分类
  • 标准规范>
  • 教学课件>
  • 考试资料>
  • 办公文档>
  • 学术论文>
  • 行业资料>
  • 易语言源码>
  • ImageVerifierCode 换一换
    首页 麦多课文档分享 > 资源分类 > PPT文档下载
    分享到微信 分享到微博 分享到QQ空间

    The gSOAP Toolkit.ppt

    • 资源ID:373279       资源大小:1,001KB        全文页数:27页
    • 资源格式: PPT        下载积分:2000积分
    快捷下载 游客一键下载
    账号登录下载
    微信登录下载
    二维码
    微信扫一扫登录
    下载资源需要2000积分(如需开发票,请勿充值!)
    邮箱/手机:
    温馨提示:
    如需开发票,请勿充值!快捷下载时,用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)。
    如需开发票,请勿充值!如填写123,账号就是123,密码也是123。
    支付方式: 支付宝扫码支付    微信扫码支付   
    验证码:   换一换

    加入VIP,交流精品资源
     
    账号:
    密码:
    验证码:   换一换
      忘记密码?
        
    友情提示
    2、PDF文件下载后,可能会被浏览器默认打开,此种情况可以点击浏览器菜单,保存网页到桌面,就可以正常下载了。
    3、本站不支持迅雷下载,请使用电脑自带的IE浏览器,或者360浏览器、谷歌浏览器下载即可。
    4、本站资源下载后的文档和图纸-无水印,预览文档经过压缩,下载后原文更清晰。
    5、试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。

    The gSOAP Toolkit.ppt

    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

    11、ruct BG *left; struct BG *right; ;, 1 2 3 ,IEEE CCGrid May 22, 2002,15,Deserialization,gSOAP generates deserialization code, including schema-driven XML pull parser Auto-validating Streaming Fast: match inbound XML elements to “expected” elements in the schema Keep table with “forward” XML refs Back

    12、-patching method: resolve forward refs later by copying pointers and/or referenced data,IEEE CCGrid May 22, 2002,16,Deserialization Example,1,2,3,IEEE CCGrid May 22, 2002,17,Results,Interoperability testing Legacy code integration Scalability and performance,IEEE CCGrid May 22, 2002,18,Interoperabil

    13、ity Testing,WhiteMesa.org “interop lab” Suite of test cases designed for real-time interoperability testing over the Web Apache Axis, .NET, Delphi,IEEE CCGrid May 22, 2002,19,Legacy Code Example: Linear System Solver,Application code from Numerical Recipes in C Web Service: LU Decomposition Backsubs

    14、titution Solve Multi-solve Matrix inversion,IEEE CCGrid May 22, 2002,20,Linear System Solver,Original Numerical Recipes in C routine: ludcmp(double *a, int n, int *indx, double *d) sum = aij; ,Modified routine (array size n stored in class instances): ludcmp(matrix *a, ivector *indx, double *d) sum

    15、= aij; ,C+ class declarations for the generation of (de)serializers with gSOAP: class vector double *_ptr; / pointer to array of double int _size; / run-time array size double,IEEE CCGrid May 22, 2002,21,Linear System Solver,Remote procedure declaration for stub and skeleton generation with gSOAP: n

    16、s_ludcmp ( matrix *a, / input matrix struct ns_ludcmpResponse matrix *a; / output matrix ivector *i; / output index reordering vector double d; / output parameter for determinant *result ),Remote procedure SOAP server interface routine called by skeleton: ns_ludcmp(matrix *a, struct ns_ludcmpRespons

    17、e ,IEEE CCGrid May 22, 2002,22,Linear System Solver,Linear system solver server code (CGI-based): main() soap_serve(); / process request (skeletons) ,Example client code: main() struct ns_ludcmpResponse result; matrix a; if (soap_call_ns_ludcmp(“URL”, “”, ,IEEE CCGrid May 22, 2002,23,Scalability and

    18、 Performance,Scalability and overhead of communication vs. computation LU-based matrix inversion Performance (send 32bit int matrix) Full SOAP XML-encoded matrix SOAP Base64-encoded matrix CGI-based SOAP Web Service Stand-alone SOAP Web Service Java RMI,IEEE CCGrid May 22, 2002,24,Matrix Inversion,S

    19、tand-alone linear system solver service (TCP sockets) Full double fp. matrix representation in SOAP XML Total time of client request and server response (10BaseT, Dual PIII 550MHz, Red Hat Linux),IEEE CCGrid May 22, 2002,25,CGI-Based Web Service,Total time of client request and server response (10Ba

    20、seT, Dual PIII 550MHz, Red Hat Linux) SOAP XML-encoded 32bit int matrix SOAP Base64-encoded 32bit int matrix,IEEE CCGrid May 22, 2002,26,Stand-Alone Service and Java RMI,Total time of client request and server response (10BaseT, Dual PIII 550MHz, Red Hat Linux) SOAP XML-encoded 32bit int matrix SOAP Base64-encoded 32bit int matrix Java RMI (1.2.2),IEEE CCGrid May 22, 2002,27,Conclusions,Application centric SOAP/XML Web Service interoperable Legacy numerical code integration Scalability and performance Future work: IDL DIME Performance enhancements Peer-to-peer networks,


    注意事项

    本文(The gSOAP Toolkit.ppt)为本站会员(progressking105)主动上传,麦多课文档分享仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知麦多课文档分享(点击联系客服),我们立即给予删除!




    关于我们 - 网站声明 - 网站地图 - 资源地图 - 友情链接 - 网站客服 - 联系我们

    copyright@ 2008-2019 麦多课文库(www.mydoc123.com)网站版权所有
    备案/许可证编号:苏ICP备17064731号-1 

    收起
    展开