[
https://jira.jboss.org/browse/JBESB-2265?page=com.atlassian.jira.plugin.s...
]
Peter Nordquist commented on JBESB-2265:
----------------------------------------
This is still an issue, A WSDL protected by Basic Auth can be retrieved successfully but
the initialization of it.javalinux.wise.core.client.WSDynamicClient does not propagate the
username and password at all. This is broken in JBoss ESB 4.8 and 4.9.
Excerpt from it.javalinux.wise.core.client.WSDynamicClient
public void init(String wsdlURL, String symbolicName, String userName, String password,
String tmpDir) throws WiseConnectionException {
try {
final String targetPackage =
wiseProperties.getProperty("wise.targetPackage", WISE_TARGET_PACKAGE);
File outputDir = new File(tmpDir + "/" + symbolicName + "/");
File sourceDir = new File(tmpDir + "/src/" + symbolicName +
"/");
boolean reimportObject =
Boolean.parseBoolean(wiseProperties.getProperty("wise.forceImportObject"));
if (!outputDir.exists()) {
outputDir.mkdir();
reimportObject = true;
}
if (reimportObject) {
importObjectFromWsdl(wsdlURL, outputDir, sourceDir, targetPackage);
}
String[] classNames = getClassNames(outputDir, targetPackage);
// we need a custom classloader pointing the temp dir
// in order to load the generated classes on the fly
this.setClassLoader(new URLClassLoader(new URL[] { outputDir.toURL(), },
Thread.currentThread().getContextClassLoader()));
ClassLoader oldLoader = Thread.currentThread().getContextClassLoader();
try {
Thread.currentThread().setContextClassLoader(this.getClassLoader());
JavaUtils.loadJavaType("com.sun.xml.ws.spi.ProviderImpl",
this.getClassLoader());
for (int i = 0; i < classNames.length; i++) {
Class clazz = JavaUtils.loadJavaType(targetPackage + "." + classNames[i],
this.getClassLoader());
this.setServiceClass(clazz);
// look for the service...
if (Service.class.isAssignableFrom(clazz)) {
break;
}
}
this.setService(this.getServiceClass().newInstance());
} finally {
// restore the original classloader
Thread.currentThread().setContextClassLoader(oldLoader);
}
} catch (Exception e) {
WiseRuntimeException.rethrow("Error occurred while consuming wsdl: " +
wsdlURL, e);
}
}
Wise action don't work with BASIC auth
--------------------------------------
Key: JBESB-2265
URL:
https://jira.jboss.org/browse/JBESB-2265
Project: JBoss ESB
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: Web Services
Affects Versions: 4.4
Reporter: Stefano Maestri
Assignee: Stefano Maestri
Fix For: 4.6
Attachments: jboss-esb.xml, soap.esb.tgz, Wise0.xml
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira