I IBM Software Group IBM Web Sphere Application Server v6 J2EE 1.4 Web Services in WebSphere 叫 ND: DBI%删E IBM Proof of Technology O2005 3M Corporasan IBM Product Introduction Exploration Organization IBM Software Group I Web Sphere software Agenda Web services Basics Web Sphere Support for WebServices Web Services Interoperability(Ws-I) a WS-Securit Web Services gateway and SIBWs UDDI/JAXR
1 ® IBM Software Group © 2005 IBM Corporation IBM Proof of Technology IBM Product Introduction + Exploration Organization IBM WebSphere Application Server v6 J2EE 1.4 Web Services in WebSphere IBM Software Group | WebSphere software WebSphere Application Server v6 2 Agenda Web Services Basics WebSphere Support for WebServices Web Services Interoperability (WS-I) WS-Security WebServices Gateway and SIBWS UDDI/JAXR
What are Web Services? Web Services are standards-based, interoperable, self contained, modular applications that can be described, published, located and invoked over the internet Web Services can be new applications or expose existing legacy systems using new XML based protocol Services can rely on other services to achieve the goals and participate in a Business Process There are three fundamental standards b Web Services are described with WSDL (Web Services Definition Language) b Web Services usually are conveyed using the SOAP XML b Web Services may be discovered using UDDI IBM Software Group I Web Sphere software Tying Web Services Registry 2. Find MSDL SOAP Provider
2 IBM Software Group | WebSphere software WebSphere Application Server v6 3 What are Web Services? Web Services are standards-based, interoperable, selfcontained, modular applications that can be described, published, located, and invoked over the internet Web Services can be new applications or expose existing legacy systems using new XML based protocol Services can rely on other services to achieve the goals and participate in a Business Process There are three fundamental standards Web Services are described with WSDL (Web Services Definition Language) Web Services usually are conveyed using the SOAP XML Messaging protocol Web Services may be discovered using UDDI IBM Software Group | WebSphere software WebSphere Application Server v6 4 Tying Web Services 2. Find 1. Publish 3. Bind (invoke) SOAP WSDL Service Requestor Service Provider Service Registry - UDDI - Note: Service Registry is Optional. The Requestor may get WSDL from other places than the Registry
BM Software Group WebSphere software The Parts of a Web service Solution There are three major parts to a Web Services Solution 1. Programming model How you write clients to access web services How you write service implementations ° How isⅩ ML mapped to objects andle other parts of the SOAP spec(headers, 2. Deployment model Deployment descriptors to map service implementations to SOAP messages Type mapping for parameters(at least in RPC) 3. SOAP engine Code to receive SoAP messages and invoke service Code to map Java types to XML IBM Software Group I Web Sphere software Veb services in J2EE J2EE 1.4 specifies J2EE architecture for web services . Container contracts JSR 101 Container b Service implementations are hidden from the clie
3 IBM Software Group | WebSphere software WebSphere Application Server v6 5 The Parts of a Web Service Solution There are three major parts to a Web Services Solution 1. Programming model How you write clients to access web services How you write service implementations How is XML mapped to objects How you handle other parts of the SOAP spec (headers, attachments, etc.) 2. Deployment model Deployment descriptors to map service implementations to SOAP messages Type mapping for parameters (at least in RPC) 3. SOAP engine Code to receive SOAP messages and invoke service implementations Code to map Java types to XML IBM Software Group | WebSphere software WebSphere Application Server v6 6 Web Services in J2EE J2EE 1.4 specifies J2EE architecture for web services JSR 109 Client programming model Deployment model Container contracts JSR 101 WSDL <-> Java mapping Extends existing J2EE architecture. Ports are service instances created by the container SEI exposes Java interface of service Client invokes a port stub that implements the SEI Service implementations are hidden from the client Stateless session bean Servlet Service Endpoint Interface Service Impl Port Container Service Interface Client
BM Software Group WebSphere software Section Web Services in Web Sphere V6 IBM Software Group I Web Sphere software Web Services and XML Highlights Standards Portability -XML Schema definitions for all deployment descriptors JAX-P 1.2-New properties for XMl parsers JAX-R-XML registry API JAX-RPC -APls for representing WSDL-based services as RPCs in Java(and vice-versa) JSR 109-Web services programming and deployment model SAAJ 1.2-SOAP Attachments aPl for java WS-1- Ability to create Ws-I compliant services
4 IBM Software Group | WebSphere software WebSphere Application Server v6 7 Web Services in WebSphere V6 Web Services in WebSphere V6 Section IBM Software Group | WebSphere software WebSphere Application Server v6 8 Web Services and XML Highlights Standards / Portability - XML Schema definitions for all deployment descriptors JAX-P 1.2 - New properties for XML parsers JAX-R - XML registry API JAX-RPC - APIs for representing WSDL-based services as RPCs in Java (and vice-versa) JSR 109 - Web services programming and deployment model SAAJ 1.2 - SOAP Attachments API for Java WS-I – Ability to create WS-I compliant services
Changes in Web Services JAX-RPC (JSR-101)1.1 New standard APl for rogramming Web services in model and engine JsR-1091.0 New J2EE deployment model forJSR-109-WSEE Java Web services E 1.4 schema type DD moving services didn't exist SAAJ 1.1 Not wS compliant ervice endpoint interface(SEl)is a peer to WS-Security for manipulating SoAP XML messages WS- Basic Profile 1.0 t ane osw extends DoM (easy ame Token Profile 1.0 Apache soap 2.3 WS-I Basic Profile 1.1 Chent udDi v3 api differe IBM Software Group I Web Sphere software New Web Service Features Based on specific customer requests for new functionall Custom bindings Generic SoAP elements Multi-Protocol support Caching
5 IBM Software Group | WebSphere software WebSphere Application Server v6 9 WebSphere 4.0 & 5.0 WebSphere 5.02/5.1 WebSphere 6.0 JAX-RPC (JSR-101) 1.0 New standard API for programming Web services in Java JSR-109 1.0 New J2EE deployment model for Java Web services SAAJ 1.1 WS-Security Extensions added WS-I Basic Profile 1.0 Profile compliance UDDI4J version 2.0 (client) Apache Soap 2.3 enhancements The engine is a new high performance SOAP engine supporting both HTTP and JMS JAX-RPC (JSR-101) 1.1 Additional type support xsd:list Fault support Name collision rules New APIs for creating Services isUserInRole() JSR-109 - WSEE Moved to J2EE 1.4 schema types Migration of web services client DD moving to appropriate container DDs Handlers support for EJBs Service endpoint interface (SEI) is a peer to LI/RI SAAJ 1.2 APIs for manipulating SOAP XML messages SAAJ infrastructure now extends DOM (easy to cast to DOM and use) WS-Security WSS 1.0 Username Token Profile 1.0 X.509 Token Profile 1.0 WS-I Basic Profile 1.1 Attachments support JAXR support UDDI v3 support Includes both the registry implementation and the client API library Client UDDI v3 API different than JAXR (exposes more native UDDI v3 functionality) Changes in Web Services Apache SOAP The programming model, deployment model and engine Proprietary APIs Because Java standards for Web services didn’t exist Not WS-I compliant IBM Software Group | WebSphere software WebSphere Application Server v6 10 New Web Service Features Based on specific customer requests for new functionality Custom bindings Generic SOAP elements Multi-Protocol support Caching