19 Copyright © 2005, Oracle. All rights reserved. Distributing Modular Applications: Developing Web Services.

Slides:



Advertisements
Similar presentations
TWO STEP EQUATIONS 1. SOLVE FOR X 2. DO THE ADDITION STEP FIRST
Advertisements

Advanced Piloting Cruise Plot.
J0 1 Marco Ronchetti - Basi di Dati Web e Distribuite – Laurea Specialistica in Informatica – Università di Trento.
Copyright © 2003 Pearson Education, Inc. Slide 1 Computer Systems Organization & Architecture Chapters 8-12 John D. Carpinelli.
Chapter 1 The Study of Body Function Image PowerPoint
1 Copyright © 2013 Elsevier Inc. All rights reserved. Chapter 1 Embedded Computing.
Copyright © 2011, Elsevier Inc. All rights reserved. Chapter 5 Author: Julia Richards and R. Scott Hawley.
Copyright © 2011, Elsevier Inc. All rights reserved. Chapter 6 Author: Julia Richards and R. Scott Hawley.
Author: Julia Richards and R. Scott Hawley
1 Copyright © 2013 Elsevier Inc. All rights reserved. Appendix 01.
1 Copyright © 2010, Elsevier Inc. All rights Reserved Fig 2.1 Chapter 2.
UNITED NATIONS Shipment Details Report – January 2006.
Communicating in J2EE.
21 Copyright © 2005, Oracle. All rights reserved. Oracle Application Server 10g Transaction Support.
1 Copyright © 2005, Oracle. All rights reserved. Introduction.
7 Copyright © 2005, Oracle. All rights reserved. Maintaining State in J2EE Applications.
18 Copyright © 2005, Oracle. All rights reserved. Distributing Modular Applications: Introduction to Web Services.
5 Copyright © 2005, Oracle. All rights reserved. Accessing the Database with Servlets.
4 Copyright © 2005, Oracle. All rights reserved. Creating the Web Tier: Servlets.
16 Copyright © 2005, Oracle. All rights reserved. Developing Message-Driven Beans.
11 Copyright © 2005, Oracle. All rights reserved. Creating the Business Tier: Enterprise JavaBeans.
15 Copyright © 2005, Oracle. All rights reserved. Container-Managed Relationships (CMRs)
1 Copyright © 2005, Oracle. All rights reserved. Introducing the Java and Oracle Platforms.
9 Copyright © 2005, Oracle. All rights reserved. Modularizing JavaServer Pages Development with Tags.
8 Copyright © 2005, Oracle. All rights reserved. Creating the Web Tier: JavaServer Pages.
J2EE Overview.
6 Copyright © 2005, Oracle. All rights reserved. Building Applications with Oracle JDeveloper 10g.
17 Copyright © 2005, Oracle. All rights reserved. Deploying Applications by Using Java Web Start.
Jeopardy Q 1 Q 6 Q 11 Q 16 Q 21 Q 2 Q 7 Q 12 Q 17 Q 22 Q 3 Q 8 Q 13
Jeopardy Q 1 Q 6 Q 11 Q 16 Q 21 Q 2 Q 7 Q 12 Q 17 Q 22 Q 3 Q 8 Q 13
Title Subtitle.
My Alphabet Book abcdefghijklm nopqrstuvwxyz.
DIVIDING INTEGERS 1. IF THE SIGNS ARE THE SAME THE ANSWER IS POSITIVE 2. IF THE SIGNS ARE DIFFERENT THE ANSWER IS NEGATIVE.
FACTORING ax2 + bx + c Think “unfoil” Work down, Show all steps.
Addition Facts
Year 6 mental test 5 second questions
Year 6 mental test 10 second questions
REVIEW: Arthropod ID. 1. Name the subphylum. 2. Name the subphylum. 3. Name the order.
ABC Technology Project
1 Undirected Breadth First Search F A BCG DE H 2 F A BCG DE H Queue: A get Undiscovered Fringe Finished Active 0 distance from A visit(A)
VOORBLAD.
15. Oktober Oktober Oktober 2012.
1 Breadth First Search s s Undiscovered Discovered Finished Queue: s Top of queue 2 1 Shortest path from s.
©2007 First Wave Consulting, LLC A better way to do business. Period This is definitely NOT your father’s standard operating procedure.
BIOLOGY AUGUST 2013 OPENING ASSIGNMENTS. AUGUST 7, 2013  Question goes here!
Factor P 16 8(8-5ab) 4(d² + 4) 3rs(2r – s) 15cd(1 + 2cd) 8(4a² + 3b²)
Squares and Square Root WALK. Solve each problem REVIEW:
Basel-ICU-Journal Challenge18/20/ Basel-ICU-Journal Challenge8/20/2014.
Eclipse Web Tools Platform Project © 2005 IBM Corporation Developing Web Services with Eclipse – Programming Examples Arthur Ryman IBM Rational
© 2012 National Heart Foundation of Australia. Slide 2.
Understanding Generalist Practice, 5e, Kirst-Ashman/Hull
GG Consulting, LLC I-SUITE. Source: TEA SHARS Frequently asked questions 2.
Addition 1’s to 20.
25 seconds left…...
Januar MDMDFSSMDMDFSSS
Week 1.
Analyzing Genes and Genomes
We will resume in: 25 Minutes.
©Brooks/Cole, 2001 Chapter 12 Derived Types-- Enumerated, Structure and Union.
Intracellular Compartments and Transport
PSSA Preparation.
Immunobiology: The Immune System in Health & Disease Sixth Edition
Essential Cell Biology
Immunobiology: The Immune System in Health & Disease Sixth Edition
Immunobiology: The Immune System in Health & Disease Sixth Edition
CpSc 3220 Designing a Database
Presentation transcript:

19 Copyright © 2005, Oracle. All rights reserved. Distributing Modular Applications: Developing Web Services

19-2 Copyright © 2005, Oracle. All rights reserved. Objectives After completing this lesson, you should be able to do the following: Identify the components that can be exposed as Web services with Oracle Application Server 10g Develop, deploy, and test a stateless Java class Web service by using Oracle JDeveloper 10g Use the Web services home page to test the deployed Web service Identify the steps that are involved in exposing a PL/SQL stored procedure as a Web service

19-3 Copyright © 2005, Oracle. All rights reserved. Oracle Application Server 10g Web Services Oracle Application Server 10g Web services can be implemented as any of the following: Stateless and stateful Java classes Stateless PL/SQL packages Stateless session Enterprise JavaBeans (EJBs) Java Message Service (JMS) destinations

19-4 Copyright © 2005, Oracle. All rights reserved. Developing a Web Service with a Stateless Java Class 1.Define an interface. 2.Define a stateless Java class. 3.Generate an.ear file. 4.Deploy the generated.ear file to Oracle Application Server 10g.

19-5 Copyright © 2005, Oracle. All rights reserved. Defining an Interface

19-6 Copyright © 2005, Oracle. All rights reserved. Defining an Interface

19-7 Copyright © 2005, Oracle. All rights reserved. Defining a Stateless Java Class

19-8 Copyright © 2005, Oracle. All rights reserved. Defining a Stateless Java Class

19-9 Copyright © 2005, Oracle. All rights reserved.

19-10 Copyright © 2005, Oracle. All rights reserved. Creating the Web Service

19-11 Copyright © 2005, Oracle. All rights reserved. Creating the Client Application

19-12 Copyright © 2005, Oracle. All rights reserved. Creating the Client Application

19-13 Copyright © 2005, Oracle. All rights reserved. Deploying the Web Service

19-14 Copyright © 2005, Oracle. All rights reserved. Testing the Web Service

19-15 Copyright © 2005, Oracle. All rights reserved. Web Service Home Page A Web service home page provides: A link to the service description (WSDL file) Links to Web service test pages to test the available operations of the Web service Links to the Web service client-side Proxy Jar Links to the Web service client-side Proxy Source

19-16 Copyright © 2005, Oracle. All rights reserved. Testing the Deployed Web Service with Home Page

19-17 Copyright © 2005, Oracle. All rights reserved. Testing the sayHello Operation

19-18 Copyright © 2005, Oracle. All rights reserved. Testing the sayHello Operation

19-19 Copyright © 2005, Oracle. All rights reserved. Serializing and Encoding Parameters and Results Oracle Application Server 10g Web services support a prepackaged implementation for handling encoding, decoding, serialization, and deserialization. Oracle Application Server 10g supports the following encoding mechanisms: –Standard SOAP v.1.1 encoding –Literal XML encoding

19-20 Copyright © 2005, Oracle. All rights reserved. Developing a Stored Procedure Web Service 1.Set up data sources in OC4J by configuring the data-sources.xml file in the ORACLE_HOME\j2ee\home\config folder. 2.Generate the Java wrapper classes for the PL/SQL package and generate the EAR file. 3.Deploy the EAR file to Oracle Application Server 10g or stand-alone OC4J to expose it as a Web service.

19-21 Copyright © 2005, Oracle. All rights reserved. Generating Wrapper Classes Using JPublisher DatabaseJPublisher Java classes

19-22 Copyright © 2005, Oracle. All rights reserved. Exposing a Function as a Web Service by Using Oracle JDeveloper 10g

19-23 Copyright © 2005, Oracle. All rights reserved. Publishing the Package as a Web Service

19-24 Copyright © 2005, Oracle. All rights reserved. JMS Web Services Oracle Application Server 10g supplies a servlet to support two operations on messages: – Send operation – Receive operation The JMS Web service determines how to handle incoming and outgoing messages from JMS destinations. JMS messages can be processed on the server side by: –Message-Driven Bean (MDB) –JMS client

19-25 Copyright © 2005, Oracle. All rights reserved. JMS Web Services

19-26 Copyright © 2005, Oracle. All rights reserved. Summary In this lesson, you should have learned how to: Expose a stateless Java class as a Web service Test the Web service with the Web service home page Use Oracle JDeveloper 10g to develop, deploy, and test Web services Expose a PL/SQL stored procedure as a Web service

19-27 Copyright © 2005, Oracle. All rights reserved. Practice 19-1: Overview This practice covers the following topics: Exposing a stateless session bean as Web service by using Oracle JDeveloper 10g Deploying the Web service to an embedded OC4J server and testing it with a client application Deploying the Web service to Oracle Application Server 10g and testing it with the Web services home page

19-28 Copyright © 2005, Oracle. All rights reserved.

19-29 Copyright © 2005, Oracle. All rights reserved.

19-30 Copyright © 2005, Oracle. All rights reserved.