Ask a Question

access WSDL content via Groovy

Claudia
Occasional Visitor

access WSDL content via Groovy

Hello everyone!

 

I want to do via script what it is possible to do manually.

Manually you just click on the interface, choose "Show Interface Viewer", select "WSDL Content" and you can copy and paste the WSDL in a file.

Well... I don't know how to get the WSDL content via Groovy. Maybe it's something like accessing to some context properties or similar, but till now I didn't get a solution.

 

Any suggestion is wellcome! Thank you all!

2 REPLIES 2
nmrao
Community Hero

Re: access WSDL content via Groovy

Sorry the question is not clear. Would you mind clarifying more such as your use case and the issue being faced?


Regards,
Rao.
JKambli
Staff

Re: access WSDL content via Groovy

Get the project object,

https://www.soapui.org/apidocs/pro/com/eviware/soapui/impl/wsdl/WsdlProjectPro.html

 

Once you have the project object add this,

project.getInterfaceAt(0).getDefinitionContext().export("C:\\WSDL")

 

 



Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
cancel
Showing results for 
Search instead for 
Did you mean: