Top Banner
Session 1194 JBuilder 2005 Web Services Designer Ravi Kumar Principal Engineer Borland
33
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: View Slides

Session 1194JBuilder 2005 Web Services Designer

Ravi Kumar Principal Engineer

Borland

Page 2: View Slides

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: View Slides

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: View Slides

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: View Slides

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: View Slides

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

Page 7: View Slides

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: View Slides

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

Page 9: View Slides

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: View Slides

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

Page 11: View Slides

JBuilder and Web ServicesHistory

Very early support for Web Services

Until recently, a wizard-based approach

Now the Web Services Designer

Page 12: View Slides

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: View Slides

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: View Slides

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

Page 15: View Slides

Commonly encountered issuesCollection classes

Logging

Document literal

Wrapped

Attachments

Session

Page 16: View Slides

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: View Slides

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: View Slides

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: View Slides

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: View Slides

WSD Demo

WSDL styles

RPC / Encoded

Document / Literal

Wrapped

Document vs. Wrapped

Page 21: View Slides

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: View Slides

WSD Demo

Attachment

Interoperability issues

WS-I Basic Profile and attachments

Soap with Attachments

DIME

Base64

MTOM

Page 23: View Slides

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: View Slides

WSD Demo

WSDL based service

Web Services Explorer

Create Client

Run Test client

Use TCP Monitor

Page 25: View Slides

WSD Demo

Publishing a service

Create the service

Setup the publishing context

Publish the Service

Use it to import the Service

Page 26: View Slides

WSD Demo

Session-bean based service

Create Session bean

Drag, Scan, Create session bean based service

Run Server, test client

Page 27: View Slides

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: View Slides

WSD samples

WSD documentation

WSD tutorials

WSD Axis samples

WSD WebLogic samples

Page 29: View Slides

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: View Slides

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: View Slides

Questions?

Page 32: View Slides

Thank You

Session #1194JBuilder 2005 Web Services Designer

Please fill out the speaker evaluation

You can contact me further at …[email protected]

Page 33: View Slides

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.