Forum Discussion
Hello Rupert,
Thank you for the response.
In fact we already managed to create/sign a raw rest request, but that is obviously not really scaleable. When you intend to do richer stuff you will quickly need to aws cli or aws sdk. Since it does support javascript and there is in fact an aws sdk for javascript it should be possible to use it. I just have no idea how to add those libraries to soapui?
Please note i'm a soapui-newbie... soon to become an expert ;-)
Paul
Hoping that you aware how to change the script language in soapui from Groovy to Javascript.
By the way, I know nothing in javascript and not used. You may give try, and update here if possible.
- rupert_anderson9 years agoValued Contributor
Hi,
Ok, that makes sense, the SDK is obviously richer and not worth reengineering.
In terms of how to add the libraries, nmrao has explained where - if you need any background on adding (even creating SoapUI custom libraries) then maybe this will help with background:
http://rupertanderson.com/blog/1-how-to-develop-add-and-use-a-custom-groovy-library-in-soapui/
I have always been quite interested in SoapUI's JavaScript capabilities, but have only messed around with it a bit for sake of understanding - as a word of caution, I noticed a few glitches issues and Smartbear say that it isn't as well integrated as Groovy into SoapUI, I think a Groovy approach may be safer. I think I did get the Java SDK at least partly working with Groovy and adding its dependencies, but I had to get a little hacky with the classpath, which wasn't really appropriate for inclusion in the book!
Let us know how you get on,
Thanks,
Rup
- nmrao9 years agoChampion Level 3rupert_anderson, "Java SDK" - do you mean AWS' java sdk? Then it would be easy to call from Groovy, right?
Also happened to find below thread where groovy can call "Javascript" in case javascript suits better.
http://stackoverflow.com/questions/2704415/call-javascript-function-from-java-groovy-class- rupert_anderson9 years agoValued Contributor
Hi nmrao,
Yeah, sorry I meant Java AWS SDK - this one:
https://aws.amazon.com/sdk-for-java/
At the time I didn't find it easy to integrate, due to it requiring newer versions of some of the same dependencies that soapui uses in its lib folder - adding the newer versions in the /ext folder lead to classpath issues. However, I expect its possible to succeed if you alter / override some of the SoapUI libs, and Paul may well manage it, its just that I didn't have a lot of time and couldn't really suggest recipes in that cookbook that went too far off the beaten track.
Thanks,
Rup
Related Content
- 10 years ago
- 4 years ago
Recent Discussions
- 15 years ago