cancel
Showing results for 
Search instead for 
Did you mean: 

Need to change a single digit in about 300 scripts!

Highlighted
Occasional Contributor

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 3
Highlighted

Re: Need to change a single digit in about 300 scripts!

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


 Join the virtual SmartBear Connect user conference on April 27-28! Get your free virtual ticket today!
Highlighted

Re: Need to change a single digit in about 300 scripts!

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
Product Guy for Ready! API, SoapUI and all things API
Highlighted
Occasional Contributor

Re: Need to change a single digit in about 300 scripts!

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.