Forum Discussion

DGramß's avatar
DGramß
Occasional Contributor
16 years ago

Need to change a single digit in about 300 scripts!

Isn't life wonderful?

This morning I was given the task of repairing about 300 scripts which have the following problem:

the soap requests all contain the following in the first line

xmlns="http://sucheProduktUeberAngebot_v02

it needs to be changed to

xmlns="http://sucheProduktUeberAngebot_v03

The requests  are all in the same soapui project.


I have perl installed on my windows pc, but I'm not a perl programmer. On the other hand, I am sure my brain will melt if I do all 300 by hand....

3 Replies

  • SmartBear_Suppo's avatar
    SmartBear_Suppo
    SmartBear Alumni (Retired)
    Hi DGramß,


    You can make your life easier by using some of the text editors or similar tools that are freely available online. Two tools come to mind - UltraEdit and PowerGrep.

    With proper tools you can do wonders.
    Let us know if you ended up enjoying that seemingly tedious task.


    Cheers!
    /Nenad Nikolic a.k.a. Shonzilla
  • Hi DGramß,

    Excuse me for butting in...  Smiley

    But shouldn't that change have been caused by an update to the WSDL?

    If the namespace is changed the WSDL should be changed as well.

    So this would mean that the "update definition" functionality should work well.

    Look here:

    http://www.soapui.org/userguide/interfaces/index.html

    Remember to check the two bottom check boxes in the Update Defentition Popup. Actually "Update TestRequests" is the only one necessary, but "Open Request List" will show you how many requests has been changed.

    If you have to do this without having a WSDL change...

    That's kind of an error isn't it? The namespace should be reflected in the WSDL.

    Best Regards
    Niclas
  • DGramß's avatar
    DGramß
    Occasional Contributor
    Thanks for the replies guys. This newbie did not realise that all the requests are stored in a single xml project file, so it was possible to do the changes to a single file for each of the affected projects using a standard text editor.

    So I did not have to follow the instruction I was given to change each request individually by hand from the xml test frontend

    What nreimertz is saying is basically true, but the server-side setup is beyond my control and not standard.

    And like Shakespeare said, all's well that ends well.