Forum Discussion

sergiu's avatar
sergiu
New Contributor
12 years ago

Cloning webservice definition on MAC

Hi!
I cloned a REST web service definition in SoapUI 5 on MAC.
When I call the web service from a test case, it returns the correct results except for the namespace.
The namespace is the same as the web service I've cloned.
This works correctly in SoapUI 5 on Windows.

Any ideas how can I fix this issue?

4 Replies

  • SiKing's avatar
    SiKing
    Community Expert
    The namespace for REST responses is just made up, unless your service actually replies in XML. If you are doing any kind of assertions, you can use the wildcard * for "any namespace".
  • sergiu's avatar
    sergiu
    New Contributor
    Tanks for the reply. I've already used the wildcard as namespace in my asertions because i run the tests against multiple endpoints. But I don't know why I'm getting in the response the xmlns from the webservice i've cloned and not the one that i'm using (the modified one) or in the assertions the correct namespace. Can this issue affect me in some way in the future? I don't want to have to rewrite all the webservices definition I've cloned at that time.
  • SiKing's avatar
    SiKing
    Community Expert
    In the Response window of SoapUI, have a look in the Raw tab. That is what your server is actually sending back.
  • sergiu's avatar
    sergiu
    New Contributor
    It seams that I described the issue wrong. The problem is not when I've cloned the web service definition. It appears when I change the Resurce/Method of an existing REST request teststep to an other webservice.
    The raw response is correct.
    Sorry for the confusion.