The following is an example of SSO in JBoss:
Sso2.war # RoleComponent (Wsdl)
- GetRoles
- GetTheRoleFunctions
- GetTheRoleFunctionsByCode
- GetTheSystemRoles
- GetUserBySystemNameAndRoleId
- IsFunctionInRole
Sso2.war # UserComponent (Wsdl)
- Login
- LoginUser
- GetFilterNodes
- GetFunctions
- GetTheUserFunctions
- GetTheUserNodes
- GetTheUserRoles
- GetTheUserRoles2
- GetUserByID
- GetUsers
- IsInFunction
- IsInFunctionByCode
- IsInRole
- IsInRoleByCode
- GetUsers
Sso. war # RoleComponent (Wsdl)
- GetRoles
- GetTheRoleFunctions
- GetTheRoleFunctionsByCode
- GetTheSystemRoles
- GetUserBySystemNameAndRoleId
It is not hard to see that different classes and webmethods are provided in a Service.
However, if you register two in ASP. NET Web services, the following error occurs:
Parser ErrorDescription:An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
Parser Error Message:There can be only one webservice directive.
Source Error:
Line 1: <%@ WebService Language="C#" CodeBehind="UserService.asmx.cs" Class="Inventory.UserService" %> Line 2: <%@ WebService Language="C#" CodeBehind="UserService.asmx.cs" Class="Inventory.GroupService" %> |
Source File:/UserService. asmxLine:2
Therefore, if you want to remove the Java Web Service in a similar way and prevent the Service client program from modifying too much code, you can use Port to separate a Web Service:
<Service name="SSOService">
<Port binding="Tns: NodeServiceBinding"Name="NodeServicePort">
<Soap: addressLocation="Http: // win2003/sso2/service/NodeService