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
3a561a95
Commit
3a561a95
authored
Jul 04, 2019
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
5b906d14
Pipeline
#142
failed with stages
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
61 deletions
+0
-61
TestService.java
src/main/java/com/egolm/sso/service/TestService.java
+0
-16
TestServiceImpl.java
...main/java/com/egolm/sso/service/impl/TestServiceImpl.java
+0
-45
No files found.
src/main/java/com/egolm/sso/service/TestService.java
deleted
100644 → 0
View file @
5b906d14
package
com
.
egolm
.
sso
.
service
;
import
javax.jws.WebMethod
;
import
javax.jws.WebParam
;
import
javax.jws.WebService
;
@WebService
(
targetNamespace
=
"http://service.sso.egolm.com"
)
// 服务接口全路径, 指定做SEI(Service EndPoint Interface)服务端点接口
public
interface
TestService
{
@WebMethod
// 标注该方法为webservice暴露的方法,用于向外公布,它修饰的方法是webservice方法,去掉也没影响的,类似一个注释信息。
public
String
getUser
(
@WebParam
(
name
=
"userId"
)
String
userId
);
@WebMethod
public
String
getUserName
(
@WebParam
(
name
=
"userId"
)
String
userId
);
}
src/main/java/com/egolm/sso/service/impl/TestServiceImpl.java
deleted
100644 → 0
View file @
5b906d14
package
com
.
egolm
.
sso
.
service
.
impl
;
import
java.util.HashMap
;
import
java.util.Map
;
import
javax.jws.WebMethod
;
import
javax.jws.WebService
;
import
org.springframework.stereotype.Component
;
import
com.egolm.sso.service.TestService
;
@Component
@WebService
(
serviceName
=
"TestService"
,
// 对外发布的服务名
targetNamespace
=
"http://service.sso.egolm.com"
,
// 指定你想要的名称空间,通常使用使用包名反转
endpointInterface
=
"com.egolm.sso.service.TestService"
)
// 服务接口全路径, 指定做SEI(Service EndPoint Interface)服务端点接口
public
class
TestServiceImpl
implements
TestService
{
private
Map
<
String
,
Map
<
String
,
String
>>
userMap
=
new
HashMap
<
String
,
Map
<
String
,
String
>>();
public
TestServiceImpl
()
{
Map
<
String
,
String
>
u1
=
new
HashMap
<
String
,
String
>();
u1
.
put
(
"userId"
,
"111"
);
u1
.
put
(
"userName"
,
"Quxl"
);
userMap
.
put
(
"111"
,
u1
);
Map
<
String
,
String
>
u2
=
new
HashMap
<
String
,
String
>();
u1
.
put
(
"userId"
,
"222"
);
u1
.
put
(
"userName"
,
"Test"
);
userMap
.
put
(
"222"
,
u2
);
}
@Override
@WebMethod
public
String
getUserName
(
String
userId
)
{
return
"userId为:"
+
userId
;
}
@Override
@WebMethod
public
String
getUser
(
String
userId
)
{
return
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