使用 CXF wsdl2java 存根的 NTLM 身份验证
我有一个受 HTTPS 和 NTLM 身份验证保护的 Web 服务,并且通过暂时禁用身份验证,使用 CXF 的 wsdl2java 工具生成了一组 java 存根。我现在尝试在小程序中使用 Java 存根,该小程序连接到 Web 服务并重新打开身份验证。我的目的是编辑 Java 存根,将来自浏览器会话的身份验证 cookie 包含到 CXF 客户端与 Web 服务的连接中。唯一的问题是存根仅在 Service 类上调用“super()”,并且它自己处理所有连接。有谁知道如何使用从 wsdl2java 生成的 CXF java 存根来连接到受 https 和 NTLM 身份验证保护的 Web 服务?
这是构造函数存根:
public Visual_Service(URL wsdlLocation) {
super(wsdlLocation, SERVICE);
}
I have a web service protected by HTTPS with NTLM authentication and I generated a set of java stubs using CXF's wsdl2java tool by temporarily disabling authentication. I am now attempting to use the Java stubs within an applet that connects to the web service with the authentication turned back on. My intention was to edit the Java stubs to include authentication cookies from the browser's session into CXF client connection to the web service. The only problem is that the stub merely calls "super()" on the Service class and it handles all of the connection on its own. Does anyone know how to use CXF's java stubs generated from wsdl2java to connect to a web service protected by https and NTLM authentication?
here is the constructor stub:
public Visual_Service(URL wsdlLocation) {
super(wsdlLocation, SERVICE);
}
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
并不是说我已经尝试过,但此页面底部有一个描述 cwiki
not that I've tried it but theres a description at the bottom of this page cwiki