Forum Discussion

SmartBear_Suppo's avatar
SmartBear_Suppo
SmartBear Alumni (Retired)
14 years ago

Setting up and using REST endpoint in SOAPUI

Hello,

The problem here is that your REST Service has multiple Resources with the same path (/api.xro/2.0/Contacts/). This is causing problems in soapUI, and it is a bug that it is being allowed. Thanks for brining this to our attention, it will be fixed in the next major version of soapUI. As a workaround, avoid creating more than one Resource for a given path. In your project, this would mean having a single Resource with the full path /api.xro/2.0/Contacts/, and letting that Resource have multiple Methods (one Resource can have several Methods of the same HTTP verb type).

Regarding the missing text area, it should be there in the Request tab. The panel might be hidden. If so, it can be shown by clicking on the up arrow near the bottom of the panel (see the attached screenshot).

Regards,
Dain
eviware.com

1 Reply

  • SmartBear_Suppo's avatar
    SmartBear_Suppo
    SmartBear Alumni (Retired)
    Hello again,

    This setup seems perfectly valid, several Methods can be defined for a single Resource, using different or the same HTTP verbs. I think a more "natural" mapping would be to have three sub-resources though, Contacts, Invoices and Accounts (as you had before) and then just having multiple Methods below them. This is a matter of taste though, if you find it easier to work with a single Resource then this setup is fine.

    Regards,
    Dain
    eviware.com