soap web services in netbeans - computer sciencekena/classes/7818/f08/lectures/... · the setup...

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

Upload: buithuan

Post on 30-Jan-2018

233 views

Category:

Documents


0 download

TRANSCRIPT

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

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/... · The Setup Software needed NetBeans IDE (6.1) JDK (1.6) Apache Axis2 (1.4) Implementation of SOAP

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/... · The Setup Software needed NetBeans IDE (6.1) JDK (1.6) Apache Axis2 (1.4) Implementation of SOAP

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/... · The Setup Software needed NetBeans IDE (6.1) JDK (1.6) Apache Axis2 (1.4) Implementation of SOAP

Create MethodsCreate Methods

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

Running the ServerRunning the Server

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

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/... · The Setup Software needed NetBeans IDE (6.1) JDK (1.6) Apache Axis2 (1.4) Implementation of SOAP

Consuming the Web ServiceConsuming the Web Service

Drag & DropDrag & Drop

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

Final Client CodeFinal Client Code

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

Bringing it all togetherBringing it all together

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

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

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

Questions?Questions?