• /  13
  • 下載費用: 10.00積分  

Java語言程序設計10E LiangPPT習題案例39slide.ppt

'Java語言程序設計10E LiangPPT習題案例39slide.ppt'
*Chapter 39 Web Services*ObjectivesTo describe what a Web service is (§39.1).To create a Web service class (§39.2).To publish and test a Web service (§39.3).To create a Web service client reference (§39.4).To explain the role of WSDL (§39.4).To pass object type of arguments in a Web service (§39.5).To discover how a client communicates with a Web service (§39.5).To describe what are SOAP request and SOAP response (§39.5).To track a session in Web services (§39.6).*What is a Web Service?Web service is a technology that enables programs to communicate through HTTP on the Internet. Web services enable a program on one system to invoke a method in an object on another system. You can develop and use Web services using any languages on any platform. Web services are simple and easy to develop.*What is SOAP?Web services run on the Web using HTTP. There are several APIs for Web services. A popular standard is the Simple Object Access Protocol (SOAP), which is based on XML. The computer on which a Web service resides is referred to as a server. The server needs to make the service available to the client, known as publishing a Web service. Using a Web service from a client is known as consuming a Web service.*How does a client communicate with a Web serviceA client interacts with a Web service through a proxy object. The proxy object facilitates the communication between the client and the Web service. The client passes arguments to invoke methods on the proxy object. The proxy object sends the request to the server and receives the result back from the server, as shown in Figure 39.1. *Creating Web Services Using NetBeans Create a Web project, Create a Web service, deploy Web service*Testing Web Services*Testing Web Services*Consuming Web Services Creating a Web service client*What is WSDL? When you created a Web service reference, you entered a WSDL URL, as shown in Figure 39.6. A .wsdl file is created under the xm-resources folder, as shown in Figure 39.8. So what is WSDL? WSDL stands for Web Service Description Language. A .wsdl file is an XML file that describes the available Web service to the client, i.e., the remote methods, their parameters, and return value types, etc.*Passing and Returning Arguments*XML serialization/deserialization Can you pass an argument of any type between a client and a Web service? No. SOAP only supports primitive types, wrapper types, arrays, String, Date, Time, List, and several other types. It also supports certain custom classes. An object that is sent to or from a server is serialized into XML. The process of serializing/deserialization objects, called XML serialization/deserialization, is performed automatically. For a custom class to be used with Web methods, the class must meet the following requirements:The class must have a no-arg constructor.Instance variables that should be serialized must have public get and set methods. The classes of these variables must be supported by SOAP.*Web Service Session Tracking §37.8.3, “Session Tracking Using the Servlet API,” introduced session tracking for servlets using the javax.servlet.http.HttpSession interface. You can use HttpSession to implement session tracking for Web services. To demonstrate this, consider an example that generates random True/False questions for the client and grades the answers on these questions for the client.
關 鍵 詞:
liangppt 習題 10 10e 案例 39slide 程序設計 語言 39 java
 天天文庫所有資源均是用戶自行上傳分享,僅供網友學習交流,未經上傳用戶書面授權,請勿作他用。
關于本文
本文標題:Java語言程序設計10E LiangPPT習題案例39slide.ppt
鏈接地址: http://www.476824.live/p-51617556.html
關于我們 - 網站聲明 - 網站地圖 - 資源地圖 - 友情鏈接 - 網站客服點擊這里,給天天文庫發消息,QQ:1290478887 - 聯系我們

本站為“文檔C2C交易模式”,即用戶上傳的文檔直接賣給(下載)用戶,本站只是中間服務平臺,本站所有文檔下載所得的收益歸上傳人(含作者)所有【成交的100%(原創)】。本站是網絡服務平臺方,若您的權利被侵害,侵權客服QQ:1290478887 歡迎舉報。

[email protected] 2017-2027 http://www.476824.live 網站版權所有

粵ICP備19057495號 

收起
展開
球探网即时蓝球比分 安徽十一选五基本走势 时时彩老平台哪个好 广东好彩1怎么玩 _百家乐玩法 东方财富股票行情网 疯狂飞艇如何更高几率中 安徽福彩快三开奖查询 多乐彩中奖规则 今天快3走势图一定牛 河北11选5最容易出的3个号