workshop
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 PresentationTRANSCRIPT
Workshop
1. Einführung in Web Services2. Web Services in der Praxis3. Überwachungssystem-
Prototyp
Web Services –Übersicht
XMLSOAP, WSDL, UDDI,
WSFL, ebXML,
.NET, Sun ONE, ...
Web Services
____________________
____________________
____________________
HTML
XML MicrosoftCOM+, DNA, ...
SunJ2EE
Web Services Web Services
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
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
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
Web Services – Ein Beispiel – WSDL und Proxies
WebService -> WSDL:– Browser: <webservice-url> + ´?wsdl´
WSDL -> Client Proxy (stub)– Tool: wsdl2java– Visual Studio .NET
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
Überwachungssystem-Prototyp –Akteure und Anwendungsfälle
Überwachungssystem-Prototyp –Architektur
Bankperipheriegerät
J/XFS
JMX
Web Services
Überwachungspersonal
Gerätezugriff
Management
Schnittstellenoffenlegung
Ü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