从http验证的wsdl生成客户端 [英] Generate client from http authenticated wsdl

查看:146
本文介绍了从http验证的wsdl生成客户端的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用eclipse Web Service Client向导生成一个Web服务客户机。但是,wsdl需要http身份验证,并没有找到一种方法来输入身份验证信息。

I'm trying to generate a web service client with the eclipse Web Service Client wizard. However, the wsdl needs http authentication, and haven't found a way to enter the authentication information.

推荐答案

打开wsdl浏览器并在出现提示时输入登录信息。一旦wsdl打开,将其保存到硬盘驱动器上的文件。使用eclipse文件生成代码。那么您可能必须替换创建的java代码中的端点值,因为它将包含文件的位置,而不是部署的wsdl。我不得不这样做这种方式几次来绕过身份验证。

Open the wsdl in a browser and enter the login information when prompted. Once the wsdl opens save it to a file on your hard drive. Use the file with eclipse to generate your code. Then you may have to replace the endpoint value in the java code created because it will contain the location of the file instead of the deployed wsdl. I've had to do it this way a couple of times to get around the authentication piece.

这篇关于从http验证的wsdl生成客户端的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆