Commit 5996f846 authored by Quxl's avatar Quxl

x

parent cb5b6e7b
...@@ -9,3 +9,4 @@ ...@@ -9,3 +9,4 @@
/XML_HISTORY/ /XML_HISTORY/
/xml/ /xml/
/SSL/ /SSL/
/WSDL/
...@@ -28,7 +28,6 @@ import org.apache.cxf.ws.security.wss4j.WSS4JOutInterceptor; ...@@ -28,7 +28,6 @@ import org.apache.cxf.ws.security.wss4j.WSS4JOutInterceptor;
import org.apache.ws.security.handler.WSHandlerConstants; import org.apache.ws.security.handler.WSHandlerConstants;
import org.apache.wss4j.common.ext.WSPasswordCallback; import org.apache.wss4j.common.ext.WSPasswordCallback;
import org.springframework.beans.factory.annotation.Value; import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.system.ApplicationHome;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
@Component @Component
...@@ -71,16 +70,8 @@ public class SAPServiceFactory { ...@@ -71,16 +70,8 @@ public class SAPServiceFactory {
return service; return service;
} }
private static String absolutePath = null;
public URL getAbsoluteURL(String WSDLPATH) throws MalformedURLException { public URL getAbsoluteURL(String WSDLPATH) throws MalformedURLException {
if (absolutePath == null) { return new URL("file:////" + new File(WSDLPATH).getAbsolutePath());
ApplicationHome home = new ApplicationHome(getClass());
File jarFile = home.getSource();
File folder = jarFile.getParentFile();
absolutePath = folder.getAbsolutePath();
}
return new URL("file:///" + absolutePath + "/" + WSDLPATH);
} }
private WSS4JOutInterceptor wss4JOutInterceptor = null; 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