soap ui introduction
TRANSCRIPT
![Page 1: Soap ui introduction](https://reader033.vdocument.in/reader033/viewer/2022061616/55c9514bbb61ebe6518b476c/html5/thumbnails/1.jpg)
SOAP UI Introduction
Ikuru Kyogoku
![Page 2: Soap ui introduction](https://reader033.vdocument.in/reader033/viewer/2022061616/55c9514bbb61ebe6518b476c/html5/thumbnails/2.jpg)
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](https://reader033.vdocument.in/reader033/viewer/2022061616/55c9514bbb61ebe6518b476c/html5/thumbnails/3.jpg)
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](https://reader033.vdocument.in/reader033/viewer/2022061616/55c9514bbb61ebe6518b476c/html5/thumbnails/4.jpg)
Starting Project
• Using this web service for all sampleshttp://wsf.cdyne.com/WeatherWS/
Weather.asmx?WSDL
![Page 5: Soap ui introduction](https://reader033.vdocument.in/reader033/viewer/2022061616/55c9514bbb61ebe6518b476c/html5/thumbnails/5.jpg)
Starting Project cnt’d
![Page 6: Soap ui introduction](https://reader033.vdocument.in/reader033/viewer/2022061616/55c9514bbb61ebe6518b476c/html5/thumbnails/6.jpg)
Starting Project cnt’d
Simply click ok after filling in name and wsdl ptr
![Page 7: Soap ui introduction](https://reader033.vdocument.in/reader033/viewer/2022061616/55c9514bbb61ebe6518b476c/html5/thumbnails/7.jpg)
Services described in the wsdl show up.
![Page 8: Soap ui introduction](https://reader033.vdocument.in/reader033/viewer/2022061616/55c9514bbb61ebe6518b476c/html5/thumbnails/8.jpg)
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](https://reader033.vdocument.in/reader033/viewer/2022061616/55c9514bbb61ebe6518b476c/html5/thumbnails/9.jpg)
Submit request to existing web service
![Page 10: Soap ui introduction](https://reader033.vdocument.in/reader033/viewer/2022061616/55c9514bbb61ebe6518b476c/html5/thumbnails/10.jpg)
Generating mock service
• Right click on green thingee, and click “Generate SOAP Mock Service” method.
![Page 11: Soap ui introduction](https://reader033.vdocument.in/reader033/viewer/2022061616/55c9514bbb61ebe6518b476c/html5/thumbnails/11.jpg)
Dialogue pops up.• Fill in as you wish (Default works)• Click ok for the next dialogue
![Page 12: Soap ui introduction](https://reader033.vdocument.in/reader033/viewer/2022061616/55c9514bbb61ebe6518b476c/html5/thumbnails/12.jpg)
Mock service created
![Page 13: Soap ui introduction](https://reader033.vdocument.in/reader033/viewer/2022061616/55c9514bbb61ebe6518b476c/html5/thumbnails/13.jpg)
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](https://reader033.vdocument.in/reader033/viewer/2022061616/55c9514bbb61ebe6518b476c/html5/thumbnails/14.jpg)
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.)