CO-77754 Java EE 6: Develop Web Services with JAX-WS & JAX-RS Summary Duration 5 Days Audience Java Developer, Java EE Developer, J2EE Developer Level Professional Technology Java EE 6 Delivery Method Instructor-led (Classroom) Training Credits Yes Introduction This five day Java EE 6 programming course covers the design and creation of SOAP and RESTful web services and clients. You'll use the NetBeans Integrated Development Environment (IDE) to develop JAX-WS and JAX-RS web services and deploy those services to Oracle WebLogic Server 12c. The majority of topics covered are portable across all application servers which support the Java EE 6 web service standards. Throughout this course, you ll gain knowledge experimenting with real code examples in each topic. It's an excellent way to prepare for the Java Enterprise Edition 6 Web Component Developer certification expert examination. Prerequisites Oracle requires and recommends that delegates have attended the following course prior to attending this course. Required Course: D667236 Java SE 7 Fundamentals Required Course: D667240 Java SE 7 Programming Suggested Course: D71487 Java Design Patterns Suggested Course: D67230 Java SE 7 Develop Rich Client Applications Target Audience Java Developer, Java EE Developer, J2EE Developer Course Content Lesson 1: Introduction to Web Services This Lesson provides an overview of the functionality and purpose of web services.
Explain the need for web services Define web services Explain the characteristics of a web service Explain the use of both XML and JSON in web services Identify the two major approaches to developing web services Explain the advantages of developing web services within a Java EE container Configuring NetBeans to Control WebLogic Server Creating and Deploying Web Service Sample Applications Web Service Testing Lesson 2: XML Document Structure This lesson describes the benefits and usage of XML documents within Java EE development. Describe the benefits of XML Create an XML declaration Assemble the components of an XML document Declare and apply XML Namespaces Validate XML documents by using XML Schemas Create XML Schemas Exploring the PlayingCards Project Creating an XML Document Creating an XML Schema Using XML Namespaces Lesson 3: XML Parsing with JAXB This lesson describes the usage of JAXB for processing XML in Java. List the different Java XML APIs Explain the benefits of JAXB Unmarshall XML data with JAXB Marshall XML data with JAXB Compile XML Schema to Java Generate XML Schema from Java classes Apply JAXB binding annotations Create external binding configuration files Creating Java Classes from XML Schemas Creating XML Schemas from JAXB Annotated Classes Creating Java Classes from XML Schemas Lesson 4: SOAP Web Services an Overview This lesson describes the implementation of SOAP in Java EE. Describe the basic structure of a Simple Object AccessProtocol (SOAP) message and how it is encapsulated by transports Explain how WSDL defines a web service, including its message representation and transport mechanism Explain the purpose of WS-I Basic Profile and WS-Policy Revisiting the Calculator Web Service
Configuring WebLogic for WS-* Web Services Exploring SOAP and WSDL Documents with WS-* Extensions Lesson 5: Creating JAX-WS Clients This lesson describes the various ways of connecting to SOAP web services by using JAX-WS services. Use tools to generate JAX-WS client artifacts Call SOAP web services by using JAX-WS in a Java SE environment Call SOAP web services by using JAX-WS in a Java EE environment Use JAXB binding customization with a SOAP web service Create a JAX-WS dispatch client Create a client that consumes WS-Policy enhanced services (WS-MakeConnection) Selecting the JAXB Data Binding and JAXB Providers Creating a Card Deck Web Service Creating a Java SE Web Service Client Creating a Java EE Web Service Client Binding Customization Creating a JAX-WS Dispatch Web Service Client Using WS-MakeConnection with a JAX-WS Client Lesson 6: RESTful Web Services an Overview This lesson describes the implementation of RESTful design architectures in web services. Describe RESTful architecture and how it can be applied to web services Design a RESTful web service and identify resources Navigate a RESTful web service by using hypermedia Select the correct HTTP method to use when duplicate requests must be avoided Identify web service result status by HTTP response code Version RESTful web services Enabling RESTful Management Services for WebLogic Exploring WebLogic RESTful Management Services Updating Jersey (JAX-RS) Creating a Basic RESTful Web Service with JAX-RS Exploring a REST Service with curl Lesson 7: Creating RESTful Clients in Java This lesson describes the creation and usage of RESTful clients in Java development. Use Java SE APIs to make HTTP requests Use Jersey Client APIs to make HTTP requests Process XML and JSON in a RESTful web service client Calling REST Services with URLConnection Using the Jersey Client API Modifying a JavaScript (jquery) REST Client Properties of a RESTful Web Service Lesson 8: Bottom-Up JAX-WS Web Services This lesson describes how the bottom-up design approach can be used to achieve the quickest development path.
Describe the benefits of Code First Design Create JAX-WS POJO Endpoints Create JAX-WS EJB Endpoints Creating the Card Game Service Publishing Endpoints Without an Application Server Lesson 9: Top-Down JAX-WS Web Services This lesson describes the benefits of the top-down approach through the development of strong typing for web services. Describe the benefits of WSDL First Design Generate Service Endpoint Interfaces (SEIs) from WSDLs Implement Service Endpoint Interfaces Customize SEI Generation Creating the Player Management Service Lesson 10: JAX-RS RESTful Web Services This lesson describes how to create RESTful web services with the JAX-RS reference implementation. Download, install, and configure Jersey Create application subclasses Create resource classes Create resource methods, sub-resource methods, and sub-resource locator methods Produce and consume XML and JSON content with JAX-RS The Rules of Indian Rummy Creating the Indian Rummy Web Service Project Creating the Indian Rummy Game Creation REST Resources Using JSON as a Data Interchange Format Completing the Indian Rummy Logic Lesson 11: Web Service Error Handling This lesson describes error handling techniques within web service development. Describe how SOAP web services convey errors Describe how REST web services convey errors Return SOAP faults Return HTTP error status codes Map thrown exceptions to HTTP status codes Handle errors with SOAP clients Handle errors with Jersey clients JAX-WS Basic Error Handling JAX-RS Error Handling Lesson 12: Security Concepts This lesson describes how to implement Java EE security. Explain Authentication, Authorization, and Confidentiality
Apply Basic Java EE Security by using deployment descriptors (web.xml) Create users and groups and map them to application roles Detail possible web service attack vectors Enabling Authentication Enabling Confidentiality Lesson 13: WS-Security This lesson describes how to implement security with WS-* extensions. Describe the purpose of: WS-Policy WS-SecurityPolicy WS-Security Configure WebLogic Server for WS-Security Apply WS-Policy to WebLogic JAX-WS web services Sign and encrypt SOAP messages using WS-Security Securing a JAX-WS Endpoint with WS-Security Improving the Performance of JAX-WS Clients Lesson 14: Web Service Security with Jersey This lesson describes how to implement security with JSR-250 common annotations. Apply JSR-250 Security annotations Enable an assortment of filters including the RolesAllowedResourceFilterFactory Obtain a SecurityContext and perform programmatic security Authenticate using the Jersey Client API Using Java EE Roles and Principles Using Additional Jersey Filters Lesson 15: OAuth with Jersey This lesson describes how to implement security with OAuth. Describe the purpose of OAuth Describe the request life cycle when using OAuth Create Oauth-enabled services using Jersey Create Oauth-enabled clients using Jersey Configuring OAuth Compatible HTTP Security Restrictions Configuring Jersey OAuth Components Create Registration and Approval Resources Executing the OAuth Flow Associated Certifications & Exam This course prepares students to write Exam: 1Z0-897 Java EE 6 Web Services Certified Expert Exam Accredited to certification(s): Oracle Certified Expert Java EE 6 Web Services Developer