Module 3
Module 3
1
[WEB SERVICES]
Course Module
web for program-to-user interactions allowing companies to reduce the cost of doing e-
business, to deploy solutions faster and to open up new opportunities.
You can build on Solaris a Java-based web service that's accessible from your Windows
running Visual Basic software.
You can also use C # to build new web services under Windows that can be invoked from
your JavaServer Pages (JSP)-based web application and run on Linux.
Example
Find a basic program for account-managing and order processing. A client application built
with Visual Basic or JSP is used by accounting personnel to create new accounts and to enter
new customer orders.
The processing logic for this system is written in Java, and resides on a Solaris machine,
which also interacts to store information with a database.
The steps to perform this operation are as follows:
• The client program bundles the account registration information into a SOAP
message.
• This SOAP message is sent to the web service as the body of an HTTP POST request.
• The web service unpacks the SOAP request and converts it into a command that the
application can understand.
• The application processes the information as required and responds with a new
unique account number for that customer.
• Next, the web service packages the response into another SOAP message, which it
sends back to the client program in response to its HTTP request.
• The client program unpacks the SOAP message to obtain the results of the account
registration process.
agent through Simple Object Access Protocol (SOAP) over HTTP, FTP, SMTP, and TCP during
the runtime.
4. The server side agent activates the appropriate object, and delivers the calls to the object.
Course Module
HTTP POST and response replace application programming (in legacy CORBA and COM
interface definition languages, or IDLs) SOAP (HTTP and XML) is in text rather than binary,
so it’s much easier to interoperate across machines and debug it.
-Binary transmissions are not humanreadable
-SOAP can send binary objects like pictures (that are human readable) SOAP is
sufficiently efficient for most machinemachine communication
– Don’t use it on a single machine: use native COM or Java mechanisms
XML Summary
▪ Databases can read and write XML documents
▪ Web (HTTP) servers can send and receive XML documents
• XML can be displayed in browsers, via XSL
• XML can be translated between organizations, via XSL
▪ XML documents are small parts of a database
• XSD (or DTD) defines business rules and a schema:
o Entities, attributes, relationships, cardinality, and keys.
• XML documents can contain validation data, conditional data, objects
(graphics, other binary data)
• Applications are being designed to use XML heavily
▪ XML documents are generally not read into the core part of a database
• Placed in a staging area, then checked and processed, before being placed in
core part of database
▪ Many XML extensions: RDF, semantic Web, and UDDI.
• You’re able to read about them with basic XML background
Very large companies use EDI and force it on their smaller partners/vendors
• XML documents follow EDI standards in many cases
EDI documents are called Transaction Sets (TS)
EDI to XML mapping established using DTDs
• New users of Internet ecommerce may skip EDI and use XML
Less than 80,000 of 6.2 million US businesses use EDI 125,000 businesses worldwide
use EDI EDI cost and complexity are large obstacle for medium size businesses
• Microsoft, by making XML the markup language for MS Office, may be hoping to take over
ecommerce through disruptive, lowcost technology.
EDI communications:
▪ Binary, not text (difficult to change or troubleshoot) EDI transaction sets are static
(that’s not all bad) EDI designed for expensive and scarce communications
▪ Companies generally use file transfer to send file to VAN VAN handles EDI exchange
with trading partners Geared to onceaday, batch exchanges of data.
Course Module
References and Supplementary Materials
Books and Journals
1. <Hubert Baumeister>; <2018>; <System Integration>; <Denmark>
2. <Len Bass, Paul clements, Rick Kazman>; <2012>; <Software Architecture in Practice>;
<USA>; <Addison-Wesley >
3. < Sathish Kumar Konga><Basic Integrative Programming Technologies: Data
Integration Technology/Architectures>; <2012>; <System Integration>; <LAP Lambert
Academic>