s****y 发帖数: 503 | 1 前台和Java后台之间用Restful Service通讯,Java端需要访问有安全认证(Username/
Password Authentication)的Web Service,请求和响应的xml都蛮复杂的,xml还要和
json进行转换。因为我的App Server是支持JavaEE 7的WebLogic,J2EE 7里的Jax-rs 2
.0和Jsonp对restful支持蛮不错的,那访问Web Service应该怎么实现呢?尤其是
Authentication怎么做比较好? |
g*****g 发帖数: 34805 | 2 If you are talking to backend using SOAP, WS clients like CXF should support
it. You can then using libraries like Jackson and convert the POJO to JSON.
Username/
2
【在 s****y 的大作中提到】 : 前台和Java后台之间用Restful Service通讯,Java端需要访问有安全认证(Username/ : Password Authentication)的Web Service,请求和响应的xml都蛮复杂的,xml还要和 : json进行转换。因为我的App Server是支持JavaEE 7的WebLogic,J2EE 7里的Jax-rs 2 : .0和Jsonp对restful支持蛮不错的,那访问Web Service应该怎么实现呢?尤其是 : Authentication怎么做比较好?
|
s****y 发帖数: 503 | 3
support
JSON.
能用jax-ws实现客户端访问吗?user/password验证也可以吗?
【在 g*****g 的大作中提到】 : If you are talking to backend using SOAP, WS clients like CXF should support : it. You can then using libraries like Jackson and convert the POJO to JSON. : : Username/ : 2
|
a9 发帖数: 21638 | 4 user/password最好用oauth之类的发个token。
最简单的就是用digest认证。
不太推荐用session的方式。
【在 s****y 的大作中提到】 : : support : JSON. : 能用jax-ws实现客户端访问吗?user/password验证也可以吗?
|
g*****g 发帖数: 34805 | 5 Sure, basic authentication with JAX-WS is very common. All SOAP clients
should have it built-in.
【在 s****y 的大作中提到】 : : support : JSON. : 能用jax-ws实现客户端访问吗?user/password验证也可以吗?
|
w**z 发帖数: 8232 | 6 user ,password 从httprequest 里拿。jaxrs 里有API,自己找一下。我刚做了一个。
【在 s****y 的大作中提到】 : : support : JSON. : 能用jax-ws实现客户端访问吗?user/password验证也可以吗?
|
c*********e 发帖数: 16335 | 7 yes, basic authentication is good enough.
【在 g*****g 的大作中提到】 : Sure, basic authentication with JAX-WS is very common. All SOAP clients : should have it built-in.
|