Course Summary
Intro to Web Services with Axis2 course teaches students the concepts behind web services and the basics of the Apache Axis2 platform. Web service fundamentals such as SOAP and WSDL are covered from both client and server perspectives. Students will learn how to create a Java/Axis2 web service clients by generating client helper code from a WSDL file. They will then learn how to create and deploy Java /Axis2 web services to Apache Tomcat by using either Java code or WSDL as the starting point.Duration
1 day.
Objectives
- Understand the concepts behind web services.
- Learn about the web services foundation technologies: XML, Schema, SOAP, WSDL, etc.
- Design, develop, and deploy simple web service using Apache Axis2 on Apache Tomcat servlet container
- Design, develop, and use web service clients that consume external web services
- Learn about Apache Axis2 technology as the means for implementing web services
Audience
Java developers who wish to create and/or use distributed applications using web services through Apache Axis2.
IT Managers who wish to understand the concepts and benefits of web services and Apache Axis2
To benefit from the hands-on part of this course, students need to have basic knowledge of Java and XML. Previous exposure to Apache Tomcat can also be helpful, although it is not required.
Outline
Overview of Web Services and Apache Axis2
- What is a Web Service?
- XML Based Web Service Technologies
- Why Web Services?
- Web Service Standards
- Java Web Services
- Apache Axis2
- Axis2 Features
- Axis2 Architecture and Processing Model
Simple Web Services
- Deploy the Service
- Run the Client
- SOAP Overview
- The SOAP Document
- WSDL Overview
- WSDL Content
- Abstract WSDL Elements
- Concrete WSDL Elements
- SOAP Monitor
Apache Axis2 Web Service Clients
- Databinding in Axis2
- ADB Databinding
- Clients
- Steps to Create a Client
- Obtain the WSDL File
- The wsdl2java Tools
- Wsdl2java Options
- Generated Code
- Client Code Overview
- Import the Generated Classes
- Instantiate the Stub
- Set the Request Parameters
- Call the Service Method and Get the Results
- Compile and Run the Client Code
Apache Axis2 Web Service End-points
- Creating Server Code
- Steps to Create a POJO Service
- Building a POJO
- The Server Descriptor
- The service Element
- MEPs and Message Receivers
- More services.xml Configurations
- AAR Files
- Generating WSDL from Java Code
- Steps to Create a WSDL Based Service
- Generate Server Artifacts from WSDL
- Steps to Edit the Skeleton
- Import the Generated Classes
- Get the Parameters
- Write the Business Code
- Instantiate a Response
- Build and Deploy