kumartin
14 years agoNew Contributor
Programmically setting the basic authentication credentials
I'm using soapUI version 4.0.1 apis to import a WSDL in a WSDL Wizard that I developed and was wondering if it's possible to set the basic authentication credentials username and password similiar to how the proxy username and password on a WsdlProject? I have a need for this since the some WSDL can only be reached through https.
WsdlProject project = new WsdlProject();
project.getSettings().setString(com.eviware.soapui.settings.ProxySettings.USERNAME, proxyUsername);
project.getSettings().setString(com.eviware.soapui.settings.ProxySettings.PASSWORD, proxyPassword);
I don't see anything is the com.eviware.soapui.settings classes that will allow me to do this? Am I missing something?
When importing this WSDL into the actual SoapUI, it pops up a seperate window to specify the basic authentication credentials username and password. Could I somehow get the SoapUI basic authentication credentials window to pop up in my Wizard UI to allow the user to enter the credentials?
Thanks
WsdlProject project = new WsdlProject();
project.getSettings().setString(com.eviware.soapui.settings.ProxySettings.USERNAME, proxyUsername);
project.getSettings().setString(com.eviware.soapui.settings.ProxySettings.PASSWORD, proxyPassword);
I don't see anything is the com.eviware.soapui.settings classes that will allow me to do this? Am I missing something?
When importing this WSDL into the actual SoapUI, it pops up a seperate window to specify the basic authentication credentials username and password. Could I somehow get the SoapUI basic authentication credentials window to pop up in my Wizard UI to allow the user to enter the credentials?
Thanks