Web服务客户端-选择的服务定义无效 [英] Web Service client - Service definition selected is invalid

查看:146
本文介绍了Web服务客户端-选择的服务定义无效的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在Tomcat上运行Apache AXIS 2 Web服务运行时,并使用Apache Tomcat服务器(apache-tomcat-7.0.23)在Eclipse上构建Web服务,它成功显示该Web服务正在运行...

i am building a web service on eclipse using Apache AXIS 2 Webservice runtime using Apache Tomcat server (apache-tomcat-7.0.23) while running it on tomcat server it sucessfully shows that the web service is running...

但是在创建Web服务客户端以测试Web服务并在服务器定义(http://localhost:9090/Axis2WSTest/services/Converter?wsdl)中使用wsdl url时,这会产生以下提到的错误,并且不允许我创建Web服务客户端:

But while creating Webservice client to test the web service and using the wsdl url in the server definition (http://localhost:9090/Axis2WSTest/services/Converter?wsdl), this gives below mentioned error and not letting me to create Webservice client:

所选服务定义无效

The service definition selected is invalid

您能建议我这个错误和可能的解决方法吗?

Can you please suggest me the error and possible solution for it?

推荐答案

问题可能是您的wsdl需要http认证.我在eclipse中遇到了相同的错误,但这是因为我连接的服务器需要身份验证,并且返回401错误,所以eclipse表示这不是wsdl. Eclipse似乎没有提示身份验证的功能,因为Netbeans知道要进行身份验证,所以我能够使用相同的wsdl url在netbeans中生成一个客户端.

The problem could be that your wsdl needs http authentication. I was getting the same error in eclipse, but it was because the server I was connecting to needed authentication and was returning a 401 error, so eclipse was saying it wasn't a wsdl. Eclipse doesn't seem to have the functionality to prompt for authentication, I was able to generate a client in netbeans using the same wsdl url because netbeans knows to ask for authentication.

从http认证的wsdl生成客户端

这篇关于Web服务客户端-选择的服务定义无效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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