my first web services example - xfire, spring, soapui

Post on 15-Jan-2015

7.818 Views

Category:

Business

0 Downloads

Preview:

Click to see full reader

DESCRIPTION

 

TRANSCRIPT

My First Web Services Example - XFire, Spring, SoapUIAlbert Guo

junyuo@gmail.com

Agenda

• Setup Web Services Environment

• Setup Web Services IDE Environment

• Install and Validation Process

• Download Extra Jar Files

• Buzzwords

• Web Services Architecture

• Scenario

• Deployment descriptors of the Web application

• Testing Procedure

2

Setup Web Services Environment

http://java.sun.com/webservices/containers/tomcat_for_JWSDP_1_5.htmlhttp://java.sun.com/webservices/containers/tomcat_for_JWSDP_1_5.html

http://java.sun.com/webservices/downloads/1.5/http://java.sun.com/webservices/downloads/1.5/

http://java.sun.com/j2se/1.5.0/http://java.sun.com/j2se/1.5.0/

3

Setup Web Services IDE Environment

http://www.eclipse.org/downloads/http://www.eclipse.org/downloads/

http://www.myeclipseide.com/module-htmlpages-display-pid-4.htmlhttp://www.myeclipseide.com/module-htmlpages-display-pid-4.html

4

http://www.soapui.org/features.htmlhttp://www.soapui.org/features.html

Install and Validation Process

5

Install and Validation Process – cont.

6

Download Extra Jar Files

http://xfire.codehaus.org/http://xfire.codehaus.org/ http://springframework.org/http://springframework.org/

7

Buzzwords

8

Web Services Architecture

9

Scenario – Use Case Diagram

10

Scenario – Sequence Diagram

11

Scenario – Class Diagram

12

Scenario

13

Provide WeatherServices RequestProvide WeatherServices Request

Return Weather InformationReturn Weather Information

Deployment descriptors of the Web application – web.xml

14

Deployment descriptors of the Web application – server.xml

15

Testing Procedure

16

http://localhost:8080/XfireDemo/services/Weather?wsdlhttp://localhost:8080/XfireDemo/services/Weather?wsdl

Check Web Services is Working

17

http://localhost:8080/XfireDemo/services/Weather?wsdlhttp://localhost:8080/XfireDemo/services/Weather?wsdl

WSDL DeclarationWSDL Declaration

provides data type definitions used to describe the messages exchangedprovides data type definitions used to describe the messages exchanged

Check Web Services is Working – cont.

18

a set of abstract operations. Each operation refers to an input message and output messages

a set of abstract operations. Each operation refers to an input message and output messages

represents an abstract definition of the data being transmittedrepresents an abstract definition of the data being transmitted

specifies concrete protocol and data format Specifications for the operations and messages defined by a particular portType

specifies concrete protocol and data format Specifications for the operations and messages defined by a particular portType

used to aggregate a set of related portsused to aggregate a set of related ports

Apply soapUI to do Test – Create new WSDL Project

19

Apply soapUI to do Test – Create new WSDL Project (cont.)

20

Apply soapUI to do Test – Search Taipei’s Weather Status

21

RequestRequest ResultResult

Apply soapUI to do Test – Search Toronto’s Weather Status

22

RequestRequest ResultResult

Reference

• http://www.javaworld.com/javaworld/jw-05-2006/jw-0501-xfire.html?page=1

23

top related