Basic Auth check in groovy for SoapUI.
When using a SOAP Mock in SoapUI there is no standard way to check the authentication provided by the caller. This script can be added to your mock in the "OnRequest Script" section and allows you to check for the correct credentials.
If you test this from SoapUI as well then you need to set the Authentication Type to "preemptive" where you specify the credentials for the call.