How To Use soapUI Tool To Test And Demo Web Services

Posted by Amandeep Singh

If you are working on SOA-based projects, you won’t deny the fact that Web Services can sometimes drive you crazy and when you are on the testing squad, the effect is even more!

SoapUI - Tool for testing web servicesI have been testing end-to-end Web Applications for more than 5 years now and Web Services have always been an integral part of the systems I have worked on. Most of the times, testing them has been a pain and never been easy till I stumbled upon soapUI web service testing tool over an year ago and the proof of how easy and useful I find it to use, is the fact that I utilize it everyday (of course, when in office ;)).

soapUI (by Smartbear) is a great tool to test and demo REST/WADL and SOAP/WSDL-based Web Services.

In this quick tutorial, I will show you how to test web services using soapUI tool. So, let’s get started…

Step #1. First of all, download soapUI from here and create a new project! Follow the path: File >> New soapUI Project or simply click anywhere in soapUI tool and use ‘Ctrl+N’ to create a new project.

Create a New Project in soapUI

This will bring up the new project setup pop-up which looks like this:

New Project in soapUI

Step #2. Now, name the project and point it to a valid WSDL/WADL. In this tutorial, I am naming the project as “QST soapUI Tutorial” and pointing it to the sample WSDL file provided by soapUI team – for your convenience I have given 2 sample WSDL URLs below. You can run either of these to get started with soapUI.


Once your ‘New Project’ window looks as shown in the screen grab below, click on ‘OK’

Add the WSDL Details to soapUI New Project

Now, at this point you might have a question, “Why do I need to import a WSDL?” Well, mostly the soapUI projects are based on WSDL however, it is not compulsory to import a WSDL to test a webservice. Then, why the hassle?

The advantage of using a WSDL is that it contains all the crucial information about the web service to be tested – sample Request and Response, Web Service contents and much more. So basically, WSDLs make your life much easier, especially when you are just getting started with testing Web Services. So, I would recommend getting the WSDL files to get started – your project developers/webservice architects should have it!

Step #3. Based on the WSDL source you use, soapUI will load the related definitions and configuration and will show up the operations in the Web Service. If you have followed the steps correctly, below is how the navigator would look like.

WSDL Added to a new soapUI Project

You can double-click on the project name in navigator to see the overview of any project and related details. As you become an advanced user of soapUI, this window provides some very important information which you would need going forward.

View Project Properties in soapUI

In the same way, clicking on the Web Service gives you an interface-level view of the WSDL itself.

View WSDL Properties in soapUI

Step #4. Now, how to test the Web Service in soapUI tool! Here is how…

With all the interface operations shown in the WSDL navigator screen, navigate to the service request in the test layout tree, double-click on the Request. This will open up a stubbed request and response with comments to help you fill it up.

Fill in the mandatory field tags and click on the Green Play Button.

In the below example, I have simply added the values in the request for currency conversion and once I click on the Green Play button, it brings back response from the server, which is shown in the right section in the below image. (Click image to enlarge)

Testing WebServices in soapUI tool

The Request/Response are by-default set to XML format. You can click on ‘Raw’ tab in either Request or Response to get a full view of the http request which was made to the server and the response returned back.

And, this is how you test an Interface/Web Service using soapUI tool!

So, how do you find soapUI Web Services testing tool? Do give it a try and if at all you stumble upon any issues, let me know in the comments below.

Also, check out this article and nominate your colleagues/teams for software testing awards.

Did you like this post?
Sign up now and I will send you more awesome posts like this every week.
The following two tabs change content below.
Aman is the founder and editor, QuickSoftwareTesting. Having spent plenty of years in Quality Assurance, he decided to share his knowledge with the testing community and that is when QST was born! You can also catch him on Facebook and Twitter.

30 Comments so far. Feel free to join this conversation.

  1. Ramandeep July 20, 2016 at 7:37 AM - Reply

    Hi Amandeep,

    I want to do load testing using Soap UI and for that i need to fetch data from excel sheet. How can i fetch data from the sheet?
    Pls help!!

    Thanks and Regards,

    • Amandeep Singh August 5, 2016 at 12:15 PM - Reply

      Hi Raman – I haven’t tried this myself but I think this could help you…

  2. bhagya April 20, 2016 at 8:02 AM - Reply

    I get this error

    Error Message:
    Unknown host:

    Additional Details:
    No additional details available

    How to fix this

  3. Pallavi January 5, 2016 at 11:43 PM - Reply

    My request takes an xml attachment. I would like to pass the attachment (or) the contents of the attachment directly in the request and avoid adding the xml file to the attachments tab.
    Any ideas on how to do this

    • Amandeep Singh January 19, 2016 at 7:28 PM - Reply

      Hi Pallavi,

      First of all, apologies for the delay in replying to your query.

      Attachments in soapUI are managed in the attachments tab at the bottom of the request editor. You can attach the file you want to send here and make a reference to it using the cid: notation. You can more details here.

      Please do let me know in case of further queries and how it goes… so if this works for you, do reply here 🙂

  4. VIVEK January 5, 2016 at 6:33 AM - Reply

    Hi Amandeep,

    I tried with currency convertor wsdl

    I am getting -1 as response. I tried with all values but the result is same -1.

    • Amandeep Singh January 19, 2016 at 7:17 PM - Reply

      Hi Vivek, I think the WSDL service was down when you tried this – are you still facing the same issue?

  5. Imran October 8, 2015 at 9:06 PM - Reply

    Hi Aman,

    Very useful information. Explained in very simple steps.

    Thanks a ton.


  6. Pravin patil October 4, 2015 at 4:23 AM - Reply

    thanks aman Please provide more articles on Soapui

  7. raji September 10, 2015 at 11:54 AM - Reply

    Hi Amandeep

    Thanks a Lot!

    I am new in soapui ,i have a 4+experience in selenium +java frame works .
    how can i integrate groovy script with soapui functional test ?
    using wsdl

    please guide to step by step groovy code
    Thanks and regards

    • Amandeep Singh September 21, 2015 at 2:03 PM - Reply

      Hi Raji –

      I think this resource could be helpful.


  8. krishna kirti mishra February 3, 2015 at 6:36 AM - Reply

    Hello I have a big doubt. How the soapUI importing wsdl and working properly without creating a java proxy file .
    Can we do the same thing without using automatically generated java proxy file in eclipse.
    If yes then how?

    • Amandeep Singh February 26, 2015 at 10:29 AM - Reply

      Hi Krishna,

      I am not an avid user of eclipse at the moment and not too sure about this one… I would recommend posting your query on Eclipse forums at

      I hope this helps… apologies I couldn’t help more in this instance…

  9. Maulik Ozwala December 18, 2014 at 5:29 AM - Reply

    Hi Aman,

    Great work…

    Can you please write the whole testing process for any sample WSDL available ? I mean everything, Test cases and results verifications.



    • Amandeep Singh February 26, 2015 at 10:30 AM - Reply

      Sure Maulik, I can plan this in one of my upcoming articles…!

  10. Nishant Luthra November 21, 2014 at 11:38 AM - Reply

    New knowledge for me also helped me in my work.

  11. kawal August 19, 2014 at 11:21 AM - Reply

    Good work Aman .. 🙂

  12. Sandeep July 14, 2014 at 3:39 PM - Reply

    This is a great tutorial. Thanks!!!

    I have a few doubts regarding using Soap UI. Can we use it for test on any web page. Suppose I want to test (using soap UI) successful login with valid user name and password in say facebook.

    Can this be done? Where is WSDL file for this?


  13. pratiksharma172000 June 19, 2014 at 6:48 AM - Reply

    @Nikhil and @Raghu :
    for currency ocnverter, try using the following WSDL –

    @Aman – thanks praji. good one for beginners.

  14. Manoj Lonar June 7, 2014 at 7:18 AM - Reply

    Hi Aman,

    Thanks a million!

    Please let us know what more need to be tested, I mean advance level of testing with SOAP UI (sample sites).


    Manoj Lonar

    • Amandeep Singh June 13, 2014 at 10:15 AM - Reply

      Hi Manoj,

      I do plan to write about this with sample WSDLs in the near future. Please subscribe to my newsletter to keep you updated with once the post is published.


  15. Pavithra S Ramanathan May 22, 2014 at 11:38 AM - Reply

    Wish I saw this post couple of days ago.. could have answered an interview question much better.. but yeah it is a good one..

    • Amandeep Singh May 22, 2014 at 11:45 AM - Reply

      Aha… someone looking for a change. Well, good luck! 😉

      Thanks for your comment, Pavithtra. You can bookmark it now for future references 🙂

  16. Raghu February 27, 2014 at 6:55 AM - Reply

    I’m also getting same error like Nikhil
    WSDl: currency_converter.wsdl

  17. Shriyash February 26, 2014 at 12:03 PM - Reply

    How can we test a website without having its WSDL file?
    Please help me, I want to test a website without using WSDL.

    • Amandeep Singh February 26, 2014 at 2:15 PM - Reply

      Hi Shriyash,

      Please can you elaborate more? soapUI is for testing webservices and for this you will need a WSDL file

  18. Nikhil February 21, 2014 at 11:14 AM - Reply

    Getting below response after entering input
    Please can you help ? I am new into this


    System.Web.Services.Protocols.SoapException: Server was unable to process request. —> System.IO.IOException: There is not enough space on the disk.

    at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
    at System.IO.FileStream.WriteCore(Byte[] buffer, Int32 offset, Int32 count)
    at System.IO.FileStream.FlushWrite(Boolean calledFromFinalizer)
    at System.IO.FileStream.Dispose(Boolean disposing)
    at System.IO.Stream.Close()
    at System.IO.StreamWriter.Dispose(Boolean disposing)
    at System.IO.TextWriter.Dispose()
    at Microsoft.CSharp.CSharpCodeGenerator.FromSourceBatch(CompilerParameters options, String[] sources)
    at Microsoft.CSharp.CSharpCodeGenerator.System.CodeDom.Compiler.ICodeCompiler.CompileAssemblyFromSourceBatch(CompilerParameters options, String[] sources)
    at System.CodeDom.Compiler.CodeDomProvider.CompileAssemblyFromSource(CompilerParameters options, String[] sources)
    at System.Xml.Serialization.Compiler.Compile(Assembly parent, String ns, XmlSerializerCompilerParameters xmlParameters, Evidence evidence)
    at System.Xml.Serialization.TempAssembly.GenerateAssembly(XmlMapping[] xmlMappings, Type[] types, String defaultNamespace, Evidence evidence, XmlSerializerCompilerParameters parameters, Assembly assembly, Hashtable assemblies)
    at System.Xml.Serialization.TempAssembly..ctor(XmlMapping[] xmlMappings, Type[] types, String defaultNamespace, String location, Evidence evidence)
    at System.Xml.Serialization.XmlSerializer.FromMappings(XmlMapping[] mappings, Type type)
    at System.Web.Services.Protocols.SoapServerType..ctor(Type type, WebServiceProtocols protocolsSupported)
    at System.Web.Services.Protocols.SoapServerProtocol.Initialize()
    at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type, HttpContext context, HttpRequest request, HttpResponse response, Boolean& abortProcessing)
    — End of inner exception stack trace —

Leave A Response