Hamidreza Sattari - Spring Web Services 2 Cookbook [2012, PDF, ENG]

seeders: 6
leechers: 0
Added 11 years ago by -Jackal- in Books  > Non-Fiction

Download Fast Safe Anonymous
movies, software, shows...

Files

Hamidreza Sattari - Spring Web Services 2 Cookbook [2012, PDF, ENG] (Size: 4.74 MB)
  Hamidreza Sattari - Spring Web Services 2 Cookbook - 2012.pdf 4.74 MB

Description


Книги и журналы » Компьютерная литература » Программирование (книги)


Spring Web Services 2 Cookbook

[hr]
Год: 2012
Автор: Hamidreza Sattari
Жанр: Тестирование ПО
Издательство: Packt Publishing
ISBN: 978-1-84951-582-5
Язык: Английский
Формат: PDF
Качество: Изначально компьютерное (eBook)
Количество страниц: 322
[hr]
Описание:
This is a cookbook full of recipes with the essential code explained clearly and comprehensively. Each chapter is neatly compartmentalized with focused recipes which are perfectly organized for easy reference and understanding. This book is for Java/J2EE developers. As the books covers a variety of topics in Web-Service development, it will serve as a reference guide to those already familiar with Web-Services. Beginners can also use this book to gain real-world experience of Web-Service development.
[spoiler="Оглавление"]
Chapter 1: Building SOAP Web-Services 5
Introduction 6
Using Maven for building and running a Spring-WS project 9
Creating a data contract 13
Setting up a Web-Service using DispatcherServlet 15
Simplifying the creation of a Web-Service using MessageDispatcherServlet 20
Setting up a Web-Service on JMS transport 24
Setting up a Web-Service on E-mail transport 28
Setting up a Web-Service on embedded HTTP transport 33
Setting up Spring-WS on XMPP transport 36
Setting up a contract-first Web-Service 38
Setting up a simple endpoint mapping for the Web-Service 42
Setting up an endpoint by annotating the payload-root 45
Setting up a transport-neutral WS-Addressing endpoint 49
Setting up an endpoint using an XPath expression 52
Handling the incoming XML messages using DOM 55
Handling the incoming XML messages using JDOM 58
Handling the incoming XML messages using JAXB2 61
Validating the XML messages at the server side using an interceptor 64
Chapter 2: Building Clients for SOAP Web-Services 69
Introduction 69
Setting up a Web-Service client development environment within Eclipse 70
Setting up a Web-Service client development environment using Maven 73
Creating a Web-Service client on HTTP transport 77
Creating a Web-Service client on JMS transport 80
Creating a Web-Service client on E-mail transport 83
Setting up a Web-Service on XMPP transport 86
Creating a Web-Service client using XPath expressions 89
Creating a Web-Service client for a WS-Addressing endpoint 93
Transforming a Web-Service message using XSLT 96
Chapter 3: Testing and Monitoring Web-Services 99
Introduction 99
Integration testing using Spring-JUnit support 100
Server-side integration testing using MockWebServiceClient 104
Client-side integration testing using MockWebServiceServer 107
Monitoring TCP messages of a Web-Service using TCPMon 110
Monitoring and load/functional testing of a Web-Service using soapUI 114
Chapter 4: Exception/SOAP Fault Handling 121
Introduction 121
Handling server-side exceptions by returning the exception's message
as a SOAP fault string 122
Mapping exception class names to SOAP faults 125
Annotating exception classes with @SOAPFault 129
Writing your own exception resolvers in Spring-WS 134
Chapter 5: Logging and Tracing of SOAP Messages 139
Introduction 139
Logging message payload manually 140
Logging both request and response SOAP Envelopes using log4j 144
Logging both request and response using Spring-WS's Interceptors 147
Using Eclipse IDE to debug a Spring-WS 152
Chapter 6: Marshalling and Object-XML Mapping (OXM) 159
Introduction 159
Marshalling with JAXB2 160
Marshalling with XMLBeans 165
Marshalling with JiBX 169
Marshalling with XStream 174
Marshalling with MooseXML 177
Creating a custom marshaller using XPath for conditional XML parsing 181
Chapter 7: Securing SOAP Web-Services using XWSS Library 187
Introduction 187
Authenticating a Web-Service call using plain/digested username token 189
Authenticating a Web-Service call using Spring security to authenticate
a username token with a plain/digested password 196
Authenticating a Web-Service call using a JAAS service to authenticate
a username token 203
Preparing pair and symmetric keystores 208
Securing SOAP messages using digital signature 216
Authenticating a Web-Service call using X509 certificate 220
Encrypting/decrypting of SOAP messages 225
Chapter 8: Securing SOAP Web-Services using WSS4J Library 235
Introduction 235
Authenticating a Web-Service call using a username token with
a plain/digest password 237
Authenticating a Web-Service call using Spring security to authenticate
a username token with a plain/digest password 242
Securing SOAP messages using a digital signature 247
Authenticating a Web-Service call using an X509 certificate 251
Encrypting/decrypting SOAP messages 253
Chapter 9: RESTful Web-Services 261
Introduction 261
Setting up a Spring RESTful Web-Service using RESTful features in
Spring MVC 263
Using the REST Client tool to access Spring RESTful Web-Service 268
Setting up a Spring RESTful Web-Service using HTTP message conversion 270
Creating a WS Client for the Spring RESTful Web-Service using
Spring template classes 276
Chapter 10: Spring Remoting 281
Introduction 281
Setting up Web-Services using RMI 282
Setting up a servlet-based Web-Service using Hessian/Burlap, exposing
business beans 286
Setting up Web-Services using JAX-WS 290
Exposing servlet-based Web-Services using Apache CXF 293
Exposing Web-Services using JMS as the underlying
communication protocol 295
Index 299
[/spoiler]
[spoiler="Примеры страниц"]

[/spoiler]