Forum Discussion

gili's avatar
gili
New Contributor
16 years ago

Declaring xml namespace on a project level

Hi,

I am using SoapUI (not pro) for RESTful webservices testing. We are trying to find a way to declare a single general namespace for all our assertions. We understand there might be a possibility to do this through global properties. Can someone please guide me on this issue?

Thank you in advance,
Gili

1 Reply

  • Hello,

    You could use Property Expansions for this. To do so, create a global property with your namespace declaration, for example:


    Name Value
    ---------------------------------------------------------
    namespace declare namespace tut='http:/tutorial.webservices.helloservice/';


    Then in each assertion add the property expansion, for example:


    ${namespace}
    //tut:sayHelloResponse[1]/greeting[1]/text()


    Regards,
    Dain
    eviware.com