SOAP Web Services in NetBeans - Computer...

11
SOAP Web Services in SOAP Web Services in NetBeans NetBeans Nirav Nirav (Nero) Desai (Nero) Desai

Transcript of SOAP Web Services in NetBeans - Computer...

Page 1: SOAP Web Services in NetBeans - Computer Sciencekena/classes/7818/f08/lectures/lecture_4_netbeans... · The Setup Software needed NetBeans IDE (6.1) JDK (1.6) Apache Axis2 (1.4) Implementation

SOAP Web Services inSOAP Web Services inNetBeansNetBeans

NiravNirav (Nero) Desai (Nero) Desai

Page 2: SOAP Web Services in NetBeans - Computer Sciencekena/classes/7818/f08/lectures/lecture_4_netbeans... · The Setup Software needed NetBeans IDE (6.1) JDK (1.6) Apache Axis2 (1.4) Implementation

The SetupThe Setup

Software neededSoftware needed NetBeansNetBeans IDE (6.1) IDE (6.1) JDK (1.6)JDK (1.6) Apache Axis2 (1.4)Apache Axis2 (1.4)

Implementation of SOAPImplementation of SOAPSupports SOAP 1.1, 1.2 and Supports SOAP 1.1, 1.2 and RESTfulRESTful web services web services

Tomcat web server (6.0)Tomcat web server (6.0)

Make it all work togetherMake it all work together http://www.netbeans.org/kb/61/websvc/gs-axis.htmlhttp://www.netbeans.org/kb/61/websvc/gs-axis.html

Page 3: SOAP Web Services in NetBeans - Computer Sciencekena/classes/7818/f08/lectures/lecture_4_netbeans... · The Setup Software needed NetBeans IDE (6.1) JDK (1.6) Apache Axis2 (1.4) Implementation

Create ServerCreate Server

New Project > Web ApplicationNew Project > Web Application New > Web ServiceNew > Web Service

Page 4: SOAP Web Services in NetBeans - Computer Sciencekena/classes/7818/f08/lectures/lecture_4_netbeans... · The Setup Software needed NetBeans IDE (6.1) JDK (1.6) Apache Axis2 (1.4) Implementation

Create MethodsCreate Methods

Page 5: SOAP Web Services in NetBeans - Computer Sciencekena/classes/7818/f08/lectures/lecture_4_netbeans... · The Setup Software needed NetBeans IDE (6.1) JDK (1.6) Apache Axis2 (1.4) Implementation

Running the ServerRunning the Server

Page 6: SOAP Web Services in NetBeans - Computer Sciencekena/classes/7818/f08/lectures/lecture_4_netbeans... · The Setup Software needed NetBeans IDE (6.1) JDK (1.6) Apache Axis2 (1.4) Implementation

Create the ClientCreate the Client

New Project > Java ApplicationNew Project > Java Application New > Web Service ClientNew > Web Service Client

Page 7: SOAP Web Services in NetBeans - Computer Sciencekena/classes/7818/f08/lectures/lecture_4_netbeans... · The Setup Software needed NetBeans IDE (6.1) JDK (1.6) Apache Axis2 (1.4) Implementation

Consuming the Web ServiceConsuming the Web Service

Drag & DropDrag & Drop

Page 8: SOAP Web Services in NetBeans - Computer Sciencekena/classes/7818/f08/lectures/lecture_4_netbeans... · The Setup Software needed NetBeans IDE (6.1) JDK (1.6) Apache Axis2 (1.4) Implementation

Final Client CodeFinal Client Code

Page 9: SOAP Web Services in NetBeans - Computer Sciencekena/classes/7818/f08/lectures/lecture_4_netbeans... · The Setup Software needed NetBeans IDE (6.1) JDK (1.6) Apache Axis2 (1.4) Implementation

Bringing it all togetherBringing it all together

Page 10: SOAP Web Services in NetBeans - Computer Sciencekena/classes/7818/f08/lectures/lecture_4_netbeans... · The Setup Software needed NetBeans IDE (6.1) JDK (1.6) Apache Axis2 (1.4) Implementation

…… or make it web-based or make it web-based

Page 11: SOAP Web Services in NetBeans - Computer Sciencekena/classes/7818/f08/lectures/lecture_4_netbeans... · The Setup Software needed NetBeans IDE (6.1) JDK (1.6) Apache Axis2 (1.4) Implementation

Questions?Questions?