90 likes | 221 Views
A quick overview of Network communications. Anthony Lomax Anthony Lomax Scientific Software Mouans-Sartoux, France anthony@alomax.net www.alomax.net. Distributed, Network-based software. ftp: http: Java-RMI Corba SOAP …. SOAP (Simple Object Access Protocol ).
E N D
A quick overview of Network communications Anthony Lomax Anthony Lomax Scientific Software Mouans-Sartoux, France anthony@alomax.netwww.alomax.net
Distributed, Network-based software ftp: http: Java-RMI Corba SOAP …
SOAP (Simple Object Access Protocol) CORBA (Common Object Request Broker Architecture) Java-RMI (Remote Method Invocation) HTTP (HyperText Transfer Protocol) FTP (File Transfer Protocol) FTP HTTP JavaRMI CORBA SOAP … TCP (Transmission Control Protocol – management) messages Internet network hardware dependent transmission protocol IP (Internetwork Protocol – message delivery)
FTP HTTP JavaRMI CORBA SOAP … TCP (Transmission Control Protocol – management) hardware dependent transmission protocol IP (Internetwork Protocol – message delivery) FTP server FTP client + simple, widely used x limited functionality (file transfer) FTP commands data connection FTP (File Transfer Protocol) FTP
FTP HTTP JavaRMI CORBA SOAP … TCP (Transmission Control Protocol – management) hardware dependent transmission protocol IP (Internetwork Protocol – message delivery) HTTP Request message: POST data HTTP Request message: GET cgi-bin script HTTP Request message: GET http://orfeus.nl HTTP/1.0 + simple & standard + formatted document display + secure x limited functionality x server overhead HTTP (HyperText Transfer Protocol) HTTP Response message: HTTP/1.1 200 OK Date: 22 Sep 2003 10:18:59 GMT Server: Apache/1.0.0 Content-type: text/html Content-length: 1579 HTML document HTTP
FTP HTTP JavaRMI CORBA SOAP … TCP (Transmission Control Protocol – management) hardware dependent transmission protocol IP (Internetwork Protocol – message delivery) server client + relatively simple (~Java) + secure + low server overhead (uses client) + efficient, powerful, flexible + pure Java x pure Java Java-RMI (Remote Method Invocation) method invocation Java-RMI interface Java-RMI interface method invocation method invocation method invocation HTTP JavaRMI
FTP HTTP JavaRMI CORBA SOAP … TCP (Transmission Control Protocol – management) hardware dependent transmission protocol IP (Internetwork Protocol – message delivery) CORBA (Common Object Request Broker Architecture) servant (C,C++,Java,…) client (C,C++,Java,…) + heterogeneous platforms/languages + use “legacy” programs + secure + low server overhead (uses client) + efficient, powerful, flexible x complexity x no direct FORTRAN support Object Request Broker (ORB) request-response request-response CORBA interfaces CORBA interfaces request-response request-response CORBA
FTP HTTP JavaRMI CORBA SOAP … TCP (Transmission Control Protocol – management) hardware dependent transmission protocol IP (Internetwork Protocol – message delivery) SOAP (Simple Object Access Protocol) service (C,C++,Java,…) client (C,C++,Java,…) SOAP Response message: HTTP/1.1 200 OKContent-Type: text/xml; charset="utf-8"Content-Length: nnnn<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://xmlsoap.org/soap/envelope/" SOAP-ENV:encodingStyle="http://xmlsoap.org/soap/encod/"> <SOAP-ENV:Body> <m:GetMagnitudeResponse xmlns:m="Some-URI"> <Magnitude>6.7</Magnitude> </m:GetMagnitudeResponse> </SOAP-ENV:Body></SOAP-ENV:Envelope> SOAP Request message: POST /Magnitude HTTP/1.1Host: orfeus.nlContent-Type: text/xml; charset="utf-8"Content-Length: nnnnSOAPAction: "Some-URI"<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://xmlsoap.org/soap/envelope/" SOAP-ENV:encodingStyle="http://xmlsoap.org/soap/encod/"> <SOAP-ENV:Body> <m:GetMagnitude xmlns:m="Some-URI"> <event>20030923.100327</event> </m:GetMagnitude> </SOAP-ENV:Body></SOAP-ENV:Envelope> + heterogeneous platforms/languages + use HTTP / XML + secure + low server overhead (uses client) + powerful, flexible + standardized, w/ registry services x complexity x poor efficiency (?) SOAP XML messages (HTTP) request-response SOAP interfaces SOAP interfaces request-response request-response request-response HTTP SOAP
A quick overview of Network communications References General: Developer.com - http://developer.com O'Reilly Network - http://www.oreillynet.com W3Schools - http://www.w3schools.com Connected: An Internet Encyclopaedia - http://www.freesoft.org/CIE HTTP: HTTP Made Really Easy - http://www.jmarshall.com/easy/http Java & JavaRMI: java.sun.com - http://java.sun.com CORBA: Object Management Group - http://www.omg.org Two papers on CORBA and FORTRAN - http://accl.grc.nasa.gov/IPG/CORBA/CAS_corba.pdfhttp://www.ssgrr.it/en/ssgrr2002w/papers/211.pdf SOAP soapware.org http://www.soapware.org Anthony Lomax Scientific Software, Mouans-Sartoux, France anthony@alomax.netwww.alomax.net