×

Loading...

访问有安全认证的Web Service,再转换成Json,怎么实现比较好?

前台和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怎么做比较好?
Report