view slides

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

Upload: zubin67

Post on 07-Jul-2015

179 views

Category:

Documents


2 download

TRANSCRIPT

Session 1194JBuilder 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

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

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

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

SOA Platform

`

Source: W3C Web Service Architecture Note

•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-ReliableMessaging•WS-Policy•WS-PolicyAssertions•WS-Addressing•WS-Eventing

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

•WSDL 1.1

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

SOA – Java Centric View

`

Source: W3C Web Service Architecture Note

•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

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

•WSDL4J•JAXRPC•JSR181

•JSR109•J2EE1.4

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

Developing a Web Service

•UDDI•WSIL

•WSDL•WS-SecurityPolicy•WS-Policy

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

Find ServiceIntrospect and Bind

Invoke Service

Lets look at what is involved in building a Web Service

JBuilder and Web ServicesHistory

Very early support for Web Services

Until recently, a wizard-based approach

Now the Web Services Designer

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

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

Developing Web Services in JBuilder

Using WSD to build Web Services– Java based services– WSDL based services– Session-bean based services– Message-driven-bean based servicesWeb Services ExplorerTCP monitorWS-I tools

WSDL AnalyzerMonitor and Log Analyzer

Commonly encountered issuesCollection classes

Logging

Document literal

Wrapped

Attachments

Session

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

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

WSD Demo

TCP Monitor

Configure TCP Monitor

Monitor SOAP packets on the wire

Modify and re-execute Service from Monitor

Save Monitor output

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

WSD Demo

WSDL styles

RPC / Encoded

Document / Literal

Wrapped

Document vs. Wrapped

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

WSD Demo

Attachment

Interoperability issues

WS-I Basic Profile and attachments

Soap with Attachments

DIME

Base64

MTOM

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

WSD Demo

WSDL based service

Web Services Explorer

Create Client

Run Test client

Use TCP Monitor

WSD Demo

Publishing a service

Create the service

Setup the publishing context

Publish the Service

Use it to import the Service

WSD Demo

Session-bean based service

Create Session bean

Drag, Scan, Create session bean based service

Run Server, test client

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

WSD samples

WSD documentation

WSD tutorials

WSD Axis samples

WSD WebLogic samples

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

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

Questions?

Thank You

Session #1194JBuilder 2005 Web Services Designer

Please fill out the speaker evaluation

You can contact me further at …[email protected]

Help 2 Page Setup and Printing

The page setup for this template is set at 8.87 x 6.67. This fits the 9 x 12 screen at all events. Please do not adjust this setting.

When you are printing be sure to deselect all the boxes for black and white.