下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、 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 do
2、cument 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
3、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
4、 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
5、 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 Algorith
6、mReferring 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
7、 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
8、 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 interceptin
9、g 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 r
10、ather 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
11、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 c
12、lient 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
13、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 en
14、capsulate 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 servi
15、ces 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.·
16、; 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
17、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? Th
18、ere 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 d
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 健康医疗行业内部审计流程全解析及面试要点
- 2026年高考化学元素化合物试题解析
- 关于动力和毅力的演讲稿
- 软件测试人员绩效考核制度
- 2026年全国小学英语字母读音与拼写试题
- 2026年大学生军事理论知识竞赛题库及答案(共50道题)
- 书香润泽小学生演讲稿
- 2025年高考历史押题预测卷(全国卷01)(全解全析)
- 2026年高考化学二轮复习 主题3 化学反应原理 综合训练(教师版)
- 书香溢满校园演讲稿高中
- 冲压机械手自动化培训
- 脑卒中患者健康管理制度
- 揭榜挂帅制度管理办法
- 船舶气象仪现场比测方法
- 2025-2030中国皮肤健康检测设备行业应用状况与盈利前景预测报告
- TSG-21-2016-固定式压力容器安全技术监察规程
- 校外培训师资管理制度
- T/CSWSL 010-2019肉鸡用菌酶协同发酵饲料
- 采购基础知识与技巧(第三版)课件:采购谈判
- 2025士兵考学数学冲刺卷
- 2025年无人机驾驶员职业技能考核重点题型试题集
评论
0/150
提交评论