Hi,
I haven't had time to do any testing, but have you tried passing the username and password as part of the url e.g. like http://username : password@www.mycorp.com/somewsdl.wsdl ?
As I was looking at the code for the WsdlLoader class and it seems to check whether the URL has an "authority" set and, if so, extracts the username and passord from it...
public abstract class WsdlLoader extends AbstractDefinitionLoader implements WsdlDefinitionLoader {
private String url;
private String firstNewURI;
private String last;
private String username;
private String password;
protected static final Logger log = Logger.getLogger(WsdlLoader.class);
public WsdlLoader(String url) {
this.url = url;
if (!PathUtils.isFilePath(url) && !PathUtils.isRelativePath(url)) {
// check for username/password
try {
URL u = new URL(url);
String authority = u.getAuthority();
if (authority != null) {
int ix1 = authority.indexOf('@');
int ix2 = authority.indexOf(':');
if (ix1 > ix2 && ix2 > 0) {
username = authority.substring(0, ix2);
password = authority.substring(ix2 + 1, ix1);
}
}
Hope this works,
Thanks,
Rupert