Developing Web Services With Oracle Web Logic Server
Upcoming SlideShare
Loading in...5
×

Like this? Share it with your network

Share

Developing Web Services With Oracle Web Logic Server

  • 16,042 views
Uploaded on

Talk given at Sun tech 2010 in Hyderabad, India about developing web services with weblogic server and how to enable some of the WS* standards for your web services

Talk given at Sun tech 2010 in Hyderabad, India about developing web services with weblogic server and how to enable some of the WS* standards for your web services

  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
No Downloads

Views

Total Views
16,042
On Slideshare
16,029
From Embeds
13
Number of Embeds
3

Actions

Shares
Downloads
212
Comments
0
Likes
3

Embeds 13

http://www.slideshare.net 9
http://www.linkedin.com 3
http://www.lmodules.com 1

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide
  • Charles

Transcript

  • 1. Developing Web Services with Oracle WebLogic Server Gaurav Sharma
  • 2. The following is intended to outline our general product direction. It is intended for information purposes only, and may not be incorporated into any contract. It is not a commitment to deliver any material, code, or functionality, and should not be relied upon in making purchasing decisions. The development, release, and timing of any features or functionality described for Oracle’s products remains at the sole discretion of Oracle.
  • 3. Agenda
    • Web Service Landscape
    • Oracle Web Service Infrastructure
    • Key Features
    • Tooling – Development and management
    • Demo
    • Q & A
    <Insert Picture Here>
  • 4. <Insert Picture Here> Web Service Landscape
  • 5. Web Services : What is it? Points to description Describes Service Finds Service Invokes with XML Messages SOAP/REST UDDI Registry Points to service WSDL Web Service (JEE, SOA, PL/SQL, .NET,C/C++, Legacy …) Web Service Client (JEE,SOA,.NET, PL/SQL …)
  • 6. Where is Web Service today?
    • Standards : still evolving
      • JAX-*
      • WS-*
    • Adoption
      • Everybody understands what it is
      • Ubiquitously adopted and deployed
      • Popular for connecting platforms and applications
      • Starting to go beyond basics
    • What are the pain points?
      • Security
      • Performance
      • Complexity
      • Interoperability
    • Contention points
      • SOAP vs. REST
  • 7. <Insert Picture Here> Oracle Web Services
  • 8. Oracle Fusion Middleware Technologies
  • 9. Mission Statement Interoperability Standards Extensions
    • World-class implementations
      • JAX-*
      • WS-*
    • Value-added extensions
      • Reliability
      • Scalability
      • Performance
      • Availability
    • Interoperability assurance
      • Oracle FMW products
      • 3 rd -party stacks
    Oracle WS
  • 10. Oracle Web Service Offering Development OEPE JDeveloper Policy WLS policies OWSM policies Management WLS Console EM Oracle WS Infra WS WLS WS SOA WS JEE WS WC WS ADF WS
  • 11. Web Services Infrastructure WebLogic Server Stateful Service JAX-WS JMS SOAP HTTP SOAP HTTP REST JAXB Data Binding SwA Asynch Service WS- Security WS- Addressing WS- Reliable Messaging MTOM Logging Auditing WS-AT Web Services Java Programming Model – Java EE Declarative QoS (WS-Policy) Web Services Management With EM/WLC/WLST Web Services Development With JDeveloper/OEPE WSIF
  • 12. Demo Develop different type of web services (ADF/WLS) using Oracle Jdeveloper
  • 13. <Insert Picture Here> Key Features
  • 14. Features Overview
    • JAX-*
    • SOAP1.* & WS-Policy
    • WS-SecurityPolicy
    • WS-ReliableMessaging
    • WS-Addressing
    • WS-SecureConversation
    • MTOM
    • WS-AT
    • REST
    • JAXB/SDO databinding
    • WS-I BP/BSP/RSP
    Standards
    • Reliability
    • Availability
    • Scalability
    • Performance
    • Interoperability
    • Database web service
    • Spring web service
    • Stateful web service
    • Asynchronous web service
    • Custom policies
    Value-added
    • Web service management
    • Web service security configuration
    • Policy attachment
    • Policy management
    • WLST-based web service management
    • Test page
    Management
  • 15. Feature : Dual Programming Model Service Endpoint WSDL Description WSDL<->Java Mapping Dispatch Container Service Client Protocol (SOAP/REST) Server Side Runtime System JAX-WS/RPC API Client side Runtime System Stub Transport Tie JAX-WS/RPC API
  • 16. JAX-WS vs JAX-RPC?
    • SOAP 1.2 vs SOAP 1.1
    • JAXB (data mapping model)
    • MTOM (Message Transmission Optimization Mechanism)
    • XML/HTTP - WSDL 1.1 specification defined an HTTP binding, which is a means by which you can send XML messages over HTTP without SOAP. JAX-RPC ignored the HTTP binding. JAX-WS adds support for it.
    • WS-I's Basic Profiles JAX-RPC supports WS-I's Basic Profile (BP) version 1.0. JAX-WS supports BP 1.1.
    • JAX-RPC maps to Java 1.4. JAX-WS maps to Java 5.0.
    • EJB 3.0 vs EJB 2.1
    • The handler model (SAAJ 1.3 specification)
  • 17. Feature : Declarative QoS
    • Can be configured using
      • EM
      • WLS Console
      • WLST
      • JDeveloper/OEPE
      • QoS parameters set as Policies
        • Security
        • Reliable Messaging
        • Attachment
        • Addressing
        • Management
    Web Services Client Management JAX-WS Service Endpoint JAX-WS Client Transport HTTP SOAP Message SOAP Message SOAP Message SOAP Message Web Services Server Management WS- Security WS- RM Auditing/ Logging WS- RM Auditing/ Logging Auditing/ Logging WS- RM WS- Security Auditing/ Logging WS- RM Response Request WS- Security WS- Security
  • 18. Feature : End-to-end Policy Support
    • Policy Administration
      • Browse policies available in policy store
      • Attach/detach policies to services
      • Monitor policy violations
    • Policy management
      • Search for policies
      • Create new, create-like policies
      • Generate client policies
      • Trace policy usages
      • Export/import policies
      • Support complete policy life cycle management
        • Authoring
        • Versioning
  • 19. Web Services With Policies Look up Policy References Describe Service Policies Look up Policy References Security/RM/… SOAP Policy Manager & Store Policy Enforcement Policy Enforcement WSDL With Policies Web Service (JEE, .NET, SOA, PLSQL, Legacy …) Web Service Client (JEE, .NET, SOA, …)
  • 20. Feature : Web Service Security Client WS-Security JAX-WS Service Endpoint JAX-WS Client Transport HTTP SOAP Message SOAP Message SOAP Message SOAP Message Server WS-Security Add Auth Token Encrypt Sign Decrypt Check Signature Check Signature Decrypt Check Auth Token Sign Encrypt
    • Access Control(Aucn/Auzn)
    • Message Confidentiality
    • Message Integrity
    • OOTB security policies
      • WLS policies
      • OWSM policies
    Response Request
  • 21. Feature : WS-RM Sender Receiver
    • Implicit support through policy
    • Interoperable
    • Scalable & clusterable
    • Durable & recoverable via persistence store
    • Reliable messaging for synch/asynch MEP’s
    • Reliable conversation over multiple invocations
    Application Layer RM Source Application Layer RM Destination Msg Ack
  • 22. Feature : Consolidated Management
    • Integrated with FMW Admin tools
      • EM
      • WLS Admin Console
      • WLST
    • Management
      • Service configuration
        • Lookup
        • Update
    • Management
      • Policy
        • Attachment/detachment
        • Enablement/disablement
        • Life cycle management
        • Parameter configuration
      • Runtime activity monitoring
        • Performance metrics
        • Policy violation metrics
  • 23. Feature : REST
    • JAX-WS HTTPBinding
    JAX-RS (JSR-311) @WebServiceProvider( targetNamespace=&quot;http://example.org&quot;, serviceName = &quot;HelloRS&quot;) @BindingType(value = HTTPBinding.HTTP_BINDING) public class HelloRS implements Provider<Source> { public Source invoke(Source source) { return createSource(“Hello World”); } } @Path(&quot;/helloworld&quot;) public class HelloRS { @GET @Produces(&quot;text/plain&quot;) public String getClichedMessage() { return &quot;Hello World&quot;; } }
  • 24. Feature : Database Web Services XML Parser JAX-RPC Servlet Decoding Encoding Oracle WebLogic Web Service SOAP SOAP SOAP Libraries Publisher Generated Artifacts SQL/Query SQL/DML XML PL/SQL JDBC JSP
  • 25. Feature : Asynchronous Web Service
    • Synchronous MEP
    • Common use cases
      • Request/response MEP over HTTP
      • Short-running operations
      • Real-time processing
    • Pain points
      • Blocking
      • Indefinite waiting
      • Timeout
    • Asynchronous MEP
    • Common use cases
      • Two one-way MEP over HTTP
      • Long-running operations
      • Delayed or batch processing
    • Benefits
      • Better suit real-world business model
      • Provide richer messaging patterns beyond request/reply
      • Thread/JMS-based responder
  • 26. Feature : Stateful Web Service
    • Client to remain in a conversation over consecutive requests/responses
    • Useful for building shopping cart type applications using web services
    • Container to control message dispatching to service endpoint
      • “ Pinning” service endpoint instance
      • Storing attributes in HTTP Session
    client server GetShoppingCart (new session) ShoppingCart + SessionID(#1) addItem + SessionID(#1) GetShoppingCart(new session) ShoppingCart + SessionID(#2) Response + SessionID(#1)
  • 27. <Insert Picture Here> Tooling – Development and management
  • 28. Feature : Development Tools
    • WLS web service Ant commands
      • JAX-RPC/WS
    • JDeveloper
      • JAX-RPC/WS & SOA
      • WSDL editor
      • HTTP Analyzer
        • HTTPS
        • WS-*
      • DBWS
      • JAX-RS
    • OEPE
      • JAX-WS
      • WSDL editor
      • JAX-WS/JAXB custom binding file editor
  • 29. Demo Web service development and management
  • 30. Consuming web services using web services client
    • JSE / J2EE client
    • .Net client (Platform independence)
    • SOA
    • ADF DC
  • 31. Feature : Web Service Testing
  • 32. <Insert Picture Here> Summary
  • 33. Web Services Infrastructure WebLogic Server Stateful Service JAX-WS JMS SOAP HTTP SOAP HTTP REST JAXB Data Binding SwA Asynch Service WS- Security WS- Addressing WS- Reliable Messaging MTOM Logging Auditing WS-AT Web Services Java Programming Model – Java EE Declarative QoS (WS-Policy) Web Services Management With EM/WLC/WLST Web Services Development With JDeveloper/OEPE WSIF
  • 34. Questions & Answers