Forum Discussion

eeyoreeco's avatar
eeyoreeco
Occasional Contributor
11 years ago

Web Service Testing - API (Request / Response Messages)

Hi Guys,

Good day.

I would like to ask this, since I'm totally new in the world of "Web Service Testing - API".
And base on what I've read. SOUPUI is the best tool to use for this type of testing.
And I have some question/concern regarding to this Web Service Testing - API.

1. I'm totally new with this type of testing. How I will be able to use this SOAPUI tool to trigger a
Request ? and to verify its Response ?
2. and what type of project should I use for this type of verification (Request / Response Messages) ?
SOAP & WSDL (Project) OR REST (Project)
3. Can I have some sample on how to test a "Request / Response Messages".

Thanks!

Regard,
Eeyore

4 Replies

  • SmartBear_Suppo's avatar
    SmartBear_Suppo
    SmartBear Alumni (Retired)
    Please see the answers to the questions below

    1. I'm totally new with this type of testing. How I will be able to use this SOAPUI tool to trigger a
    Request ? and to verify its Response ?
    -If you are testing a Soap Service you will have to feed SoapUI the WSDL of the service will render the Soap messages and you could send request and receive the response with a simple click of a button

    Please visit this link for more information: http://www.soapui.org/Getting-Started/y ... oject.html

    If it is a REST service you can feed SoapUI a WADL or directly feed it a URI and SoapUI will automatically render the Request where you can add the parameters that you would like to send in and receive the response and this is also done with a simple click of a button.

    Please visit this link for more information: http://www.soapui.org/REST-Testing/getting-started.html

    2. and what type of project should I use for this type of verification (Request / Response Messages) ?
    SOAP & WSDL (Project) OR REST (Project)
    -This depends on your API. If it is a REST api you can use a WADL or the URI. If it is a SOAP api you will have to use a WSDL

    3. Can I have some sample on how to test a "Request / Response Messages".
    -One of the Samples we use is the Google maps API and it is a rest service. Please feed the URI below to SoapUI when you create a REST project and test SoapUI by sending different parameters (directions) and see what the response brings back:

    http://maps.googleapis.com/maps/api/geo ... nsor=false

    Regards,
    Temil
  • eeyoreeco's avatar
    eeyoreeco
    Occasional Contributor
    SmartBear Support wrote:
    Please see the answers to the questions below

    1. I'm totally new with this type of testing. How I will be able to use this SOAPUI tool to trigger a
    Request ? and to verify its Response ?
    -If you are testing a Soap Service you will have to feed SoapUI the WSDL of the service will render the Soap messages and you could send request and receive the response with a simple click of a button

    Please visit this link for more information: http://www.soapui.org/Getting-Started/y ... oject.html

    If it is a REST service you can feed SoapUI a WADL or directly feed it a URI and SoapUI will automatically render the Request where you can add the parameters that you would like to send in and receive the response and this is also done with a simple click of a button.

    Please visit this link for more information: http://www.soapui.org/REST-Testing/getting-started.html

    2. and what type of project should I use for this type of verification (Request / Response Messages) ?
    SOAP & WSDL (Project) OR REST (Project)
    -This depends on your API. If it is a REST api you can use a WADL or the URI. If it is a SOAP api you will have to use a WSDL

    3. Can I have some sample on how to test a "Request / Response Messages".
    -One of the Samples we use is the Google maps API and it is a rest service. Please feed the URI below to SoapUI when you create a REST project and test SoapUI by sending different parameters (directions) and see what the response brings back:

    http://maps.googleapis.com/maps/api/geo ... nsor=false

    Regards,
    Temil


    Thanks for this VERY HELPFUL TIP . Have a nice day!
  • Hi,


    I am newbie to this world of REST API and SOAP UI.
    Our team has decided with use Soap UI for integration test.

    We have all our API calls defined in Apiary and would like to use this as input to create the tests.

    1. Is this possible? Can I provide this apiary link as the URI link to extract all the API calls out of it?
    OR have i got it totally wrong

    2. If not, how can I achieve this I would not like to create test cases manually for each API call as they keep growing rapidly

    3. Is there step by step guide to follow how to create rest project and start testing api calls?
    I did find this(http://www.soapui.org/REST-Testing/getting-started.html) which was not very helpful as it does not mention what is URI etc and it is difficult to follow where to place what to.

    Looking forward for your response..

    Thanks