Professional Documents
Culture Documents
WL
By
Janaranjani K
Agenda
• Webservices.
• Weblogic configuration.
• Deployment of an EJB component in
WLS.
Webservices
Abstract
Web Services is a technology applicable for
computationally distributed problems, including
access to large databases
– What other technologies were/are available
and how they compare with Web Services?
Why to use more than one
computer?
• Distributed resources
– access to shared data
– access to shared programs
– access to CPU (e.g. many desktop PCs
together), to memory, to special devices (e.g.
printer)
Distributed architecture
• gives
– access to distributed resources
– development encapsulation
• maintainability, re-usability, legacy-
awareness
– implementation independence
• requires
– adding a communication layer between parts
– synchronization of efforts
Continued…
• cgi scripts:
– Data transmitted as name-value pairs (HTML
forms)
– Transport over (state-less) HTTP protocol
– no standards for keeping user sessions (state-
fullness)
– server side: a script is called
CORBA-based approach
• CORBA:
– Data transmitted as objects (at least it looks
like that)
– Transport (usually) over well standardised IIOP
protocol
– user sessions (state-fullness) very inter-
operable
– server side: an RPC call is made
SOAP-based communication
• SOAP:
– Data in a well-defined XML format
– Transport over various protocols
• HTTP, SMTP are the most used, perhaps
because they are firewall-friendly
– server side: either an RPC call or a message
delivered
Web services
Service Service
requestor provider
(Application) (Application
webservices)
SOAP SOAP
Response
Request Invocation
WSDL
• Web Services Description Language (WSDL) is an
XML-based specification that describes a Web
Service. A WSDL document describes Web
Service operations, input and output parameters,
and how a client application connects to the Web
Service.
UDDI/WSDL
UDDI/WSDL publish
find
Service Service
requestor provider
bind
Web Services Stack
WSFL
WSDL
SOAP
HTTP,FTP,email
etc
Creating WebLogic Web Services:
Main Steps
2. Start the server under the user specific domain.
6. Run the ant script (if any, or some other equivalent to that)
to compile the application. The ant script should handle the
following:
– Creates the appropriate directory(i.e., build) to place the
Class files.
– Creates META-INF directory(i.e., build\META-INF), under
which ejb-jar.xml is placed.
– Creates jar file of the application(i.e., jar of build directory)
and placed under the
WL_HOME\domains\mydomain\applications.
Continued…