soa tooling using netbeans

29
Topic 5 SOA Tooling Using NetBeans Dr.Thanachart Numnonda Sun Microsystems (Thailand) Asst.Prof.Thanisa Kruawaisayawan KMITL

Upload: thanachart-numnonda

Post on 15-Jan-2015

3.129 views

Category:

Technology


2 download

DESCRIPTION

This presentation shows how could we use NetBeans as a tool for building SOA

TRANSCRIPT

Page 1: SOA Tooling Using NetBeans

Topic 5

SOA Tooling Using NetBeans

Dr.Thanachart NumnondaSun Microsystems (Thailand)

Asst.Prof.Thanisa KruawaisayawanKMITL

Page 2: SOA Tooling Using NetBeans

2

SOA Task

Page 3: SOA Tooling Using NetBeans

3

NetBeans Capability• Testing Web Services via soupUI• Create Web Services Client• Create Web Services Provider • Create a BPEL Module Project• Create XML Schema • Create WSDL Document• Create BPEL Process• Create a Composite Application Project• Deploy/Test Composite Application Project• Create Web Application as Access Layer•

Page 4: SOA Tooling Using NetBeans

4

Testing Web Services via soapUI

• Install a soapUI plugin • Offers a Web Service testing tool• Create a Web Service Testing Project• Define a location of WSDL• Ability to send SOAP Request & get SOAP response• Offers commands to generate artifacts for JAX-WS,

JBoss, Axis, Orcale

Page 5: SOA Tooling Using NetBeans

5

Page 6: SOA Tooling Using NetBeans

6

Example : SOAP Request/Response

Page 7: SOA Tooling Using NetBeans

7

Create a Web Service Client

• Create a Web / JavaEE /Java Application project• Create a New Web Services Client • Use either JAX-WS or JAX-RPC style

Page 8: SOA Tooling Using NetBeans

8

Create a Web Service Provide

• Create a Web /Java EE Project– Servlet Container– EJB Container

• Support Java EE 5 Web Service annotation• Create a New Web Service • Can deploy on GlassFish or Tomcat 6.0

Page 9: SOA Tooling Using NetBeans

9

Page 10: SOA Tooling Using NetBeans

10

BPEL Module Project• BPEL Module project is a group of source files which

includes – XML Schema (*.xsd) files– WSDL files– BPEL files

• Within a BPEL Module project, you can author a business process compliant with the WS-BPEL 2.0 language specification.

• Will be added to a Composite application as a JBI module

Page 11: SOA Tooling Using NetBeans

11

Create a BPEL Module Project

Page 12: SOA Tooling Using NetBeans

12

Create XML Schema

• Use XML Schema designer (of NetBeans)• Visually analyze and edit XML Schema• Apply Design Patterns to XML Schema• Author complex XML Schema• Support for cross project XML file references• Schema based code completion for XML instances

Page 13: SOA Tooling Using NetBeans

13

XML Schema Graphical Editor

Page 14: SOA Tooling Using NetBeans

14

Create WSDL Document

• Use WSDL Designer (of NetBeans)• Create WSDL files using graphical editor

– Refactor across WSDL, XML and BPEL– Support different Binding type

Page 15: SOA Tooling Using NetBeans

15

Page 16: SOA Tooling Using NetBeans

16

Graphical WSDL Editor

Page 17: SOA Tooling Using NetBeans

17

Create BPEL Process

• Use BPEL Designer (of NetBeans)• Visually author BPEL 2.0 business processes• Easily Create XPath expressions in the BPEL

Mapper

Page 18: SOA Tooling Using NetBeans

18

BPEL Designer

Page 19: SOA Tooling Using NetBeans

19

BPEL Mapper

Page 20: SOA Tooling Using NetBeans

20

Composite Application Project• Composite Application project is a project whose

primary purpose is to assemble a deployment unit for the Java Business Integration (JBI) server – BPEL Module projects must be added to a Composite

Application project in order to be deployed to the BPEL runtime.

• The Composite Application Project can also be used to create and execute test cases that can then be run, in JUnit fashion, against the deployed BPEL processes.

Page 21: SOA Tooling Using NetBeans

21

Composite Application Project• With a Composite Application project, you can:

– Assemble an application that uses multiple project types (BPEL, XSLT, IEP, SQL, etc.)

– Configure external/edge access protocols (SOAP, JMS, SMTP, and others)

– Build JBI deployment packages– Deploy the application image to the target JBI server– Monitor the status of JBI server components and

applications

Page 22: SOA Tooling Using NetBeans

22

Create Composite Application Project

Page 23: SOA Tooling Using NetBeans

23

Services Assembly

Page 24: SOA Tooling Using NetBeans

24

Deploy/Test Composite Application

• The Deploy action compiles the files in the Composite Application project, packages the compiled BPEL and related web service artifacts (.wsdl and .xsd files), and deploys them to the BPEL Service Engine

• Verify that the project has been successfully deployed to the BPEL service engine

• Create /Run Test Case

Page 25: SOA Tooling Using NetBeans

25

Run TestCase

Page 26: SOA Tooling Using NetBeans

26

Develop an Access Layer

• Composite Application Project can deploy a BPEL Module which in turn a Web Services

• Create a Web Service Client • Using Servlet /JSP• Support JSF / Struts Framework

Page 27: SOA Tooling Using NetBeans

27

Visual JSF Designer

Page 28: SOA Tooling Using NetBeans

28

Resources

Some contents are borrowed from the presentation slides of Sang Shin, Java™ Technology Evangelist, Sun Microsystems, Inc.

Building SOA-Based Composite Applications Using NetBeans IDE 6, David Salter

Page 29: SOA Tooling Using NetBeans

29

Thank you

[email protected]/thanachart

www.facebook.com/thanachartwww.thaijavadev.com