workshop

10
Workshop 1. Einführung in Web Services 2. Web Services in der Praxis 3. Überwachungssystem- Prototyp

Upload: lucian-richardson

Post on 02-Jan-2016

40 views

Category:

Documents


1 download

DESCRIPTION

Workshop. Einführung in Web Services Web Services in der Praxis Überwachungssystem-Prototyp. Web Services – Übersicht. XML. SOAP, WSDL, UDDI, WSFL, ebXML, .NET, Sun ONE,. Web Services. _____ _____ _____ _____. _____ _____ _____ _____. _____ _____ _____ _____. HTML. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Workshop

Workshop

1. Einführung in Web Services2. Web Services in der Praxis3. Überwachungssystem-

Prototyp

Page 2: Workshop

Web Services –Übersicht

XMLSOAP, WSDL, UDDI,

WSFL, ebXML,

.NET, Sun ONE, ...

Web Services

____________________

____________________

____________________

HTML

XML MicrosoftCOM+, DNA, ...

SunJ2EE

Web Services Web Services

Page 3: Workshop

Web Services – Das Prinzip

bind

publish

find

Servi

ce

Descr

iptio

n

ServiceRegistry

ServiceRequestor

ServiceProvider

Service Description

Service

Service Description

message

RPC

UDDI

UDDI

WSDL

WSDL

SOAP

SOAP

Finden, Publizieren

Schnittstellen beschreiben

Interagieren

Datenformat

Plattform

UDDI

Internet

XML

WSDL

SOAP

Page 4: Workshop

Web Services – Ein Beispiel – Apache SOAP / Apache Axis

Web Application Server

Apache SOAP/Axis Listener(RPC Router Servlet)

Web Service

Geschäftslogik (EJB, JMS, JDBC, ...)

Apache SOAP/Axis API

Client Application

SOAP

Service Requestor

Service Provider

Page 5: Workshop

Web Services – Ein Beispiel – Web Service und Clientpublic class SimpleWebService { public String getUpperString(String t) { return t.toUpperCase(); }

}

Web Service

String endpoint = "http://localhost:8080/axis/servlet/AxisServlet";String webServiceName = "SimpleWebService";String methodName = "getUpperString";String param = "Dies ist ein Test!";Object[] params = {param};

Service service = new Service();Call call = (Call) service.createCall();call.setTargetEndpointAddress(new URL(endpoint));call.setProperty(Call.NAMESPACE, webServiceName);call.setOperationName(methodName);call.addParameter("firstParam", XMLType.XSD_STRING, Call.PARAM_MODE_IN);

String ret = (String) call.invoke(params); Axis Client

Page 6: Workshop

Web Services – Ein Beispiel – WSDL und Proxies

WebService -> WSDL:– Browser: <webservice-url> + ´?wsdl´

WSDL -> Client Proxy (stub)– Tool: wsdl2java– Visual Studio .NET

Page 7: Workshop

Web Services – UDDI-Registry

Kategorien:– white pages

(Unternehmensverzeichnis)– yellow pages (Branchenverzeichnis)– green pages (Web Service Verzeichnis)

Zurzeit existierende Verzeichnisse:– http://uddi.microsoft.com/– http://www-3.ibm.com/services/uddi/– https://uddi.hp.com– http://udditest.sap.com/– http://uddi.ariba.com/

Globales öffentliches Verzeichnis

Page 8: Workshop

Überwachungssystem-Prototyp –Akteure und Anwendungsfälle

Page 9: Workshop

Überwachungssystem-Prototyp –Architektur

Bankperipheriegerät

J/XFS

JMX

Web Services

Überwachungspersonal

Gerätezugriff

Management

Schnittstellenoffenlegung

Page 10: Workshop

Überwachungssystem-Prototyp –Architektur

C#-Client

Java-Client

Geldautomat

Middleware

Web Application Server

JMX MBean Server

Web Service

MBean

MBean

MBean

SOAP

SOAP

SOAP RMI

J/XFS Server

Hardware

...

...

...

RMI