Top Banner
Session 1194 JBuilder 2005 Web Services Designer Ravi Kumar Principal Engineer Borland
32

Session 1194 JBuilder 2005 Web Services Designer Ravi Kumar Principal Engineer Borland.

Dec 28, 2015

Download

Documents

Dayna Curtis
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Session 1194 JBuilder 2005 Web Services Designer Ravi Kumar Principal Engineer Borland.

Session 1194JBuilder 2005 Web Services Designer

Ravi Kumar Principal Engineer

Borland

Page 2: Session 1194 JBuilder 2005 Web Services Designer Ravi Kumar Principal Engineer Borland.

Session outline Overview of SOA

SOA, XML and Web Services

Standards and Specifications

Java API

JBuilder Web Services Designer (WSD)

Common Web Service design issues

Summary and questions and answers

Page 3: Session 1194 JBuilder 2005 Web Services Designer Ravi Kumar Principal Engineer Borland.

Overview of SOA

Exposing business assets as services

Creating services bottom-up

Communication between services through standards based meta-data

Composing services through aggregation

Orchestrating services through flows

Page 4: Session 1194 JBuilder 2005 Web Services Designer Ravi Kumar Principal Engineer Borland.

SOA, XML and Web ServiceSOA can be built on any distributed architecture – CORBA, DCOM, etc …… though

XML and Web Services has emerged as platform of choice for SOA

Page 5: Session 1194 JBuilder 2005 Web Services Designer Ravi Kumar Principal Engineer Borland.

Session outline Overview of SOA

SOA, XML and Web Services

Standards and Specifications

Java API

JBuilder Web Services Designer (WSD)

Common Web Service design issues

Summary and questions and answers

Page 6: Session 1194 JBuilder 2005 Web Services Designer Ravi Kumar Principal Engineer Borland.

SOA Platform

`

Source: W3C Web Service Architecture Note

•SOAP 1.1•MTOM (SOAP Message Transmission Optimization Mechanism•XML Schema 1.1•XML 1.0

•SOAP 1.1•MTOM (SOAP Message Transmission Optimization Mechanism•XML Schema 1.1•XML 1.0

•WS-Trust•WS-SecureConversation•WS-SecurityPolicy•WS-Federation•SAML, XACML, SPML, Liberty, XKMS •XML-Encryption•XML-Signature

•WS-Trust•WS-SecureConversation•WS-SecurityPolicy•WS-Federation•SAML, XACML, SPML, Liberty, XKMS •XML-Encryption•XML-Signature

•WS-ReliableMessaging•WS-Policy•WS-PolicyAssertions•WS-Addressing•WS-Eventing

•WS-ReliableMessaging•WS-Policy•WS-PolicyAssertions•WS-Addressing•WS-Eventing

•UDDI 2.0•WSIL•WS-Coordination•WS-Orchestration•WS-Choreography•WS-BEPL

•UDDI 2.0•WSIL•WS-Coordination•WS-Orchestration•WS-Choreography•WS-BEPL

•WSDL 1.1•WSDL 1.1

Page 7: Session 1194 JBuilder 2005 Web Services Designer Ravi Kumar Principal Engineer Borland.

Session outline Overview of SOA

SOA, XML and Web Services

Standards and Specifications

Java API

JBuilder Web Services Designer (WSD)

Common Web Service design issues

Summary and questions and answers

Page 8: Session 1194 JBuilder 2005 Web Services Designer Ravi Kumar Principal Engineer Borland.

SOA – Java Centric View

`

Source: W3C Web Service Architecture Note

•JAXP•JAXB•SAAJ

•JAXP•JAXB•SAAJ

•JSR-105 XML Digital Signature API•JSR-106 XML Digital Encryption API•JSR-104 XML Test Service API•JSR-155 Web Services Security Assertion

•JSR-105 XML Digital Signature API•JSR-106 XML Digital Encryption API•JSR-104 XML Test Service API•JSR-155 Web Services Security Assertion

•JAXR•UDDI4J•JSR207 Process Definition API•JSR208 Business Integration•BEPLJ

•JAXR•UDDI4J•JSR207 Process Definition API•JSR208 Business Integration•BEPLJ

•WSDL4J•JAXRPC•JSR181

•WSDL4J•JAXRPC•JSR181

•JSR109•J2EE1.4

•JSR109•J2EE1.4

Page 9: Session 1194 JBuilder 2005 Web Services Designer Ravi Kumar Principal Engineer Borland.

Session outline

Overview of SOA

SOA, XML and Web Services

Standards and Specifications

Java API

JBuilder Web Services Designer (WSD)

Common Web Service design issues

Summary and questions and answers

Page 10: Session 1194 JBuilder 2005 Web Services Designer Ravi Kumar Principal Engineer Borland.

Developing a Web Service

•UDDI•WSIL

•UDDI•WSIL

•WSDL•WS-SecurityPolicy•WS-Policy

•WSDL•WS-SecurityPolicy•WS-Policy

•SOAP•MTOM•WS-ReliableMessaging•WS-Addressing

•SOAP•MTOM•WS-ReliableMessaging•WS-Addressing

Find Service Introspect and Bind

Introspect and Bind

Invoke ServiceInvoke Service

Lets look at what is involved in building a Web Service

Page 11: Session 1194 JBuilder 2005 Web Services Designer Ravi Kumar Principal Engineer Borland.

JBuilder and Web ServicesHistory

Very early support for Web Services

Until recently, a wizard-based approach

Now the Web Services Designer

Page 12: Session 1194 JBuilder 2005 Web Services Designer Ravi Kumar Principal Engineer Borland.

Web Services DesignerDesign goals

Visual Designer for Service and Flows

Central cockpit for all things Web Services

Unified look and feel encapsulating nuances of each implementation

Maintain a pluggable toolkit neutral architecture

Page 13: Session 1194 JBuilder 2005 Web Services Designer Ravi Kumar Principal Engineer Borland.

Web Services DesignerArchitecture

Built on a pair of descriptors :Service Designer and Flow DesignerDesigned to allow aggregation and collaboration between modulesPluggable toolkit support

Built-in support for Axis WebLogic

Other Toolkit implementations are welcome

Page 14: Session 1194 JBuilder 2005 Web Services Designer Ravi Kumar Principal Engineer Borland.

Developing Web Services in JBuilder

Using WSD to build Web ServicesJava based servicesWSDL based servicesSession-bean based servicesMessage-driven-bean based services

Web Services ExplorerTCP monitorWS-I tools

WSDL AnalyzerMonitor and Log Analyzer

Page 15: Session 1194 JBuilder 2005 Web Services Designer Ravi Kumar Principal Engineer Borland.

Commonly encountered issuesCollection classes

Logging

Document literal

Wrapped

Attachments

Session

Page 16: Session 1194 JBuilder 2005 Web Services Designer Ravi Kumar Principal Engineer Borland.

WSD Demo

Let’s get started using WSD

Before each demo, we will

Start by specifying what we want to do

A brief how to cheat sheet

Demo

Page 17: Session 1194 JBuilder 2005 Web Services Designer Ravi Kumar Principal Engineer Borland.

WSD Demo

Java based service

Create a bean

Export it as a Web Service

Build to generate Web Service stubs

Run the Web Service on the Server

Run the Test client to verify service

A look under the hood

Page 18: Session 1194 JBuilder 2005 Web Services Designer Ravi Kumar Principal Engineer Borland.

WSD Demo

TCP Monitor

Configure TCP Monitor

Monitor SOAP packets on the wire

Modify and re-execute Service from Monitor

Save Monitor output

Page 19: Session 1194 JBuilder 2005 Web Services Designer Ravi Kumar Principal Engineer Borland.

WSD Demo

Complex types & Collection Classes

Introduce complex type in Bean and look at type-mapping

Monitor and look at SOAP

Create bean with Collection class

Configure Extra classes

Get data from Collection

Page 20: Session 1194 JBuilder 2005 Web Services Designer Ravi Kumar Principal Engineer Borland.

WSD Demo

WSDL styles

RPC / Encoded

Document / Literal

Wrapped

Document vs. Wrapped

Page 21: Session 1194 JBuilder 2005 Web Services Designer Ravi Kumar Principal Engineer Borland.

WSD Demo

WS-I Conformance

Now, let’s Create a doc / literal service

Use WS-I to validate WSDL

Setup WS-I monitor for logging

Run Server, test Client

Validate using WS-I analyzer

Page 22: Session 1194 JBuilder 2005 Web Services Designer Ravi Kumar Principal Engineer Borland.

WSD Demo

Attachment

Interoperability issues

WS-I Basic Profile and attachments

Soap with Attachments

DIME

Base64

MTOM

Page 23: Session 1194 JBuilder 2005 Web Services Designer Ravi Kumar Principal Engineer Borland.

WSD Demo

Axis WSDD & Flow Designer

What is WSDD?

The Flow Designer

Create a log handler

Drag & Drop handler for Service

Run Server and run test Client

Validate logging

Page 24: Session 1194 JBuilder 2005 Web Services Designer Ravi Kumar Principal Engineer Borland.

WSD Demo

WSDL based service

Web Services Explorer

Create Client

Run Test client

Use TCP Monitor

Page 25: Session 1194 JBuilder 2005 Web Services Designer Ravi Kumar Principal Engineer Borland.

WSD Demo

Publishing a service

Create the service

Setup the publishing context

Publish the Service

Use it to import the Service

Page 26: Session 1194 JBuilder 2005 Web Services Designer Ravi Kumar Principal Engineer Borland.

WSD Demo

Session-bean based service

Create Session bean

Drag, Scan, Create session bean based service

Run Server, test client

Page 27: Session 1194 JBuilder 2005 Web Services Designer Ravi Kumar Principal Engineer Borland.

WSD Demo

Message-driven-bean based service

Create Message-driven bean

Drag, Scan, Create Message-driven bean based service

Run Server

Use Web Services Console

Page 28: Session 1194 JBuilder 2005 Web Services Designer Ravi Kumar Principal Engineer Borland.

WSD samples

WSD documentation

WSD tutorials

WSD Axis samples

WSD WebLogic samples

Page 29: Session 1194 JBuilder 2005 Web Services Designer Ravi Kumar Principal Engineer Borland.

Session outline Overview of SOA

SOA, XML and Web Services

Standards and Specifications

Java API

JBuilder Web Services Designer (WSD)

Common Web Service design issues

Summary and questions and answers

Page 30: Session 1194 JBuilder 2005 Web Services Designer Ravi Kumar Principal Engineer Borland.

SummaryOverview of SOA, Standards and Implementations

WSD - created services from a Bean, Ejb and WSDL

WS Explorer, TCP Monitor, WS-I analyzer, WS-I monitor

Common issues: attachments, doc/literal, wrapped, session, collection classes, logging, etc

Page 31: Session 1194 JBuilder 2005 Web Services Designer Ravi Kumar Principal Engineer Borland.

Questions?

Page 32: Session 1194 JBuilder 2005 Web Services Designer Ravi Kumar Principal Engineer Borland.

Thank You

Session #1194JBuilder 2005 Web Services Designer

Please fill out the speaker evaluation

You can contact me further at …[email protected]