全文预览已结束
下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
Project 1 SOAP Extensions - 网页服务程序构件设计指要 詹叔浩 The project requires application developers to add credit card payment feature into an existing retail sales system for a chain store. Step by step, the document highlights how to develop application of SOAP XML Web Services and SOAP Web Services. And document will issue important details if you work on a complex system which contains both Web Services and XML Web Services.KEY WORDS:Web Services, XML Web Services, SOAP, SOAP Extensions, SOA Headers Model of Client and Server SOAP Communication WITHOT SOAP Extensions Client SideServer SideReferring to the figure above, we will add feature of processing SOAP message to the below existing SOAP Web Services without SOAP Extensions. Also, the SOAP massage includes costumer credit card info such as card number. Asynchronous call to a Web method does not block other callings while this call is waiting for a result. Whenever developer creates a proxy class on client side, .NET automatically enables asynchronous calls to Web methods. Serialization processes SOAP message and converts one or more message objects to their XML representation. De-serialization processes SOAP message and converts one or more message objects to their binary representation. SOAP Request means a SOAP message sent from client to server for invoking a Web method. SOAP Response means a SOAP message sent from server to client with the results of a Web method.$ 1 Solution Model and AlgorithmReferring to the figure below, the black disks indicate where SOAP Extensions perform. The XML Web Service is named LookUpService. The service LookUpService exposes a Web method named RetrieveCardInfo. The method RetrieveCardInfo takes credit card info from SQL server database and returns it. We capture and inspect and modify SOAP message in Web method RetrieveCardInfo.Model of Client and Server SOAP Communication WITH SOAP Extensions $ 2 Three Major Coding Steps1. We create HTTP and SOAP XML web service using .NET Framework (selecting Console Application).2. We derive SOAP Extensions classes from SoapExtension base class. Thus, the classes expose and implement the following methods: * Getlnitialize (to be called one time when a soap extension is first loaded), * lnitialize (to be called each time for each calling SOAP web service); * ChainStream (for intercepting actual soap message stream), and * ProcessMessage (to be called with actual request and response).3. We intercept a SOAP message and call method EncrptMessage after serialization stage and call method DecryptMessage before deserialization stage.$ 3 Technical NotesWhy do we select SOAP Extensions rather than SOAP headers in this project?This project requires only capture and procedure of confidential SOAP messages instead of security concerns such as authentication (Ex: user name and password for log-in) and authorization (Ex: application role) and encryption (Ex. converting text to secret code). SOAP extensions are a class to be invoked during the serialization or de-serialization of SOAP message and to allow developer to insert customer-own code into SOAP request and response process loop. SOAP extensions are usually deployed in pairs with matching the extension on client and server. SOAP headers are a class to be derived from SoapHeader base class and represent the data in a particular SOAP header. SOAP headers handle authentication, encryption, and signing directly in SOAP messages.$4Whole Picture of Web Services and XML Web ServicesShowing as the Fig below, suppose an object of client application interacts with one object of another client application over internet and server of web services. Referring to the Sketch Figure on the last page, we discuss the technical terms below, (示意图) SOAP (Simple Object Access Protocol) is a standard to encapsulate messages between Web services server and Web services client when the message objects (as well as methods and properties) are transmitted as XML format through HTTP channel. Remember, message objects cannot be invoked! Disco is a Microsoft standard to discover documents of Web services on server by directory connecting to the server. UDDI (Universal Description, Discovery, and Integration) is a multi-vendor standard to discover code details (documents, classes, methods, and so on) of the Web services and other online business services by directory via the Internet. WSDL (Web Service Description Language) is a standard to describe the interface between the Web services and the Web services server. In fact, WSDL let developer to retrieve information on the classes and methods supported by a particular Web service. Disco.exe is a tool related to Disco to discover documents of Web services on server. Wsdl.exe may create Proxy Class connected to Web Reference for communicating with XML Web service. Also, a Local Proxy Class connected to Web Reference may be created for communicating with Web service. When do we select the techniques Wsdl.exe? There are both of Web service and XML Web service in the existing internet system. And a developer may add new-both services to the existing system. SOAP Proxy Tool is used to test and debug Web service without executing Web service client application. XWL wire format is the structure of actual XML file message passed between Web services server and Web services client. By using attributes, .NET allows developer to tailor XML wire format of SOAP message in order to interoperate with other Web services components to not be created by .NET framework or .NET language. (示意图) Sketch Figure Showing Architecture Of Web Service and XML Web Service (Continuing to the Next Page) REMINDS Both web services a
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 保育员宣讲课件
- (2026年)小学音乐老师工作总结
- 塑料成型工艺学课件第七章中空吹塑
- 川教版历史八上《抗日战争的胜利》课件
- 2026下半年高中英语教资面试语法真题
- 刑事诉讼法学第十三章附带民事诉讼
- 分析化学第1章光谱分析法概论
- 2026下半年高中生物教资面试重难点题库参考答案及解析
- 财会岗事业单位结构化面试经典例题试卷带答案
- 小学乒乓球比赛活动方案
- 2026年皖豫天一大联考高三10月英语试题(含答案)
- 高标准农田建设项目初步设计技术规程(NYT 5490-2026 )
- GB/T 9239.1-2026机械振动转子平衡第1部分:引言
- T∕CCEAS008-2026 建设工程造价咨询成果文件质量标准
- 2026年河南省公务员面试考题及答案解析
- 第10课《养成遵纪守法好习惯》第1框《增强遵纪守法意识》-【中职思政】《职业道法与法治》课件(高教版2023基础模块)
- 口腔侵入性操作目录
- 2026年医师定期考核儿科复习试题及完整答案详解【有一套】
- 食品研发工程师的工作绩效考核表
- 外国文学期末高频考点复习资料
- 肝性脑病的早期识别与护理干预
评论
0/150
提交评论