1. Trang chủ
  2. » Giáo Dục - Đào Tạo

spring web services 2 cookbook [electronic resource] over 60 recipes providing comprehensive coverage of practical real-life implementations of spring-ws

322 715 0

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 322
Dung lượng 4,74 MB

Nội dung

[...]... Web- Services using Apache CXF Exposing Web- Services using JMS as the underlying communication protocol Index 21 6 22 0 22 5 23 5 23 5 23 7 24 2 24 7 25 1 25 3 26 1 26 1 26 3 26 8 27 0 27 6 28 1 28 1 28 2 28 6 29 0 29 3 29 5 29 9 iii Preface Spring Web- Services (Spring- WS), introduced by the SpringSource community (http://www springsource.org/), aims to create contract-first SOAP Web- Services in which either a WSDL or an XSD... covers the different implementations of Web- Service's endpoint using technologies such as DOM, JDOM, XPath, and Marshaller Chapter 2, Building Clients for SOAP Web- Services: This chapters covers building SOAP Web- Services clients over HTTP, JMS, XMPP, and E-mail protocols, using Spring- WS template classes Preface Chapter 3, Testing and Monitoring Web- Services: This chapter explains the testing of Web- Services. .. authentication Covering all of these key features of Spring- WS 2. x has been the main goal of this book However, in the last two chapters, a different approach toward Web- Service development using REST-style and contract-last development using Spring remoting feature are detailed What this book covers Chapter 1, Building SOAP Web- Services: This chapter covers setting up SOAP Web- Services over HTTP, JMS,... Web- Service Setting up a Spring RESTful Web- Service using HTTP message conversion Creating a WS Client for the Spring RESTful Web- Service using Spring template classes Chapter 10: Spring Remoting Introduction Setting up Web- Services using RMI Setting up a servlet-based Web- Service using Hessian/Burlap, exposing business beans Setting up Web- Services using JAX-WS Exposing servlet-based Web- Services using Apache... 114 121 121 122 125 129 134 Chapter 5: Logging and Tracing of SOAP Messages 139 Chapter 6: Marshalling and Object-XML Mapping (OXM) 159 Chapter 7: Securing SOAP Web- Services using XWSS Library 187 Introduction Logging message payload manually Logging both request and response SOAP Envelopes using log4j Logging both request and response using Spring- WS's Interceptors Using Eclipse IDE to debug a Spring- WS... so on—are built on the SOAP protocol The Web- Services that use SOAP, along with WSDL and XML schema, have become the standard for exchanging the XML-based messages The Spring Web- Services facilitate SOAP service development, by providing a comprehensive set of APIs and configurations for the creation of flexible Web- Services The following diagram shows how a Spring- WS works when it receives an incoming... using the Spring- WS feature, based on the WSS4J package Chapter 9, RESTful Web- Services: This chapter explains REST Web- Service development using RESTful support in Spring Chapter 10, Spring Remoting: We will discuss contract-last Web- Service development using Spring remoting features to expose local business services as a Web- Service using Hessian/ Burlap, JAX-WS, JMS, and a recipe to set up a Web- Service... create contract-first SOAP Web- Services in which either a WSDL or an XSD is required primarily for the creation of a Web- Service Since Spring- WS is a Spring- based product, it takes advantage of Spring' s concepts such as Inversion of Control (IOC) and dependency injection Some of the key features of Spring- WS are: ff Powerful endpoint mappings: The incoming XML requests can be forwarded to any handler object,... org.apache.catalina.core.StandardEngine start 11 Building SOAP Web- Services INFO: Starting Servlet Engine: Apache Tomcat/6.0 .29 org.apache.catalina.core.ApplicationContext log Set web app root : 'webapp.root' = [ src\main\webapp\] INFO: Initializing log4j from WEB- INF\log4j.properties] INFO: Initializing Spring FrameworkServlet 'spring- ws' INFO - FrameworkServlet 'spring- ws': initialization Oct org.apache.coyote.http11.Http11Protocol... very simple Web- Service using the Spring- MVC DispatcherServlet and the components provided by Spring- WS Getting ready In this recipe, the project's name is LiveRestaurant_R-1 .2 with the following Maven dependencies: ff spring- ws-core -2. 0.1.RELEASE.jar ff log4j-1 .2. 9.jar 15 Building SOAP Web- Services How to do it 1 Copy the service contract from the resources folder (orderService.wsdl) 2 Create an .

Ngày đăng: 29/05/2014, 20:52

TỪ KHÓA LIÊN QUAN