Soap ui introduction

Preview:

Citation preview

SOAP UI Introduction

Ikuru Kyogoku

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.

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…

Starting Project

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

Weather.asmx?WSDL

Starting Project cnt’d

Starting Project cnt’d

Simply click ok after filling in name and wsdl ptr

Services described in the wsdl show up.

Looking at generated request.

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

Submit request to existing web service

Generating mock service

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

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

Mock service created

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.

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.)

Recommended