Professional Documents
Culture Documents
Agenda
Introduction Architecture WSDL SOAP Some Other Aspects of WLS Web Services Implementation using WebLogic Consumption SoA Q&A
-2-
Introduction
What is Web Service? A Web Service is a software system designed to support interoperable machine-to-machine interaction over a network. It has an interface described in a machine-processable format (specifically WSDL). Other systems interact with the WebService in a manner prescribed by its description using SOAP messages, typically conveyed using HTTP with an XML serialization in conjunction with other Web-related standards. - W3C Definition of Web Service Why use Web Service? As Web-application lets people access it without platform hindrance, Web Services lets interoperable programmatic access over web. Where to implement Web Service? In places where an application interface would benefit if made platform independent.
-3-
Architecture
-4-
WSDL Schema Elements Types - a container for data type definitions using some type system Message - an abstract, typed definition of the data being communicated Operation - an abstract description of an action supported by the service Port Type - an abstract set of operations supported by one or more endpoints Binding - a concrete protocol and data format specification for a particular port type Port - a single endpoint defined as a combination of a binding and a network address Service - a collection of related endpoints
-5-
-6-
-7-
Starting with WSDL wsdl2Service is an Ant task which takes as input an existing WSDL file and generates the Java interface that represents the implementation of your Web Service optionally, an empty Java implementation class the web-services.xml file that describes the Web Service
servicegen is a WebLogic provided ant task for generating the service. It does Introspects the Java code, looking for public methods to convert into Web Service operations and non-built-in data types used as parameters or return values of the methods. Creates a web-services.xml deployment descriptor file, based on the attributes of the servicegen Ant task and introspected EJB or Java class information. Optionally creates the serialization class that convert the non-built-in data between its XML and Java representations. It also creates XML Schema representations of the Java objects and updates the web-services.xml file accordingly. Packages all the Web Service components into a Web application WAR file, then packages the WAR and EJB JAR files into a deployable EAR file.
Certain Java data types, if used as parameters or return values of a method that implements a Web Service operation, are automatically transported as SOAP Attachments (rather than elements in the SOAP body) when going over the wire.
-8-
-9-
- 10 -
SoA
SoA represents a fundamental shift in the way new applications are designed, developed, and integrated. It also greatly facilitates the development of enterprise applications as modular business services that can be easily integrated and reused. Three basic steps behind SoA Building a Portfolio of re-usable Services Wiring through Enterprise Service Bus Orchestrating into an End-to-End process
- 11 -
Thank You!