商品描述
content<div><p>Learn how to develop REST-style and SOAP-based web services and clients with this quick and thorough introduction. This hands-on book delivers a clear, pragmatic approach to web services by providing an architectural overview, complete working code examples, and short yet precise instructions for compiling, deploying, and executing them. You’ll learn how to write services from scratch and integrate existing services into your Java applications. </p><p> With greater emphasis on REST-style services, this second edition covers HttpServlet, Restlet, and JAX-RS APIs; jQuery clients against REST-style services; and JAX-WS for SOAP-based services. Code samples include an Apache Ant script that compiles, packages, and deploys web services. </p><ul><li>Learn differences and similarities between REST-style and SOAP-based services </li><li>Program and deliver RESTful web services, using Java APIs and implementations </li><li>Explore RESTful web service clients written in Java, JavaScript, and Perl </li><li>Write SOAP-based web services with an emphasis on the application level </li><li>Examine the handler and transport levels in SOAP-based messaging </li><li>Learn wire-level security in HTTP(S), users/roles security, and WS-Security </li><li>Use a Java Application Server (JAS) as an alternative to a standalone web server </li></ul></div>sourceProduct Descriptioncontent<div class="aplus"> <h4>Q&A with Martin Kalin, author of "Java Web Services: Up and Running, 2nd Edition"</h4> <p><strong>Q. Why is your second edition of “Java Web Services: Up and Running” important for people to read right now?</strong></p> <p>A. Web services and their clients are an increasingly prominent aspect of the web. For example, social networking sites such as Facebook, Instagram, Twitter, and Tumblr together with e-commerce sites such as Amazon and eBay make available, through web services, the same data and functionality available through traditional websites. Indeed, it is rare nowadays to develop a website that is not paired with a web service. </p> <p><strong>Q. What will readers walk away with after reading "Java Web Services: Up and Running?"</strong></p> <p>A. The main informational points can be summarized as follows: <ul><li>Web services are a way to deliver data and functionality using existing technologies and infrastructures already in place. Such services represent a low-fuss approach to web-based applications.</li> <li>Web services represent a straightforward way to automate web-based tasks (for instance, ordering supplies from a vendor) and to integrate legacy software systems (for instance, a legacy COBOL system) with more modern systems.</li> <li>Web services are platform and language neutral: a web service written in a particular language and published on a particular platform is accessible to clients written in many other languages and executing on basically any computing device, from an industrial-strength server to a cell phone.</li> <li>Java provides complete coverage of web services, on the service and the client side; Java provides such coverage with rich options for programming and publishing web services.</li> <li>Web services come in two major flavors, REST-style and SOAP-based, and Java has excellent support for each flavor—on the service and the client side.</li></ul></p> <p>The book emphasizes code, on both the service and the client side. Accordingly, there are various full-code examples, on the service side, for all of popular Java APIs for doing REST-style and SOAP-based web services: HttpServlet, JAX-RS, Restlet, JAX-WS. There are also extensive examples on the client side, including clients against popular real-world services such as those from Amazon and Twitter. The book includes a full chapter on wire-level and users/roles security. </p> <p><strong>Q. What's the most exciting and important thing happening in this Java web services?</strong></p> <p>A. The distinction between traditional HTML-based websites and web services continues to blur. For one thing, modern websites typically contain JavaScript (in one dialect or another) embedded within the HTML; and embedded JavaScript is increasingly used to write clients against web services. </p> <p><strong>Q. Can you give us a few tips when getting started with Java Web Services?</strong></p> <p>A. 1. Traditional programming skills used to create Java-based websites using the JSP/ HttpServlet APIs transfer nicely to REST-style web services. The publication of a Java-based web service is essentially the same as that for a Java-based website (for example, a web server such as Tomcat or Jetty can be used for either). <br><br>2. Despite the growing popularity of REST-style services, SOAP-based services delivered over HTTP/HTTPS remain a programmer-friendly variant of REST-style services; and SOAP-based clients are typically easier to write than REST-style ones. <br><br>3. Programming a web service and then publishing it are nicely separated concerns: In general, how the service is programmed (for instance, the APIs used) has little or no impact on how the service is published (for instance, with a command-line publisher, a commercial-grade web server such as Tomcat, or a full-blown Java Application Server such as GlassFish or JBoss). <br><br>4. jQuery and other JavaScript dialects make it increasingly easy to embed web-service clients within HTML pages. <br><br>5. Securing a web service is essentially the same as securing a web site. </p> </div>sourceAmazon.com Review
商品描述(中文翻譯)
學習如何開發 REST 風格和基於 SOAP 的網路服務及客戶端,這本快速且全面的入門書籍提供了清晰、務實的網路服務方法,通過提供架構概述、完整的工作程式碼範例,以及簡短而精確的編譯、部署和執行指令。您將學會如何從零開始編寫服務,並將現有服務整合到您的 Java 應用程式中。
這第二版更強調 REST 風格的服務,涵蓋了 HttpServlet、Restlet 和 JAX-RS API;針對 REST 風格服務的 jQuery 客戶端;以及基於 SOAP 的服務的 JAX-WS。程式碼範例包括一個 Apache Ant 腳本,用於編譯、打包和部署網路服務。
- 學習 REST 風格和基於 SOAP 的服務之間的差異和相似之處
- 使用 Java API 和實作來編程和交付 RESTful 網路服務
- 探索用 Java、JavaScript 和 Perl 編寫的 RESTful 網路服務客戶端
- 強調應用層的 SOAP 基於網路服務的編寫
- 檢查基於 SOAP 的消息處理和傳輸層
- 學習 HTTP(S) 的線路級安全性、用戶/角色安全性和 WS-Security
- 使用 Java 應用伺服器 (JAS) 作為獨立網路伺服器的替代方案
與《Java Web Services: Up and Running, 2nd Edition》的作者 Martin Kalin 的問答
Q. 為什麼您第二版的《Java Web Services: Up and Running》對人們現在閱讀很重要?
A. 網路服務及其客戶端在網路上越來越重要。例如,社交網路網站如 Facebook、Instagram、Twitter 和 Tumblr,以及電子商務網站如 Amazon 和 eBay,通過網路服務提供與傳統網站相同的數據和功能。事實上,現在開發一個不與網路服務配對的網站是很少見的。
Q. 讀者在閱讀《Java Web Services: Up and Running》後會獲得什麼?
A. 主要的信息點可以總結如下:
- 網路服務是一種利用現有技術和基礎設施交付數據和功能的方式。這些服務代表了一種低麻煩的網路應用程序方法。
- 網路服務代表了一種自動化基於網路的任務(例如,從供應商訂購物品)和將舊有軟體系統(例如,舊有的 COBOL 系統)與更現代系統整合的直接方式。
- 網路服務是平台和語言中立的:用特定語言編寫並在特定平台上發布的網路服務可以被用許多其他語言編寫並在基本上任何計算設備上執行的客戶端訪問,從工業級伺服器到手機。
- Java 提供了對網路服務的全面支持,無論是在服務端還是客戶端;Java 提供了豐富的選擇來編程和發布網路服務。
- 網路服務有兩種主要類型,REST 風格和基於 SOAP,Java 對每種風格都有出色的支持——無論是在服務端還是客戶端。
這本書強調程式碼,無論是在服務端還是客戶端。因此,對於所有流行的 Java API 進行 REST 風格和基於 SOAP 的網路服務,服務端都有各種完整的程式碼範例:HttpServlet、JAX-RS、Restlet、JAX-WS。客戶端也有廣泛的範例,包括針對 Amazon 和 Twitter 等流行現實服務的客戶端。這本書還包括一整章關於線路級和用戶/角色安全性。
Q. 在 Java 網路服務中,最令人興奮和重要的事情是什麼?
A. 傳統的基於 HTML 的網站和網路服務之間的區別持續模糊。一方面,現代網站通常包含嵌入在 HTML 中的 JavaScript(以某種方言);而嵌入的 JavaScript 越來越多地用於編寫針對網路服務的客戶端。
Q. 您能給我們一些開始使用 Java 網路服務的提示嗎?
A.
1. 用於創建基於 Java 的網站的傳統編程技能(使用 JSP/HttpServlet API)可以很好地轉移到 REST 風格的網路服務。發布基於 Java 的網路服務本質上與發布基於 Java 的網站相同(例如,可以使用 Tomcat 或 Jetty 等網路伺服器)。
2. 儘管 REST 風格服務的受歡迎程度不斷上升,但通過 HTTP/HTTPS 提供的基於 SOAP 的服務仍然是 REST 風格服務的程序員友好變體;而且基於 SOAP 的客戶端通常比 REST 風格的客戶端更容易編寫。
3. 編程網路服務然後發布它們是明確分開的問題:一般來說,服務的編程方式(例如,使用的 API)對服務的發布方式(例如,使用命令行發布者、商業級網路伺服器如 Tomcat,或完整的 Java 應用伺服器如 GlassFish 或 JBoss)幾乎沒有影響。
4. jQuery 和其他 JavaScript 方言使得在 HTML 頁面中嵌入網路服務客戶端變得越來越容易。
5. 保護網路服務本質上與保護網站相同。