Introduction to Web Services

Download Report

Transcript Introduction to Web Services

Introduction to Web Services Efrem Litwin Director, WebFOCUS Integration Products Information Builders Copyright 2007, Information Builders. Slide 1

Introduction to Web Services Agenda  What is a Web Service?

 Web Service Components (WSDL, UDDI , SOAP)  Web Services Adapter  WebFOCUS Web Services Functionality  WebFOCUS Web Services WSDL Creation  ReportCaster Web Services Functionality  ReportCaster Web Services WSDL Creation  Xignite Web Services Copyright 2007, Information Builders. Slide 2

What is a Web Service?

Definition  A self-contained, modular application that can be described, published, located, and invoked over the Web.  Platform-neutral and based on open standards, Web Services can be combined with each other in different ways to create business processes that enable you to interact with customers, employees, and suppliers . Copyright 2007, Information Builders. Slide 3

What is a Web Service?

Basic Concepts  Web Services use the Web to perform application-to application integration  Web Services are business process interfaces  Each Web Service is a point of interaction to give input and receive output from a business process  Allow previously incompatible applications to interoperate on the Web regardless of language, platform, and operating systems  A standalone function that can be called by many different applications Copyright 2007, Information Builders. Slide 4

What is a Web Service?

Usage Benefits  Reduce complexity by encapsulating business processes into reusable components  Improve interoperability by acting as a wrapper around legacy or platform-specific applications  Promote true interoperability through platform and implementation neutrality  A Web service can be self-describing (WSDL,UDDI)  Develop applications much faster than before  A Web Service is a simple, reliable way to blend existing systems with new applications and services Copyright 2007, Information Builders. Slide 5

What is a Web Service?

Travel Web Site Example Copyright 2007, Information Builders. Slide 6

What is a Web Service?

Travel Web Site Example Copyright 2007, Information Builders. Slide 7

What is a Web Service?

Travel Web Site Example Copyright 2007, Information Builders. Slide 8

What is a Web Service?

Travel Web Site Example Copyright 2007, Information Builders. Slide 9

What is a Web Service?

Inter-Department Example Copyright 2007, Information Builders. Slide 10

Web Service Components WSDL

Web Services Description Language (WSDL)

 The standard format for describing a Web Service. Expressed in XML, a WSDL definition describes how to access a Web Service and what operations it will perform  A WSDL document provides information on the data being exchanged, the sequence of messages for an operation, protocol bindings (HTTP), and the location of the service  A WSDL document defines services as a collection of endpoints (location within a context to which remote service requests can be directed) Copyright 2007, Information Builders. Slide 11

Web Service Components WSDL - Example Copyright 2007, Information Builders. Slide 12

Web Service Components UDDI

Universal Description Discovery and Integration (UDDI)

 UDDI is an XML-based registry for businesses worldwide to list themselves on the Internet for Web Services and for other electronic and non-electronic services  Allows businesses to list themselves by name, product, location, or the Web Services they offer (Yellow Pages)  Service consumers can use UDDI to discover services that suit their requirements (www.xmethods.net) Copyright 2007, Information Builders. Slide 13

Web Service Components UDDI - www.xmethods.net

Copyright 2007, Information Builders. Slide 14

Web Service Components UDDI www.xmethods.net

- WSDL Copyright 2007, Information Builders. Slide 15

Web Service Components SOAP

Simple Object Access Protocol (SOAP)

 A way for a program running in one operating system to communicate with a program in the same or another operating system  A standard for exchanging XML based messages (Request/Response) normally using HTTP  SOAP Envelope identifies an XML document as being a SOAP message and encapsulates all the other parts of the  message SOAP Header is optional and can be used to extend the message syntax independently for a particular application  SOAP Body where application specific data is placed. Encoding rules of the Envelope describe what syntax was used to encode data in the Body.

Copyright 2007, Information Builders. Slide 16

Web Service Components SOAP - Request Copyright 2007, Information Builders. Slide 17

Web Service Components SOAP - Response Copyright 2007, Information Builders. Slide 18

Web Services Adapter Basic Functionality  Released with WebFOCUS 5.3

 Web Services Adapter allows WebFOCUS to directly interact with a Web Service  Able to create a report to read data returned from a Web Service  Able to pass parameters to a Web Service for reporting  Able to pass parameters to a Web Service for updating data within an application  Able to consume a WSDL file  Join Web Services to Other Web Services or other Tables (eg. SQL Server, ORACLE, Teradata) Copyright 2007, Information Builders. Slide 19

Web Services Adapter Consuming a WSDL File  Reads a WSDL file and creates the Connection information in EDASPROF  Reads a WSDL file and creates the Master and Access file for a particular Web Service function  New suffix: Suffix=SOAP  1 st Segment of the Master contain the input parameters  Data Types get mapped to default Formats (USAGE and ACTUAL)  Arrays of output get mapped to multiple segments Copyright 2007, Information Builders. Slide 20

Web Services Adapter Data Type Mappings Data Type string Double float decimal int short long boolean dateTime USAGE A30 D20.2 F15.2 P20.3 I11 I6 P20 A5 HYYMDm ACTUAL A30 A20 A15 A20 A11 A6 A20 A5 A27 Copyright 2007, Information Builders. Slide 21

Web Services Adapter Locate a WSDL File Copyright 2007, Information Builders. Slide 22

Web Services Adapter Add a Connection Copyright 2007, Information Builders. Slide 23

Web Services Adapter Choose an Endpoint for the Web Service Copyright 2007, Information Builders. Slide 24

Web Services Adapter Create Metadata (Master and Access Files) Copyright 2007, Information Builders. Slide 25

Web Services Adapter Create Metadata – Choose Operations Copyright 2007, Information Builders. Slide 26

Web Services Adapter Master File Description Example Copyright 2007, Information Builders. Slide 27

Web Services Adapter Access File Example Copyright 2007, Information Builders. Slide 28

Web Services Adapter Sample Data Copyright 2007, Information Builders. Slide 29

Web Services Adapter Sample Data Report Copyright 2007, Information Builders. Slide 30

WebFOCUS Web Services Functionality Overview  Released with WebFOCUS 5.2

 Run any WebFOCUS Report as a Web Service function  Output is returned in the format defined in the WebFOCUS report (eg. HTML, EXCEL, PDF, XML)  Run a WebFOCUS Report using a generic WebFOCUS Web Service function  Find out parameters for a WebFOCUS Report  Support for drill-down reports Copyright 2007, Information Builders. Slide 31

WebFOCUS Web Services Functionality Overview (Cont’d)  Support for Graphs (PNG,SVG,JPEG,GIF)  Managed Reporting Security maintenance  Managed Reporting Domain/Folder/Report Maintenance (Create,Rename,Delete)  Get a list of values for a Field  Get the status of deferred reports Copyright 2007, Information Builders. Slide 32

WebFOCUS Web Services WSDL Creation http://

machine name

/ibi_html/workbnch/webservice.htm

Copyright 2007, Information Builders. Slide 33

WebFOCUS Web Services WSDL Creation WSDL File Copyright 2007, Information Builders. Slide 34

WebFOCUS Web Services Functionality VB .NET – Running a WebFOCUS Report – Finding Parameters Copyright 2007, Information Builders. Slide 35

ReportCaster Web Services Functionality Overview  Released with WebFOCUS 5.3

 Schedule any WebFOCUS Report  Get a List of Schedules and Schedule Info  Address Book Maintenance  ReportCaster Security Maintenance  Report Library Integration  Report Library Access Maintenance  Get a List of Running Jobs Copyright 2007, Information Builders. Slide 36

ReportCaster Web Services Functionality Overview (Cont’d)  List Jobs in Queue  Change Job Priority  View Job Log  Log Maintenance Copyright 2007, Information Builders. Slide 37

ReportCaster Web Services WSDL Creation http://

machine name

/rcaster/services Copyright 2007, Information Builders. Slide 38

ReportCaster Web Services Functionality VB .NET – Scheduling a Report Copyright 2007, Information Builders. Slide 39

ReportCaster Web Services WSDL Creation http://

machine name

/rcaster/services Copyright 2007, Information Builders. Slide 40

ReportCaster Web Services WSDL Creation WSDL File Copyright 2007, Information Builders. Slide 41

Xignite Xignite Web Services

www.xignite.com

Copyright 2007, Information Builders. Slide 42