Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
S
sso
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
曲欣亮
sso
Commits
b7dd0a90
Commit
b7dd0a90
authored
Jul 08, 2019
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改命名空间
parent
f211944b
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
15 deletions
+12
-15
MaterialMasterService.java
...ain/java/com/egolm/sso/service/MaterialMasterService.java
+1
-1
PriceListService.java
src/main/java/com/egolm/sso/service/PriceListService.java
+1
-1
MaterialMasterServiceImpl.java
...com/egolm/sso/service/impl/MaterialMasterServiceImpl.java
+1
-1
PriceListServiceImpl.java
...java/com/egolm/sso/service/impl/PriceListServiceImpl.java
+1
-2
MaterialMasterServiceTest.java
src/test/java/test/MaterialMasterServiceTest.java
+8
-10
No files found.
src/main/java/com/egolm/sso/service/MaterialMasterService.java
View file @
b7dd0a90
...
...
@@ -3,7 +3,7 @@ package com.egolm.sso.service;
import
javax.jws.WebMethod
;
import
javax.jws.WebService
;
@WebService
(
targetNamespace
=
"http://
service
.sso.egolm.com"
)
@WebService
(
targetNamespace
=
"http://
material_master
.sso.egolm.com"
)
public
interface
MaterialMasterService
{
@WebMethod
...
...
src/main/java/com/egolm/sso/service/PriceListService.java
View file @
b7dd0a90
...
...
@@ -3,7 +3,7 @@ package com.egolm.sso.service;
import
javax.jws.WebMethod
;
import
javax.jws.WebService
;
@WebService
(
targetNamespace
=
"http://
service
.sso.egolm.com"
)
@WebService
(
targetNamespace
=
"http://
price_list
.sso.egolm.com"
)
public
interface
PriceListService
{
@WebMethod
...
...
src/main/java/com/egolm/sso/service/impl/MaterialMasterServiceImpl.java
View file @
b7dd0a90
...
...
@@ -20,7 +20,7 @@ import com.egolm.sso.util.DateUtil;
import
com.egolm.sso.util.StringUtil
;
@Component
@WebService
(
serviceName
=
"MaterialMasterService"
,
targetNamespace
=
"http://
service
.sso.egolm.com"
,
endpointInterface
=
"com.egolm.sso.service.MaterialMasterService"
)
@WebService
(
serviceName
=
"MaterialMasterService"
,
targetNamespace
=
"http://
material_master
.sso.egolm.com"
,
endpointInterface
=
"com.egolm.sso.service.MaterialMasterService"
)
public
class
MaterialMasterServiceImpl
implements
MaterialMasterService
{
@Autowired
...
...
src/main/java/com/egolm/sso/service/impl/PriceListServiceImpl.java
View file @
b7dd0a90
...
...
@@ -14,14 +14,13 @@ import org.springframework.beans.factory.annotation.Autowired;
import
org.springframework.jdbc.core.JdbcTemplate
;
import
org.springframework.stereotype.Component
;
import
com.alibaba.fastjson.JSON
;
import
com.egolm.sso.service.CommonService
;
import
com.egolm.sso.service.PriceListService
;
import
com.egolm.sso.util.DateUtil
;
import
com.egolm.sso.util.StringUtil
;
@Component
@WebService
(
serviceName
=
"PriceListService"
,
targetNamespace
=
"http://
service
.sso.egolm.com"
,
endpointInterface
=
"com.egolm.sso.service.PriceListService"
)
@WebService
(
serviceName
=
"PriceListService"
,
targetNamespace
=
"http://
price_list
.sso.egolm.com"
,
endpointInterface
=
"com.egolm.sso.service.PriceListService"
)
public
class
PriceListServiceImpl
implements
PriceListService
{
@Autowired
...
...
src/test/java/test/MaterialMasterServiceTest.java
View file @
b7dd0a90
...
...
@@ -25,15 +25,14 @@ public class MaterialMasterServiceTest {
private
static
final
String
username
=
"test"
;
private
static
final
String
password
=
"78258c537d6e4d5fb210a57d05619fb6"
;
public
static
void
main
(
String
[]
args
)
throws
Exception
{
JaxWsDynamicClientFactory
factory
=
JaxWsDynamicClientFactory
.
newInstance
();
ClientImpl
client
=
(
ClientImpl
)
factory
.
createClient
(
"http://localhost:8080/sso/services/material_master?wsdl"
);
Map
<
String
,
Object
>
pro
perties
=
new
HashMap
<
String
,
Object
>();
pro
perties
.
put
(
WSHandlerConstants
.
ACTION
,
WSHandlerConstants
.
USERNAME_TOKEN
);
pro
perties
.
put
(
WSHandlerConstants
.
USER
,
username
);
pro
perties
.
put
(
WSHandlerConstants
.
PASSWORD_TYPE
,
WSConstants
.
PW_DIGEST
);
pro
perties
.
put
(
WSHandlerConstants
.
PW_CALLBACK_REF
,
new
CallbackHandler
()
{
Map
<
String
,
Object
>
pro
=
new
HashMap
<
String
,
Object
>();
pro
.
put
(
WSHandlerConstants
.
ACTION
,
WSHandlerConstants
.
USERNAME_TOKEN
);
pro
.
put
(
WSHandlerConstants
.
USER
,
username
);
pro
.
put
(
WSHandlerConstants
.
PASSWORD_TYPE
,
WSConstants
.
PW_DIGEST
);
pro
.
put
(
WSHandlerConstants
.
PW_CALLBACK_REF
,
new
CallbackHandler
()
{
public
void
handle
(
Callback
[]
callbacks
)
{
for
(
int
i
=
0
;
i
<
callbacks
.
length
;
i
++)
{
WSPasswordCallback
pc
=
(
WSPasswordCallback
)
callbacks
[
i
];
...
...
@@ -42,10 +41,9 @@ public class MaterialMasterServiceTest {
}
});
WSS4JOutInterceptor
interceptor
=
new
WSS4JOutInterceptor
();
interceptor
.
setProperties
(
pro
perties
);
interceptor
.
setProperties
(
pro
);
client
.
setOutInterceptors
(
Arrays
.
asList
(
interceptor
));
String
xml
=
readText
(
"D:/data/sso/001.XML"
);
System
.
out
.
println
(
JSON
.
toJSONString
(
client
.
invoke
(
"execute"
,
xml
)));
client
.
invoke
(
"execute"
,
"XML"
);
}
private
static
String
readText
(
String
path
)
throws
IOException
{
...
...
@@ -62,5 +60,5 @@ public class MaterialMasterServiceTest {
br
.
close
();
}
}
}
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