1 © Talend 2014 Service Registry / WS-Policy Registry Training Slides 2014 Jan Bernhardt Zsolt Beothy-Elo

Slides:



Advertisements
Similar presentations
Presented to: By: Date: Federal Aviation Administration Registry/Repository in a SOA Environment SOA Brown Bag #5 SWIM Team March 9, 2011.
Advertisements

DIGIDOC A web based tool to Manage Documents. System Overview DigiDoc is a web-based customizable, integrated solution for Business Process Management.
An Introduction to Web Services Sriram Krishnan, Ph.D.
Database System Concepts and Architecture
Web Service Ahmed Gamal Ahmed Nile University Bioinformatics Group
General introduction to Web services and an implementation example
Dr Gordon Russell, Napier University Unit Data Dictionary 1 Data Dictionary Unit 5.3.
SOA and Web Services. SOA Architecture Explaination Transport protocols - communicate between a service and a requester. Messaging layer - enables the.
1 June 1, 2015 Secure access to project budget information for OAR Principal Investigators Eugene F Burger Sylvia Scott Tracey Nakamura John L Forbes PMEL.
1 Introduction to SOA. 2 The Service-Oriented Enterprise eXtensible Markup Language (XML) Web services XML-based technologies for messaging, service description,
G O B E Y O N D C O N V E N T I O N WORF: Developing DB2 UDB based Web Services on a Websphere Application Server Kris Van Thillo, ABIS Training & Consulting.
SOA with Progress Philipp Walther Consultant. © 2007 Progress Software Corporation2 Agenda  SOA  Enterprise Service Bus (ESB)  The Progress SOA Portfolio.
6/11/2015Page 1 Web Services-based Distributed System B. Ramamurthy.
Object-Oriented Enterprise Application Development Tomcat 3.2 Configuration Last Updated: 03/30/2001.
PAWN: A Novel Ingestion Workflow Technology for Digital Preservation
Report Distribution Report Distribution in PeopleTools 8.4 Doug Ostler & Eric Knapp 7264.
Peoplesoft: Building and Consuming Web Services
PAWN: A Novel Ingestion Workflow Technology for Digital Preservation Mike Smorul, Joseph JaJa, Yang Wang, and Fritz McCall.
WSDL Web Services Description Language Neet Wadhwani University of Colorado 3 rd October, 2001.
Secure Systems Research Group - FAU Web Services Standards Presented by Keiko Hashizume.
Talend 5.4 Architecture Adam Pemble Talend Professional Services.
1 © Talend 2014 Service Locator Talend ESB Training 2014 Jan Bernhardt Zsolt Beothy-Elo
Course 6421A Module 7: Installing, Configuring, and Troubleshooting the Network Policy Server Role Service Presentation: 60 minutes Lab: 60 minutes Module.
1 © Talend 2014 XACML Authorization Training Slides 2014 Jan Bernhardt Zsolt Beothy-Elo
Introduction to the Enterprise Library. Sounds familiar? Writing a component to encapsulate data access Building a component that allows you to log errors.
© Drexel University Software Engineering Research Group (SERG) 1 Based on the paper by Philippe Kruchten from Rational Software.
Architecture Of ASP.NET. What is ASP?  Server-side scripting technology.  Files containing HTML and scripting code.  Access via HTTP requests.  Scripting.
XForms: A case study Rajiv Shivane & Pavitar Singh.
C Copyright © 2009, Oracle. All rights reserved. Appendix C: Service-Oriented Architectures.
T Network Application Frameworks and XML Web Services and WSDL Sasu Tarkoma Based on slides by Pekka Nikander.
Introducing Axis2 Eran Chinthaka. Agenda  Introduction and Motivation  The “big picture”  Key Features of Axis2 High Performance XML Processing Model.
© 2009 IBM Corporation Integrating WSRR and DataPower Andrew White – Software Developer 18 March 2010.
THE GITB TESTING FRAMEWORK Jacques Durand, Fujitsu America | December 1, 2011 GITB |
COMP 410 & Sky.NET May 2 nd, What is COMP 410? Forming an independent company The customer The planning Learning teamwork.
Module 14: WCF Send Adapters. Overview Lesson 1: Introduction to WCF Send Adapters Lesson 2: Consuming a Web Service Lesson 3: Consuming Services from.
95-843: Service Oriented Architecture 1 Master of Information System Management Service Oriented Architecture Lecture 10: Service Component Architecture.
Talend ESB Training Talend ESB Training 2014 Jan Bernhardt
Web Services Description Language CS409 Application Services Even Semester 2007.
Web Services Security Standards Overview for the Non-Specialist Hal Lockhart Office of the CTO BEA Systems.
Microsoft SharePoint Server 2010 for the Microsoft ASP.NET Developer Yaroslav Pentsarskyy
1 Schema Registries Steven Hughes, Lou Reich, Dan Crichton NASA 21 October 2015.
Apache Synapse The small print
SOA-14: Deploying your SOA Application David Cleary Principal Software Engineer.
Client Call Back Client Call Back is useful for multiple clients to keep up to date about changes on the server Example: One auction server and several.
SOA-39: Securing Your SOA Francois Martel Principal Solution Engineer Mitigating Security Risks of a De-coupled Infrastructure.
SCA Bindings Simon Holdsworth Piotr Przybylski. Agenda n SCA Bindings Overview l Bindings TC Charter n Bindings l Web Services Binding l JMS Binding l.
INT-9: Implementing ESB Processes with OpenEdge ® and Sonic ™ David Cleary Principal Software Engineer.
Kemal Baykal Rasim Ismayilov
1 Registry Services Overview J. Steven Hughes (Deputy Chair) Principal Computer Scientist NASA/JPL 17 December 2015.
Technical Support to SOA Governance E-Government Conference May 1-2, 2008 John Salasin, Ph.D. DARPA
12 Copyright © 2009, Oracle. All rights reserved. Managing Backups, Development Changes, and Security.
© FPT SOFTWARE – TRAINING MATERIAL – Internal use 04e-BM/NS/HDCV/FSOFT v2/3 JSP Application Models.
Differences Training BAAN IVc-BaanERP 5.0c: Application Administration, Customization and Exchange BaanERP 5.0c Tools / Exchange.
Introduction to Web Services Presented by Sarath Chandra Dorbala.
Chapter 2 Database Environment.
Copyright 2007, Information Builders. Slide 1 iWay Web Services and WebFOCUS Consumption Michael Florkowski Information Builders.
Introduction to Service Orientation MIS 181.9: Service Oriented Architecture 2 nd Semester,
Integrating and Extending Workflow 8 AA301 Carl Sykes Ed Heaney.
In this session, you will learn to: Understand managed code Create managed database objects Define the Hypertext Transfer Protocol endpoints Implement.
The best of WF 4.0 and AppFabric Damir Dobric MVP-Connected System Developer Microsoft Connected System Division Advisor Visual Studio Inner Circle member.
ESRIN, 15 July 2009 Slide 1 Web Service Security support in the SSE Toolbox HMA-T Phase 2 FP 14 December 2009 S. Gianfranceschi, Intecs.
Distribution and components
Advanced Integration and Deployment Techniques
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 2 Database System Concepts and Architecture.
Chapter 2 Database Environment Pearson Education © 2009.
The Re3gistry software and the INSPIRE Registry
What’s changed in the Shibboleth 1.2 Origin
Database Environment Transparencies
Introduction of Week 11 Return assignment 9-1 Collect assignment 10-1
Introduction to Web Services
Presentation transcript:

1 © Talend 2014 Service Registry / WS-Policy Registry Training Slides 2014 Jan Bernhardt Zsolt Beothy-Elo

2 © Talend 2014 Agenda ➜ Introduction ➜ Architecture ➜ Installation & Configuration ➜ Deployment & Administration ➜ Usage ➜ Further topics ➜ Hands On

3 © Talend 2014 Introduction

4 © Talend 2014 (SOA) Governance ➜ Define policies for providing guidance for the creation and evolution of the application landscape. ➜ Steps required to implement governance: Define the policies you want to apply. Apply these policies during design time. Monitor and enforce the policies during runtime. ➜ Service / Policy Registry helps to enforce the governance policies during runtime? Management of service metadata (WSDL’s, policies) Ensure consistency Allow traceability

5 © Talend 2014 Basics - WSDL ➜ WSDL Web Service Description Language Defines the service interface It contains an abstract description with operations, input and output It contains concrete connection information like encoding or endpoint information

6 © Talend 2014 Basics - WSDL in detail Translated from

7 © Talend 2014 Basics – WS-Policy ➜ WS-Policy (recap) Defining nonfunctional aspects of services: assertions constraints: conditions that the service requester has to fulfill capabilities: behavior that the service provider guarantees Providing Interoperability Definition of Service Level Agreements (SLAs) Security, addressing, transaction, … Separation of concerns WSDL for functional aspects WS-Policy for nonfunctional aspects

8 © Talend 2014 Basics – WS-Policy ➜ WS-Policy in Talend ESB Security Standard, based on WS-Security AuthorizationTalend ESB SAMTalend ESB Correlation IdTalend ESB Schema validationTalend ESB WS-Addressing Standard WS-Reliable Messaging Standard Custom Policies Up to you

9 © Talend 2014 Basics – Link WSDL and WS-Policy ➜ WS-Policies can be attached or embedded and referenced in WSDL elements ➜ WS-Policies and WSDLs can be referenced by using a WS-Policy Attachment Dedicated file referencing the WSDL and the WS-Policy WSDL WS-Policy WS-Policy Attachment WSDL WS-Policy

10 © Talend 2014 Basics – WSDL and WS-Policy ➜ CXF is able to use policies configured as following: Inline Attached (WS-Policy Attachment) As spring configuration Dynamically via properties

11 © Talend 2014 Registry Naming ➜ Components and tasks Service Registry provides WSDLs Policy Registry provides policies Policy Registry provides policy attachments ➜ Service Registry and Policy Registry work closely together In the following slides it is only called Service Registry

12 © Talend 2014 Requirements for… ➜ WSDLs Consumers In some cases the WSDL is required at startup Providers Required for validation ➜ WS-Policies Are used to configure non functional aspects ➜ WS-Policy Attachments Link WSDL and WS-Policy

13 © Talend 2014 Challenges and benefits ➜ How to configure decentralized IT-Systems? Use a central configuration With Service Registry it is possible to store these configurations centrally Only one dedicated configuration location keeps the system consistent Can be reused by others (client and provider) Easier to get an overview One building block to support IT- or SOA-Governance Runtime SR & PR

14 © Talend 2014 Challenges and benefits ➜ How to configure a common rule set to all services? Create common policies By creating a common policy, linked to all services via policy attachments. Changing a common policy affects all services. One building block to support IT- or SOA-Governance Runtime SR & PR Policy

15 © Talend 2014 Talend ESB integration ➜ Talend ESB Runtime is prepared with Service Registry server and client ➜ Service Registry and Policy Registry are part of the Enterprise Edition of Talend ESB ➜ It follows the design approach to keep the development effort as less as possible. Just configure WSDL, WS-Policy and Attachment without development effort at the service or consumer Security related policies require minimal development effort (provide keystores, password handler, …)

16 © Talend 2014 Architecture

17 © Talend 2014 Architecture – Overview ➜ Clients for CXF consumer and provider ➜ Server with frontends for management and lookup of WSDL’s and policies Backend based on JackRabbit with persistent storage

18 © Talend 2014 ESB Container Clients ➜ Clients are CXF consumer or CXF provider ➜ Lifecycle hook is used to add Service Registry features ➜ Client applications need to configure Service Registry usage ➜ Fallback WSDL is locally configurable CXF Consumer CXF Provider SR Client Service Registry Service Registry

19 © Talend 2014 Server ➜ Service Registry server provides different frontends Lookup service (plain REST) Administration service (AtomPub REST) ➜ Data storage is encapsulated by JackRabbit as Java Content Repository implementation (JCR) ➜ Storage can be File system Database system

20 © Talend 2014 Architecture - Typical deployment ➜ One Service Registry in a dedicated infrastructure runtime container. ➜ Service Registry and Policy Registry may be deployed in a high availability deployment and configuration. ➜ Multiple runtime container with business applications using or providing CXF based Web Services. ➜ For each runtime container exactly one Service Registry client.

21 © Talend 2014 Installation & Configuration

22 © Talend 2014 Installation ➜ Client Installed and started by default in the runtime ➜ Server Not installed by default in the runtime Runtime provides commands tesb:start-registry to install and start tesb:stop-registry to uninstall and stop [ 254] [Active ] [Created ] [ ] [ 80] Talend ESB Registry :: Server (5.4.1) [ 255] [Active ] [Created ] [ ] [ 80] Talend ESB Registry :: REST Atom Service (5.4.1) [ 256] [Active ] [Created ] [ ] [ 80] Talend ESB Registry :: REST Lookup Service (5.4.1) [ 257] [Active ] [Created ] [ ] [ 80] Talend ESB Registry :: Server :: Commands (5.4.1)

23 © Talend 2014 Configuration ➜ Ports The Talend Service Registry service is exposed via the container HTTP(s) port which can be configured in the org.ops4j.pax.web.cfg. ➜ SSL Client relevant setting. etc/org.talend.esb.registry.client.policy.cfg – Change registry.url property to the https endpoint etc/org.talend.esb.registry.client.wsdl.cfg – Change registry.url property to the https endpoint

24 © Talend 2014 Configuration ➜ Authentication Enforce authentication on server for administration org.talend.esb.registry.service.admin.cfg – registry.authentication (NO, BASIC, SAML) Enforce authentication on server for runtime (lookup) org.talend.esb.registry.service.lookup.cfg to – registry.authentication (NO, BASIC, SAML) Client needs a corresponding configuration.

25 © Talend 2014 Deployment & Administration

26 © Talend 2014 Administration interfaces ➜ Three administration interfaces are provided Command line interface Inside of the Talend runtime AtomPub REST Service Talend Administration Center (TAC)

27 © Talend 2014 Command Line ➜ The following commands are available: tregistry:create tregistry:delete tregistry:export tregistry:help tregistry:import tregistry:list tregistry:read tregistry:update Create Registry resource Delete Registry resource Export Service Registry resources Show Registry help Import resources from file to Registry List Registry resources by type Read Registry resource Update Registry resource (content) ➜ Typical parameter: type = wsdl, ws-policy or ws-policy-attach name = an identifier file = path to a file

28 © Talend 2014 Command Line ➜ Sample Import a WSDL and validate it is imported: tregistry:create wsdl etc/wsdl/Greeter.wsdl Create Registry wsdl resource with name = Greeter : DONE tregistry:list wsdl Talend ESB Registry :: Collection of wsdl resources [size:1] Name - Greeter tregistry:read wsdl Greeter Registry wsdl resource with name = Greeter <wsdl:definitions xmlns:wsdl= …

29 © Talend 2014 AtomPub REST Service ➜ The REST Service provides an additional administration interface based on RFC 5023 and RFC 4287 Most inputs and results are represented as atom xml media type ➜ The interface can be found at : /services/registry/admin?_wadl

30 © Talend 2014 AtomPub REST Service ➜ Sample We use ‘wget’ command to download the registered services wget The downloaded file has the name index.html and contains the result of the registry in XML format … … { Greeter … The result contains links. For example to the WSDL content

31 © Talend 2014 Usage

32 © Talend 2014 General procedure ➜ Registry Register the WSDL Register a WS-Policy Register a WS-Policy Attachment ➜ Provider Enable Service Registry usage Use case specific: Add required configuration or sources ➜ Consumer Enable Service Registry usage Use case specific: Add required configuration or sources

33 © Talend 2014 Example on the slides ➜ The following slides uses the Greeter service ➜ The service shall be available via HTTPS only ➜ The restriction shall be implemented by using policies ➜ All required files are copied into the container ➜ Code snippets are reduced. Hidden elements are marked with ‘…’

34 © Talend 2014 Registry ➜ WSDL Register the WSDL For example with the Command Line tregistry:create wsdl etc/wsdl/GreeterHttps.wsdl Create Registry wsdl resource with name = Greeter : DONE <wsdl:definitions … name="Greeter“ targetNamespace=" > <soap:address location=" /> The identifier is the name attribute from the definition element.

35 © Talend 2014 Registry ➜ Policy Register the WS-Policy For example with the Command Line tregistry:create ws-policy etc/policies/Https.policy Create Registry ws-policy resource with name = https : DONE … The identifier is the name attribute from the Policy

36 © Talend 2014 Registry ➜ Policy Attachment Register the WS-Policy Attachment For example with the Command Line tregistry:create ws-policy-attach etc/policies/GreeterHttps.policy Create Registry ws-policy-attach resource with name = GreeterHttps : DONE <wsp:PolicyAttachment Name="GreeterHttps" xmlns:wsp=" The identifier is the name attribute from the PolicyAttachment.

37 © Talend 2014 Policy Attachment ➜ WSDL elements to refer The AppliesTo element refers the WSDL element which shall be linked with the WS-Policy It is build by the following pattern # – For example the wsdl-target-namespace is ‘ – The pointer-part could be: the complete service ‘wsdl11.service(serviceName)’ and the serviceName must be replaced with the real service name a service operation ‘wsdl11.bindingOperation(binding/operation)’ and the binding/operation must be replaced with the real operation

38 © Talend 2014 Policy Attachment <wsp:PolicyAttachment Name="GreeterHttps” xmlns:wsp=" WS-Policy Attachment WS-Policy WSDL

39 © Talend 2014 Provider ➜ Enable Service Registry feature In this example it is activated in the blueprint <jaxws:endpoint id="greeterService” implementor="org.talend.training.esb.greeter.provider.GreeterServiceImpl” address="/GreeterServiceProvider">

40 © Talend 2014 Consumer ➜ Enable Service Registry feature In this example it is activated in the blueprint <jaxws:client id="greeterServiceClient” serviceClass="org.talend.greeter.Greeter"> … Do not use the ‘address’ attribute. It would overwrite the registry values.

41 © Talend 2014 At runtime ➜ REST service for lookup ➜ The service is automatically called by the service registry client

42 © Talend 2014 Hands On

43 © Talend 2014 Hands On ➜ Install the Service Registry ➜ Define Security Policy Enforce HTTPS transport Set Policy Name Define Policy Attachment ➜ Upload SR Artifacts Upload WSDL, WS-Policy, Policy-Attachment ➜ Enable SR Usage Set JAX-WS Property at Provider & Consumer ➜ Bonus: Enforce schema validation at provider side

44 © Talend 2014 Resources ➜ Infrastructure Services Talend_ESB_InfrastructureServices_CG_5.4.1_EN.pdf ➜ CXF and WS-Policy ➜ WSDL ➜ WS-Policy ➜ WS-Policy Attachment ➜ RFC ➜ RFC

45 © Talend 2014 Thank You!