Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
S
sap-service
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
曲欣亮
sap-service
Commits
5996f846
Commit
5996f846
authored
Aug 15, 2019
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
cb5b6e7b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
10 deletions
+2
-10
.gitignore
.gitignore
+1
-0
SAPServiceFactory.java
src/main/java/com/egolm/sso/clients/SAPServiceFactory.java
+1
-10
No files found.
.gitignore
View file @
5996f846
...
@@ -9,3 +9,4 @@
...
@@ -9,3 +9,4 @@
/XML_HISTORY/
/XML_HISTORY/
/xml/
/xml/
/SSL/
/SSL/
/WSDL/
src/main/java/com/egolm/sso/clients/SAPServiceFactory.java
View file @
5996f846
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment