14
SOAP UI Introduction Ikuru Kyogoku

Soap ui introduction

Embed Size (px)

Citation preview

Page 1: Soap ui introduction

SOAP UI Introduction

Ikuru Kyogoku

Page 2: Soap ui introduction

What is SOAP UI?

• Primary use case: Generate xml based Mock Web Services from wsdl.

• Mock services are needed for testing the client application before the web service is ready & running.

• Will not cover definition of xml, web services, and wsdl (Google will better explain).

• OSS version and Proprietary version.

Page 3: Soap ui introduction

Mock service lifecycle

• Obtain wsdl -> all web services must publish this.

• Create SOAP UI project using wsdl• Generate mock services• Perform testing of queries, export and deploy

on a server etc…

Page 4: Soap ui introduction

Starting Project

• Using this web service for all sampleshttp://wsf.cdyne.com/WeatherWS/

Weather.asmx?WSDL

Page 5: Soap ui introduction

Starting Project cnt’d

Page 6: Soap ui introduction

Starting Project cnt’d

Simply click ok after filling in name and wsdl ptr

Page 7: Soap ui introduction

Services described in the wsdl show up.

Page 8: Soap ui introduction

Looking at generated request.

• If the service is a real service, it can be directly tested from the generated request.

Page 9: Soap ui introduction

Submit request to existing web service

Page 10: Soap ui introduction

Generating mock service

• Right click on green thingee, and click “Generate SOAP Mock Service” method.

Page 11: Soap ui introduction

Dialogue pops up.• Fill in as you wish (Default works)• Click ok for the next dialogue

Page 12: Soap ui introduction

Mock service created

Page 13: Soap ui introduction

Start mock service and “hit” it with a request.

• Hit play button on mock service, open a request, modify URL to the configured mock service url, and send a request.

Page 14: Soap ui introduction

Configuring the response

• Can clone a response file• Can populate values in the response skeleton. (Notice

that default values are “?”, which are to be replaced with actual values.)

• Can configure logic for response. (Send different response xml based on different values in the input xml.)

• Can deploy mock service on a separate machine , and access the service from another application(JBoss supports simply dropping a war file.)