web services xml and ebusiness technology. introduction web services - the next big thing? http has...

84
Web Services XML and eBusiness Technology

Upload: magdalena-bartholomew

Post on 30-Mar-2015

217 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: Web Services XML and eBusiness Technology. Introduction Web services - the next big thing? HTTP has become the network standard XML defines business transactions

Web Services

XML and eBusiness Technology

Page 2: Web Services XML and eBusiness Technology. Introduction Web services - the next big thing? HTTP has become the network standard XML defines business transactions

Introduction

• Web services - the next big thing?• HTTP has become the network standard• XML defines business transactions• Business applications execute over the Web• Distributed computing in a heterogeneous

environment – how do you make this happen?• Web services, SOAP, Java, and networks

– Computing in the early 21st century

Page 3: Web Services XML and eBusiness Technology. Introduction Web services - the next big thing? HTTP has become the network standard XML defines business transactions

Four Paradigms of Computing

• Mainframe– The era of “big iron”

• Client – Server (C/S)– Networks and cheap desktop computing

• Internet Computing (n-tier architecture)– Web moves to a computing platform

• Web services– Web moves to a business platform

Page 4: Web Services XML and eBusiness Technology. Introduction Web services - the next big thing? HTTP has become the network standard XML defines business transactions

Web Services

• XML, Java, SOAP, and networks• Critical for B2Bi

– Used in “light EAI”

• Creates a “network application platform”– Sun ONE (Open Network Environment)– Facilitates “any to any” and “many to many” computing– Lets applications and process talk to each other– Creates a peer-to-peer computing environment– UDDI - directory of services for “client discovery”

Page 5: Web Services XML and eBusiness Technology. Introduction Web services - the next big thing? HTTP has become the network standard XML defines business transactions

Service Oriented Architecture

• Service provider– Creates services and publishes to registry

• Service broker– Holds information on how to find and “bind”

to a (web) service

• Service requester– Searches the registry, finds services, and

“invokes” them after “binding”

Page 6: Web Services XML and eBusiness Technology. Introduction Web services - the next big thing? HTTP has become the network standard XML defines business transactions

Service Oriented Architecture

ServiceProvider

ServiceRequestor

ServiceBroker

Bind

Find

Publis

h

Page 7: Web Services XML and eBusiness Technology. Introduction Web services - the next big thing? HTTP has become the network standard XML defines business transactions

Web Services Paradigm

• Web services are the building block of a Service Oriented Architecture (SOA)

• Publish application services• Find published services• Bind to the service found• Invoke the bound service

– Passing required parameters for proper execution of the selected service

Page 8: Web Services XML and eBusiness Technology. Introduction Web services - the next big thing? HTTP has become the network standard XML defines business transactions

Web Services - Protocols

• WSDL - description

• UDDI - discovery

• SOAP - messaging

• BPEL – execution

• ebXML - orchestration

• HTTP – transport

• XML – the lingua franca for data

Page 9: Web Services XML and eBusiness Technology. Introduction Web services - the next big thing? HTTP has become the network standard XML defines business transactions

Web Services Protocol Stack

Page 10: Web Services XML and eBusiness Technology. Introduction Web services - the next big thing? HTTP has become the network standard XML defines business transactions

WS - Process Architecture• Services directory

– WSDL and UDDI

• Business transaction– SOAP request / response

• SOAP envelope– Message and protocol

• Transaction details– ebXML, BPEL

• Network layer– HTTP, HTTPr, HTTPs, SMTP

Page 11: Web Services XML and eBusiness Technology. Introduction Web services - the next big thing? HTTP has become the network standard XML defines business transactions

WS - Process Architecture

Page 12: Web Services XML and eBusiness Technology. Introduction Web services - the next big thing? HTTP has become the network standard XML defines business transactions

Web Services Architecture Overview• Service creation and assembly

– A visual design environment, possibly UML

• Service delivery and service integration– Messaging interfaces to Internet and network APIs

• Applications and Web services– Web services containers– Other legacy applications

• Application platform– Identity and Policy– Security and Workflow– Collaboration services

Page 13: Web Services XML and eBusiness Technology. Introduction Web services - the next big thing? HTTP has become the network standard XML defines business transactions

Web Services – Architecture

Page 14: Web Services XML and eBusiness Technology. Introduction Web services - the next big thing? HTTP has become the network standard XML defines business transactions

Standards Services Architecture

• Standards Services Architecture:• Leverages key XML technologies

– XSLT, SOAP, WSDL

• Smart process– ebXML, BPML– UDDI

• Smart Policy– LDAP

• Smart management– SNMP and XML routing technologies

Page 15: Web Services XML and eBusiness Technology. Introduction Web services - the next big thing? HTTP has become the network standard XML defines business transactions

Web Services – Standards Architecture

Page 16: Web Services XML and eBusiness Technology. Introduction Web services - the next big thing? HTTP has become the network standard XML defines business transactions

Network Layer

• Lowest level in the Web services architecture is the conduit for transmission of XML messages

• HTTP is most common protocol in use• HTTPR (R stands for reliable)• HTTP carries traffic through firewalls

– So it is the best “business conduit”

• HTTPR provides “VAN like” services (re: EDI)– “exactly once” delivery of messages, notification, etc.

Page 17: Web Services XML and eBusiness Technology. Introduction Web services - the next big thing? HTTP has become the network standard XML defines business transactions

Network Layer – Logical Stack

• WSIL, WSFL, WSHT– Application services and service flow

• UDDI – Service discovery• UDDI – Service publication• WSDL – Service description• WSIL / SOAP – XML messaging• HTTP, HTTPR, SMTP, MQ, IIOP

– Network layer for messaging

Page 18: Web Services XML and eBusiness Technology. Introduction Web services - the next big thing? HTTP has become the network standard XML defines business transactions

Web Services Stack from WebServices.org

 

Layer Example

Service Negotiation Trading Partner Agreement

Workflow, Discovery, Registries

UDDI, ebXML registries, IBM WSFL, MS XLANG, BPEL4WS

Service Description Language WSDL/WSCL

Messaging SOAP/XML Protocol

Transport Protocols HTTP, HTTPS, FTP, SMTP

Business Issues Management, Quality of Service, Security, Open Standards

Page 19: Web Services XML and eBusiness Technology. Introduction Web services - the next big thing? HTTP has become the network standard XML defines business transactions

SOAP

• Simple Object Access Protocol (SOAP)

• Internet protocol for requesting a service

• Lets loosely coupled entities cooperate

• Relies on HTTP/HTTPS for transport

• Picks up where IIOP and CORBA left off– Conduit for Remote Method Invocation (RMI)

Page 20: Web Services XML and eBusiness Technology. Introduction Web services - the next big thing? HTTP has become the network standard XML defines business transactions

SOAP Message – 3 Parts

• The message, envelope, and “channel”

• SOAP envelope– The SOAP packet structure

• XML body of the message– The XML grammar of SOAP request

• Specification of transport binding– The “SOAP” messaging protocol

Page 21: Web Services XML and eBusiness Technology. Introduction Web services - the next big thing? HTTP has become the network standard XML defines business transactions

Anatomy of a SOAP Transaction

• Client SOAP– Request packet (marshal and unmarshal)

• Transport– SOAP running over HTTP (HTTPr / HTTPs)

• Supplier SOAP– Response packet (marshal and unmarshal)

Page 22: Web Services XML and eBusiness Technology. Introduction Web services - the next big thing? HTTP has become the network standard XML defines business transactions

SOAP Transaction

Page 23: Web Services XML and eBusiness Technology. Introduction Web services - the next big thing? HTTP has become the network standard XML defines business transactions

SOAP Request Code

POST /path/foo.pl HTTP/1.1Content-Type: text/xmlSOAPActor: interfaceURI#AddContent-Length: nnnn

<soap:Envelope> <soap:Body> <Add>

<arg1>24</arg1> <arg2>53.2</arg2> </Add> </soap:Body></soap:Envelope>

Page 24: Web Services XML and eBusiness Technology. Introduction Web services - the next big thing? HTTP has become the network standard XML defines business transactions

SOAP Response Code

200 OKContent-Type: text/xmlContent-Length: nnnn

<soap:Envelope> <soap:Body> <Response> <sum>77.2</sum>

</Response> </soap:Body></soap:Envelope>

Page 25: Web Services XML and eBusiness Technology. Introduction Web services - the next big thing? HTTP has become the network standard XML defines business transactions

UDDI

• Universal Description, Discovery, and Integration (UDDI) http://www.uddi.org/

• SOAP creates a request for a service– But how do you know that the service exists?– UDDI is a distributed registry (like DNS system)– Service providers post in the UDDI registry

• UDDI defines a set of SOAP messages that provide the client API for accessing a UDDI registry

Page 26: Web Services XML and eBusiness Technology. Introduction Web services - the next big thing? HTTP has become the network standard XML defines business transactions

UDDI Registry Record

Page 27: Web Services XML and eBusiness Technology. Introduction Web services - the next big thing? HTTP has become the network standard XML defines business transactions

UDDI.org

Page 28: Web Services XML and eBusiness Technology. Introduction Web services - the next big thing? HTTP has become the network standard XML defines business transactions

UDDI ServicesPublisher API• save_business• save_service• save_binding• save_tModel• delete_business• delete_service• delete_binding• delete_tModel• get_authToken• discard_authToken

Inquiry API• find_business• find_service• find_binding• find_tModel• get_businessDetail• get_serviceDetail• get_bindingDetail• get_tModelDetail

Page 29: Web Services XML and eBusiness Technology. Introduction Web services - the next big thing? HTTP has become the network standard XML defines business transactions

WSDL

• Web Service Description Language (WSDL)

• WSDL is XML based language that describes the attributes of a Web service– Register the service in the UDDI directory– Interface is the format of the SOAP request

• Request / response to execute and receive results of Web service on SOAP envelope

Page 30: Web Services XML and eBusiness Technology. Introduction Web services - the next big thing? HTTP has become the network standard XML defines business transactions

WSDL Document Structure

Page 31: Web Services XML and eBusiness Technology. Introduction Web services - the next big thing? HTTP has become the network standard XML defines business transactions

WSDL Grammar

• Message

• Operation

• portType

• Binding

• Port

• Service

Page 32: Web Services XML and eBusiness Technology. Introduction Web services - the next big thing? HTTP has become the network standard XML defines business transactions

WSFL

• Web Services Flow Language (WSFL)• XML based language for defining the

composition of web services• A flow composition defines how a

sequenced execution of web services perform a higher level business process

• Defines the interaction between a set of business partners executing Web services

Page 33: Web Services XML and eBusiness Technology. Introduction Web services - the next big thing? HTTP has become the network standard XML defines business transactions

Preparing a Web Service

• Develop the functionality you want in a service• Create the WSDL to describe the service• Generate server-side SOAP deployment• Publish deployment descriptor in UDDI registry• IBM WebSphere Studio Application Developer:

– WSDL for entry in UDDI registry– XML-Java mapping for complex Java objects– Deployment descriptor for installing (WS) on a server

Page 34: Web Services XML and eBusiness Technology. Introduction Web services - the next big thing? HTTP has become the network standard XML defines business transactions

IBM Web Services Zone

Page 35: Web Services XML and eBusiness Technology. Introduction Web services - the next big thing? HTTP has become the network standard XML defines business transactions

Using A Web Service

• Create a Java client to find and call the service• Search the UDDI registry for the desired service• From WSDL description create SOAP message• SOAP message will contain input parameters• Send SOAP request message and wait for reply• Receive SOAP response with service execution• Extract the results of service from the message

and process them through a (Java etc.) client

Page 36: Web Services XML and eBusiness Technology. Introduction Web services - the next big thing? HTTP has become the network standard XML defines business transactions

Web Services Process

Page 37: Web Services XML and eBusiness Technology. Introduction Web services - the next big thing? HTTP has become the network standard XML defines business transactions

Java

• Java is ideal development environment

• Object oriented with APIs for XML:

• Java API for XML Messaging (JAXM)

• Java API for XML Processing (JAXP)

• Java API for XML Registries (JAXR)

• Java API for XML - based RPC (JAX-RPC)

Page 38: Web Services XML and eBusiness Technology. Introduction Web services - the next big thing? HTTP has become the network standard XML defines business transactions
Page 39: Web Services XML and eBusiness Technology. Introduction Web services - the next big thing? HTTP has become the network standard XML defines business transactions

Security

• There are several key areas to security:– Identification– Authentication– Authorization– Integrity– Privacy– Auditing– Non-repudiation

Page 40: Web Services XML and eBusiness Technology. Introduction Web services - the next big thing? HTTP has become the network standard XML defines business transactions

B2Bi, Web services, and ebXML

• What is B2Bi?• Web services for B2Bi• What is ebXML?• ebXML initiative• ebXML architecture

– ebXML implementation– ebXML partner discovery– ebXML transaction messaging

Page 41: Web Services XML and eBusiness Technology. Introduction Web services - the next big thing? HTTP has become the network standard XML defines business transactions

The Challenge of B2Bi

• 100,000 companies

• Middleware doesn’t do it

• 99,999 factorial connections

• eMarketplaces didn’t fulfill it

• Integrating network business process

Page 42: Web Services XML and eBusiness Technology. Introduction Web services - the next big thing? HTTP has become the network standard XML defines business transactions

What is B2B Integration (B2Bi)?

Page 43: Web Services XML and eBusiness Technology. Introduction Web services - the next big thing? HTTP has become the network standard XML defines business transactions

Web Services for B2Bi

Page 44: Web Services XML and eBusiness Technology. Introduction Web services - the next big thing? HTTP has become the network standard XML defines business transactions

ebXML Initiative

• ebXML – XML, UDDI, and B2Bi

• Integrate discovery, binding, and flow

• UDDI – for discovery and binding

• ebXML - the eBusiness lexicon of B2Bi

• Creates a “pattern” for Web service flow

Page 45: Web Services XML and eBusiness Technology. Introduction Web services - the next big thing? HTTP has become the network standard XML defines business transactions

ebXML Architecture

Page 46: Web Services XML and eBusiness Technology. Introduction Web services - the next big thing? HTTP has become the network standard XML defines business transactions

ebXML Implementation

Page 47: Web Services XML and eBusiness Technology. Introduction Web services - the next big thing? HTTP has become the network standard XML defines business transactions

ebXML Partner Discovery

Page 48: Web Services XML and eBusiness Technology. Introduction Web services - the next big thing? HTTP has become the network standard XML defines business transactions

ebXML Transaction Message

Page 49: Web Services XML and eBusiness Technology. Introduction Web services - the next big thing? HTTP has become the network standard XML defines business transactions

Advantages to Web Services

• Flexibility for loose-coupling / late-binding

• Flexibility in scope: Internet / intranet– Limit to enterprise or extend to trading partner

• Based on HTTP, XML, and SOAP standards

• Self-describing in WSDL / UDDI registries

• Aggregate Web services for complex and threaded business process / B2Bi etc.

Page 50: Web Services XML and eBusiness Technology. Introduction Web services - the next big thing? HTTP has become the network standard XML defines business transactions

Microsoft.Net

Page 51: Web Services XML and eBusiness Technology. Introduction Web services - the next big thing? HTTP has become the network standard XML defines business transactions

Microsoft .Net Initiative

• Microsoft .Net initiative based on SOAP

• Uses Java tools / visual process design

• Designed for compatible clients on ends

• Similar use of XML and SOAP message

• More similar to COM objects than EJB

Page 52: Web Services XML and eBusiness Technology. Introduction Web services - the next big thing? HTTP has become the network standard XML defines business transactions

Sun ONE

• Open Network Environment

• Web services stack

• Blend servers and services

• “Smart Web Services”

• Networked business process

Page 53: Web Services XML and eBusiness Technology. Introduction Web services - the next big thing? HTTP has become the network standard XML defines business transactions

Smart Web Services Architecture• Smart delivery

– Aggregation, presentation and delivery– Personalization, content, and contextual sensitivity

• Smart process– Automated workflow management

• Smart policy– Identity, content and roles

• Smart management– Privacy and Security– Rights and Administration– User management

Page 54: Web Services XML and eBusiness Technology. Introduction Web services - the next big thing? HTTP has become the network standard XML defines business transactions

Smart Web Services Architecture

Page 55: Web Services XML and eBusiness Technology. Introduction Web services - the next big thing? HTTP has become the network standard XML defines business transactions

Smart Processing Overview

• Smart management– Service registration, service management– Listing in UDDI repositories, updating records

• Smart delivery– Protocol awareness and messaging options– Flexible integration with network applications

• Smart processing– Management, collaboration, and services delivery– Created a distributed network application platform

Page 56: Web Services XML and eBusiness Technology. Introduction Web services - the next big thing? HTTP has become the network standard XML defines business transactions

Web Services – Processing Overview

Page 57: Web Services XML and eBusiness Technology. Introduction Web services - the next big thing? HTTP has become the network standard XML defines business transactions

Micro Service Developer Model• XML document

– HTTP– SOAP– JAXM, JAX, RPC

• Web server– JSP– Java servlets

• Application server– JDBC– JMS– J2EE– JAXM JAX / RPC

Page 58: Web Services XML and eBusiness Technology. Introduction Web services - the next big thing? HTTP has become the network standard XML defines business transactions

Micro Web Services Developer Model

• From a developer's perspective a micro Web service consists of:– Web service interface and one or more service components.– The Web service interface manages and manipulates XML

messages; it can also be a front end to a legacy application.• “Service components” contain the business logic that

implements the requested service.– Business components frequently interact with external resources

and services through a variety of integration services

• A Web service communicates by passing XML documents over standard Web protocols– Using HTTP to pass SOAP, XHTML, and other XML messages

Page 59: Web Services XML and eBusiness Technology. Introduction Web services - the next big thing? HTTP has become the network standard XML defines business transactions

Micro Service Developer Model

Page 60: Web Services XML and eBusiness Technology. Introduction Web services - the next big thing? HTTP has become the network standard XML defines business transactions

Web Services Portal Model

Page 61: Web Services XML and eBusiness Technology. Introduction Web services - the next big thing? HTTP has become the network standard XML defines business transactions

Web Service Process Modeling

Page 62: Web Services XML and eBusiness Technology. Introduction Web services - the next big thing? HTTP has become the network standard XML defines business transactions

Distinguishing Business Process Modeling and Management

• Enterprise business processes – ebPML: e-business Process Modeling Language

• Executable business processes– BPEL: Business Process Execution Language

• ebXML business processes– (a.k.a. collaborations) 

• Business process activities – BPMI and BPML (and ebPML)

• Workflows and management– BPMS: Business Process Management Systems

Page 63: Web Services XML and eBusiness Technology. Introduction Web services - the next big thing? HTTP has become the network standard XML defines business transactions

PML – Process Modeling Languages

• BPML

• IBM WSFL

• MS XLANG

• BPML / ebPML

• BPEL, BPEL4WS

• UML

Page 64: Web Services XML and eBusiness Technology. Introduction Web services - the next big thing? HTTP has become the network standard XML defines business transactions

BPML

• Business Process Modeling Language• A method to bind “UML” and Web services

– The Business Process Modeling Language (BPML) is a meta-language for the modeling of business processes, just as XML is a meta-language for the modeling of business data.

– BPML provides an abstracted execution model for collaborative & transactional business processes based on the concept of a transactional finite-state machine.

Page 65: Web Services XML and eBusiness Technology. Introduction Web services - the next big thing? HTTP has become the network standard XML defines business transactions

BPMI.org Activities

Page 66: Web Services XML and eBusiness Technology. Introduction Web services - the next big thing? HTTP has become the network standard XML defines business transactions

Internal View of Loan Process

Page 67: Web Services XML and eBusiness Technology. Introduction Web services - the next big thing? HTTP has become the network standard XML defines business transactions

BPEL – Complete Loan Process

Page 68: Web Services XML and eBusiness Technology. Introduction Web services - the next big thing? HTTP has become the network standard XML defines business transactions

Tangled BPM Initiatives

Page 69: Web Services XML and eBusiness Technology. Introduction Web services - the next big thing? HTTP has become the network standard XML defines business transactions

ebPML

• Electronic Business Process Modeling Language– http://www.ebpml.org/

• "Business is complicated. Any solution that doesn't reflect that complexity is not a real solution. ebXML is no more complicated than it has to be in order to implement real-world business collaborations. Conversely, Web services as they are currently defined seem simple precisely because they're not trying to deal with the complexities of real business relationships involving independent enterprises."– A grain of wisdom from John Bosak -

Page 70: Web Services XML and eBusiness Technology. Introduction Web services - the next big thing? HTTP has become the network standard XML defines business transactions

ebPML Vision

Page 71: Web Services XML and eBusiness Technology. Introduction Web services - the next big thing? HTTP has become the network standard XML defines business transactions

BPMS Diagram

Page 72: Web Services XML and eBusiness Technology. Introduction Web services - the next big thing? HTTP has become the network standard XML defines business transactions

Key Technologies for BPMS

• XML

• B2B middleware

• Enterprise Application Integration 

• Web Services

• (Legacy Systems behind Web services)– Business Process Management Systems

Page 73: Web Services XML and eBusiness Technology. Introduction Web services - the next big thing? HTTP has become the network standard XML defines business transactions

BPMS Architecture

Page 74: Web Services XML and eBusiness Technology. Introduction Web services - the next big thing? HTTP has become the network standard XML defines business transactions

UML 2.0

• Unified Modeling Language

• Looks at the entire picture of a process from the view of actors and use cases

• State, activity, and collaboration diagrams show interactions of actors

• UML diagrams can now be saved in XML formats, aiding their use with WS

Page 75: Web Services XML and eBusiness Technology. Introduction Web services - the next big thing? HTTP has become the network standard XML defines business transactions

Web Service Operations

Page 76: Web Services XML and eBusiness Technology. Introduction Web services - the next big thing? HTTP has become the network standard XML defines business transactions

BPMS Activity

Page 77: Web Services XML and eBusiness Technology. Introduction Web services - the next big thing? HTTP has become the network standard XML defines business transactions

Web Service Class Diagram

Page 78: Web Services XML and eBusiness Technology. Introduction Web services - the next big thing? HTTP has become the network standard XML defines business transactions

Summary

• “Distributed computing” on a network platform• Computing for the early 21st Century• Uses XML, SOAP, WSDL, UDDI standards• Services are self-describing for discovery• SOAP interface to messaging interface• Java clients for request / response formatting

– Web services are applications with an IP address– Think of it as “hyper-linking” network applications!

Page 79: Web Services XML and eBusiness Technology. Introduction Web services - the next big thing? HTTP has become the network standard XML defines business transactions

Resources• http://www.webservices.org/• http://xml.apache.org/• http://www.uddi.org/• http://www-106.ibm.com/developerworks/webserv

ices/• http://java.sun.com/webservices/• http://www.xmethods.net/• http://www.microsoft.com/net/

Page 80: Web Services XML and eBusiness Technology. Introduction Web services - the next big thing? HTTP has become the network standard XML defines business transactions

Self Quiz

• What are Web services?

• Why Web services?

• What is the “protocol stack” ?

• Write out the WS process flow

• What things do Web services do well?

• Where are Web services lacking?

• What are WS process initiatives about?

Page 81: Web Services XML and eBusiness Technology. Introduction Web services - the next big thing? HTTP has become the network standard XML defines business transactions

Vocabulary Checklist - http://whatis.com/

• Architecture• BPEL• BPMI• BPML• ebXML• Java• J2EE• HTTP• HTTPr and HTTPs• .Net

• Protocol• Protocol stack• SOA• SOAP• Sun ONE• Transport layer• UDDI• WSDL• WSFL• XML

Page 82: Web Services XML and eBusiness Technology. Introduction Web services - the next big thing? HTTP has become the network standard XML defines business transactions

So what is all this XML?

• Just another markup language?

• No – the “mother of all markups”

• Technically, XML + HTML = SGML

• HTML is about presentation

• XML is about representation– Write your own markup languages– DTDs and schema define the rules

Page 83: Web Services XML and eBusiness Technology. Introduction Web services - the next big thing? HTTP has become the network standard XML defines business transactions

A Song Description in HTML

<dt>Hot Cop</dt><dd> by Jacques Morali, Henri Belolo,

and Victor Willis</dd><ul><li>Producer: Jacques Morali<li>Publisher: PolyGram Records<li>Length: 6:20<li>Written: 1978<li>Artist: Village People</ul>

Page 84: Web Services XML and eBusiness Technology. Introduction Web services - the next big thing? HTTP has become the network standard XML defines business transactions

A Song Description in XML

<song> <title>Hot Cop</title> <composer>Jacques Morali</composer> <composer >Henri Belolo</composer> <composer >Victor Willis</composer> <producer>Jacques Morali</producer> <publisher>PolyGram Records</publisher> <length>6:20</length> <year>1978</year> <artist>Village People</artist></song>