查看完整版本: [-- 系统集成 P6 R83 webservice 的问题 开发模式 --]

-> 集成开发 -> 系统集成 P6 R83 webservice 的问题 开发模式 [打印本页] 登录 -> 注册 -> 回复主题 -> 发表主题

clarence 2013-11-01 09:41

系统集成 P6 R83 webservice 的问题 开发模式

最近做P6 R83 的系统集成 webservice 也已经部署成功了,现在在系统内做webservice 接口的时候,会报错,这个是p6 2.1 没有出现过的情况。具体如下:1,如果直接用HTTP cookie for session 就是最简单的结构来请求,会报javax.xml.ws.soap.SOAPFaultException: WSS header is missing from request. Can't do username token authentication. 6m}Ev95  
2,如果用用户名令牌权限认证模式的话 usernameToken profile for authentication 模式会报 javax.xml.ws.soap.SOAPFaultException: Encryption is enabled but there is no encrypted key in the request. <cps2*'  
请大牛们帮帮忙 [attachment=2534]   XO.jl"xu  

zaka 2013-11-01 20:39
登录Primavera Administrator,\Web Services\Security\ 在Authentication中选择开发模式。 0yk]o5a++  
p_RsU`[  
`KZm0d{H  
- 如果你选 usernameToken,就把 Message Protection 中所有的 true 设为 false。(较简单) c[0}AG J  
Q *D;U[  
- 如果选择其他,相应的设置要设置成 true 还有 keystore,具体看web services 的 adminguide 还有 http://docs.oracle.com/javaee/1.4/tutorial/doc/Security6.html (较复杂) is?{MJZ_  
=Qy<GeY  
">\?&0  
保存设置后,记得重启你的web services服务,再运行demo就应该没问题了。 zYH&i6nj  
)W^F2-{  
[attachment=2535] Tf>bX_L?  
 6fkRrD  
>xN .F/[K  
) ;EBz  
Good luck...

xph666 2013-12-09 07:46
受教了   


查看完整版本: [-- 系统集成 P6 R83 webservice 的问题 开发模式 --] [-- top --]



Powered by phpwind v8.7 Code ©2003-2011 phpwind
Gzip disabled