How to Use soapUI Tool for Testing Web Services

Posted by Amandeep Singh

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

SoapUI - Tool for testing web servicesI have been testing end-to-end web applications for a long time, and web services have always been an integral part of the systems I have tested.

Testing web services had been a daunting process till I stumbled upon soapUI tool for web service testing over a year ago.

The proof of how easy and useful I find it to use is the fact that I utilise it every day (of course, only on the days when I work ;)).

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 in soapUI tool.

Let’s get started.

Step #1. First of all, download soapUI and create a new project!

Follow the path: File >> New soapUI Project or just 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 calling 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.


For more free sample WSDL URLs for web services, check this post.

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 web service.

Then, why the hassle?

The advantage of using a WSDL is, it contains all the crucial information about the web service to be tested – Sample Request and Response, Web Service contents and much more.

WSDLs make your life much easier, especially when you are just getting started with testing web services. To get started, I recommend getting the WSDL files – your project developers/web service architects should be able to help to get them!

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

WSDL Added to a new soapUI Project

You can double-click on the project name in the navigator to see the overview of any project and related details. As you become an advanced user of soapUI, this window provides some valuable 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 services in soapUI tool!

Here’s how.

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

Fill the mandatory field tags and click on the Run (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 (Run) button, it brings back the response from the server, which will show 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 made to the server, and the response returned.

Over to you!

This is how you use soapUI for web services testing!

I hope you find this introductory tutorial to soapUI testing tool helpful. Do give soapUI a try and if at all you stumble upon any issues, let me know in the comments below.

If you think this tutorial about soapUI web services testing could help your colleagues and friends, please do tweet it and share it on facebook.

Till then, happy testing!

Did you like this post?
Sign up now and I will send you more awesome posts like this every week.
I agree to have my personal information transfered to AWeber ( more information )
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.

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

  1. Nget Samy May 24, 2017 at 2:50 AM - Reply

    Dear Sir,
    If i want diagram from you about SOAP UI ?

  2. Huda October 29, 2016 at 7:07 PM - Reply

    Hi Amandeep

    Thank you so much for this clear explanation
    I am a master student and master thesis will be comparing some nonfunctional requirements of SOA service VS. REST service.

    so my question: is SOAPUI tool suitable and enough for me to do that?

    Best regards

    • Amandeep Singh December 1, 2016 at 4:20 PM - Reply

      Hi Huda,
      Yes, I think you can!

      You could also check PostMan for this. Whatever you do and how it goes, I would be interested to know 🙂


  3. 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…

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

  5. 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 🙂

  6. 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?

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

    Hi Aman,

    Very useful information. Explained in very simple steps.

    Thanks a ton.


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

    thanks aman Please provide more articles on Soapui

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


  10. 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…

  11. 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…!

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

    New knowledge for me also helped me in my work.

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

    Good work Aman .. 🙂

  14. 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?


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

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


  17. 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 🙂

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

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

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

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