Forum Discussion

ALabate's avatar
ALabate
New Contributor
15 years ago

Change the wsdl address of a project

Hello,

I'm new to soapui, and would like to know if it's possible to easily change the wsdl address of an existing project without losing all the request parameters. That's the case when I would like to switch from a local to a remote server with identical contracts.

Thanks.

4 Replies

  • I've looked at Nick's page, but it doesnt seem to answer the question - which I think is the same question I have, so I dont want to start another thread.

    Nick's blog describes what the options do when you are trying to refresh a WSDL which has changed - i.e. you've deployed a new copy of the service. Good stuff.

    But my problem is that I want to point my soapUI project at a new deployment of the exact same WSDLs. Same test suites, same test cases, same contract, new server.


    maybe I should just do a search-and-replace in my project file ... I'm a bit nervous about editing the project file with a text editor, though. ....

    Is there a way to do this in soapUI?
  • Beno_Iskratel's avatar
    Beno_Iskratel
    Frequent Contributor
    click on wsdl and change property "Definition URL" in low left corner?

    regards,
    beno
  • Thanks Beno!

    Looks like that is the first part of the answer to my problem - I believe that tells soapUI where to get the definition.
    Second part of the answer is to change the service endpoint as well.
    Final part is to do the changes using a property, rather than hard coding into each service.

    I have not got my second server up yet, so can't verify against it, but I believe I have the overall solution . At least, the following works if I set up the properties to point at my current server, and it breaks appropriately if I point to a non-existent server.

    1) Make Project custom properties
    ServiceEndpoint = 192.168.1.101:7280
    MyVersion = v1_0

    2) change service endpoint for services - example:
    old service endpoint url :
    http://192.168.1.101:7280/MyWebservice/v1_0/services/MyService

    new service endpoint:
    http://${#Project#ServiceEndpoint}/MyWebservice/${#Project#MyVersion}/services/MyService

    3) make the same change to the definition url of the services (the properties in the lower left pane).

    (see http://www.soapui.org/Functional-Testin ... rties.html centralized endpoint example for step 2)
    Thanks to Beno, dmllc and SiKing !
    (viewtopic.php?f=5&t=6493
    "running same tests on a different server/environment")

    -tom