Đang chuẩn bị nút TẢI XUỐNG, xin hãy chờ
Tải xuống
In this chapter you will learn: What a web service is; how to publish and consume web services in Netbeans; the elements that comprise web services, such as service descriptions and classes that implement web services; how to create client desktop and web applications that invoke web service methods. | 28 JAX-WS Web Services, Web 2.0 and Mash-Ups A client is tome a mere unit, a factor in a problem. Sir Arthur Conan Doyle They also serve who only stand and wait. John Milton .if the simplest things of nature have a message that you understand, rejoice, for your soul is alive. Eleonora Duse Protocol is everything. Francoise Giuliani OBJECTIVES In this chapter you will learn: What a web service is. How to publish and consume web services in Netbeans. The elements that comprise web services, such as service descriptions and classes that implement web services. How to create client desktop and web applications that invoke web service methods. The important part that XML and the Simple Object Access Protocol (SOAP) play in enabling web services. How to use session tracking in web services to maintain client state information. How to use JDBC with web services to connect to databases. How to pass objects of user-defined types to and return them from a web service. 28.1 . | 28 JAX-WS Web Services, Web 2.0 and Mash-Ups A client is tome a mere unit, a factor in a problem. Sir Arthur Conan Doyle They also serve who only stand and wait. John Milton .if the simplest things of nature have a message that you understand, rejoice, for your soul is alive. Eleonora Duse Protocol is everything. Francoise Giuliani OBJECTIVES In this chapter you will learn: What a web service is. How to publish and consume web services in Netbeans. The elements that comprise web services, such as service descriptions and classes that implement web services. How to create client desktop and web applications that invoke web service methods. The important part that XML and the Simple Object Access Protocol (SOAP) play in enabling web services. How to use session tracking in web services to maintain client state information. How to use JDBC with web services to connect to databases. How to pass objects of user-defined types to and return them from a web service. 28.1 Introduction 28.1.1 Downloading, Installing and Configuring Netbeans 5.5 and the Sun Java System Application Server 28.1.2 Web Services Resource Center and Java Resource Centers at www.deitel.com 28.2 Java Web Services Basics 28.3 Creating, Publishing, Testing and Describing a Web Service 28.3.1 Creating a Web Application Project and Adding a Web Service Class in Netbeans 28.3.2 Defining the HugeInteger Web Service in Netbeans 28.3.3 Publishing the HugeInteger Web Service from Netbeans 28.3.4 Testing the HugeInteger Web Service with Sun Java System Application Server’s Tester Web Page 28.3.5 Describing a Web Service with the Web Service Description Language (WSDL) 28.4 Consuming a Web Service 28.4.1 Creating a Client to Consume the HugeInteger Web Service 28.4.2 Consuming the HugeInteger Web Service 28.5 SOAP 28.6 Session Tracking in Web Services 28.6.1 Creating a Blackjack Web Service 28.6.2 Consuming the Blackjack Web Service 28.7 Consuming a Database-Driven Web Service from a Web .