OSB Message-Level Custom Security
来源:互联网 发布:影舞者冰川网络vr 编辑:程序博客网 时间:2024/05/16 08:08
本文描述OSB Message-Level Custom Security的实现过程(demo)
1、创建test.wsdl文件,其中包括传递进来用于验证身份的用户名和密码:user,pwd. 如下图所示:
2、创建两个proxyservices:psSyncData.proxy和psStar.proxy
其中psSyncData.proxy主要用于处理业务逻辑和验证身份,psStar.proxy则是为psSyncData.proxy提供验证信息的信息提供者
对于psStar.proxy的设置如下:
1)在Message Flow中设置Routing,Routing的service指向psSyncData.proxy;
2)在Request Action中设置两个insert,向header变量中插入两个参数user和pwd,这俩参数会在psSyncData.proxy的security中被引用;
psSyncData.proxy需要做设置如下:
1)Service Type选择:Any Type SOAP Service
2)在security tab中,选择Custom User Name and Password并定义User Name/Password XPath,如下图:
3)在Mssage Flow中,调用业务处理所用的businessServices,并将Soap的header替换还原成正确的,否则可能会引起Internal Server Error
以上传入的用户名和密码是用weblogic进行验证的,因此用户名和密码需要预先在weblogic的安全域里设置好。
以上为Message -Level Custom Security的简单设置步骤
常见报错:
soapenv:Server
BEA-386101: Missing authentication token
原因为:在ProxyServices中设置的user和password与soap header中设置token不一致。
如在soap header中设置如下:
- OSB Message-Level Custom Security
- OSB Message-Level Custom Security
- OSB Message-Level Custom Security
- WCF Transport-Level Security vs Message-Level Security
- Web Services Security with Apache Rampart – Part 2 (Message-Level Security)
- OSB
- spring security custom loginPage + freemarker
- Security Level and Firewall
- Password security level authentication
- SELinux - Multi-Level Security (MLS)
- Spring Security Custom Login Form Example
- Spring Security Custom Login Form Annotation Example
- Windows Phone 7 Custom Message Box
- Custom level button disabled in Internet Options
- Exchange Server 2003 Message Security Guide
- Spring Security 中Message乱码问题
- ROW LEVEL SECURITY(RLS) 性能问题
- 基本配置及安全级别security-level
- 【Java学习笔记】break continue return
- 在android外包行业中,怎样使项目开发更快,更易读
- 序列比对——ClustalX与Muscle
- spring cloud eureka zuul ribbon hystrix feign config 示例
- 331. Verify Preorder Serialization of a Binary Tree
- OSB Message-Level Custom Security
- 用训练好的模型(caffemodel)来分类
- hello world
- 虚拟机ebsDEMO更改IP地址
- 阅读笔记:从happens-before原则说起
- 配置EPEL的yum源
- 反射的简单应用
- 用Ultraiso安装镜像文件
- OpenCV与c语言图像融合