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
0b5f4281
Commit
0b5f4281
authored
Jul 19, 2019
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
09225d94
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
6 deletions
+5
-6
WsConfig.java
src/main/java/com/egolm/sso/config/WsConfig.java
+1
-1
XMLUtil.java
src/main/java/com/egolm/sso/util/XMLUtil.java
+3
-4
MaterialMasterServiceTest.java
src/test/java/test/MaterialMasterServiceTest.java
+1
-1
No files found.
src/main/java/com/egolm/sso/config/WsConfig.java
View file @
0b5f4281
src/main/java/com/egolm/sso/util/XMLUtil.java
View file @
0b5f4281
...
@@ -15,11 +15,11 @@ public class XMLUtil {
...
@@ -15,11 +15,11 @@ public class XMLUtil {
public
static
<
T
>
T
toBean
(
String
XML
,
Class
<
T
>
requireType
)
{
public
static
<
T
>
T
toBean
(
String
XML
,
Class
<
T
>
requireType
)
{
XStream
xStream
=
new
XStream
();
XStream
xStream
=
new
XStream
();
XStream
.
setupDefaultSecurity
(
xStream
);
XStream
.
setupDefaultSecurity
(
xStream
);
xStream
.
allowTypesByWildcard
(
new
String
[]
{
"com.egolm.sso.bean.**"
});
xStream
.
allowTypesByWildcard
(
new
String
[]
{
"com.egolm.sso.bean.**"
});
xStream
.
autodetectAnnotations
(
true
);
xStream
.
autodetectAnnotations
(
true
);
xStream
.
processAnnotations
(
requireType
);
xStream
.
processAnnotations
(
requireType
);
@SuppressWarnings
(
"unchecked"
)
@SuppressWarnings
(
"unchecked"
)
T
bean
=
(
T
)
xStream
.
fromXML
(
XML
);
T
bean
=
(
T
)
xStream
.
fromXML
(
XML
);
return
bean
;
return
bean
;
}
}
...
@@ -36,5 +36,4 @@ public class XMLUtil {
...
@@ -36,5 +36,4 @@ public class XMLUtil {
}
}
}
}
}
}
src/test/java/test/MaterialMasterServiceTest.java
View file @
0b5f4281
...
@@ -9,7 +9,7 @@ import com.egolm.sso.util.XMLUtil;
...
@@ -9,7 +9,7 @@ import com.egolm.sso.util.XMLUtil;
public
class
MaterialMasterServiceTest
{
public
class
MaterialMasterServiceTest
{
public
static
void
main
(
String
[]
args
)
throws
Exception
{
public
static
void
main
(
String
[]
args
)
throws
Exception
{
String
wsdlLocation
=
"http://localhost:8080/
sso
/services/material_master?wsdl"
;
String
wsdlLocation
=
"http://localhost:8080/
api
/services/material_master?wsdl"
;
String
namespace
=
"http://material_master.sso.egolm.com"
;
String
namespace
=
"http://material_master.sso.egolm.com"
;
String
serviceName
=
"MaterialMasterService"
;
String
serviceName
=
"MaterialMasterService"
;
MaterialMasterService
service
=
ServiceFactory
.
create
(
wsdlLocation
,
namespace
,
serviceName
,
MaterialMasterService
.
class
);
MaterialMasterService
service
=
ServiceFactory
.
create
(
wsdlLocation
,
namespace
,
serviceName
,
MaterialMasterService
.
class
);
...
...
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