Java Mailing List Archive

http://www.gg3721.com/

Home » user.groovy »

[groovy-user] Updating WSDL definitions from a groovy script

Amila Rathnayake

2008-08-29


Author LoginPost Reply
Hello All,
 
I want to automate the update of wsdl definition action of a SoapUI project. My project has got only one web service and one wsdl referred from it.
 
When ever the wsdl has got changed I have to update the definition by right clicking on the mock service and selecting update interface. As I don't change the name of the wsdl and the location of it, I should be able to automatically update the definitions using some way. May be a groovy script.
 
In the SoapUI web site it mentioned as it updates the definitions automatically when we reload SoapUI. I tried that after placing the modified wsdl in the same location. But it didn't update the project xml. Then I wanted to try using groovy to update the definitions automatically without clicking mouse.
 
I am not sure what method in the API to use for this. SoapUI API documention is not descriptive enough to understand that. I tried using the soapui.impl.wsdl.actions.iface.UpdateInterfaceAction
 
However when my groovy script ran it opens me the dialog box to do the selections and click the buttons to do the update. Has anyone done a similar thing before to update the WSDL definitions automatically. Any help would be appreciated.
 
Thanks,
amila.
©2008 gg3721.com - Jax Systems, LLC, U.S.A.