Commit 5996f846 authored by Quxl's avatar Quxl

x

parent cb5b6e7b
......@@ -9,3 +9,4 @@
/XML_HISTORY/
/xml/
/SSL/
/WSDL/
......@@ -28,7 +28,6 @@ import org.apache.cxf.ws.security.wss4j.WSS4JOutInterceptor;
import org.apache.ws.security.handler.WSHandlerConstants;
import org.apache.wss4j.common.ext.WSPasswordCallback;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.system.ApplicationHome;
import org.springframework.stereotype.Component;
@Component
......@@ -71,16 +70,8 @@ public class SAPServiceFactory {
return service;
}
private static String absolutePath = null;
public URL getAbsoluteURL(String WSDLPATH) throws MalformedURLException {
if (absolutePath == null) {
ApplicationHome home = new ApplicationHome(getClass());
File jarFile = home.getSource();
File folder = jarFile.getParentFile();
absolutePath = folder.getAbsolutePath();
}
return new URL("file:///" + absolutePath + "/" + WSDLPATH);
return new URL("file:////" + new File(WSDLPATH).getAbsolutePath());
}
private WSS4JOutInterceptor wss4JOutInterceptor = null;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment