SOA Tooling Using NetBeans

Post on 15-Jan-2015

3.129 views 2 download

description

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

Transcript of SOA Tooling Using NetBeans

Topic 5

SOA Tooling Using NetBeans

Dr.Thanachart NumnondaSun Microsystems (Thailand)

Asst.Prof.Thanisa KruawaisayawanKMITL

2

SOA Task

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•

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

5

6

Example : SOAP Request/Response

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

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

9

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

11

Create a BPEL Module Project

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

13

XML Schema Graphical Editor

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

15

16

Graphical WSDL Editor

17

Create BPEL Process

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

Mapper

18

BPEL Designer

19

BPEL Mapper

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.

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

22

Create Composite Application Project

23

Services Assembly

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

25

Run TestCase

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

27

Visual JSF Designer

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

29

Thank you

thanachart.numnonda@sun.comtwitter.com/thanachart

www.facebook.com/thanachartwww.thaijavadev.com