Forum Discussion
Hi Paul,
As part of my SoapUI Cookbook I did a recipe to call AWS APIs from SoapUI O/S. The approach I took was to create a Groovy version of the AWS Python example (http://docs.aws.amazon.com/general/latest/gr/sigv4-signed-request-examples.html#sig-v4-examples-get-query-string), which shows how to construct a signed request without the AWS SDK. This seemed to work pretty well.
Initially I tried to integrate the AWS SDK into SoapUI, but found that some of its dependencies (jars) caused classpath issues when added to the /ext folder.
Unfortunately I cannot share the Groovy code for copyright reasons, but I can answer questions on it if you think it would be useful.
Regards,
Rupert
- Paul4249 years agoOccasional Contributor
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
- nmrao9 years agoChampion Level 3In general, the external libraries placed under SOAPUI_HOME/bin/ext are loaded by SoapUI.
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
Related Content
- 10 years ago
- 4 years ago
Recent Discussions
- 15 years ago