简体   繁体   English

无法在Eclipse Apache Axis2中检索wsdl文件

[英]Could not Retrieve the wsdl file in eclipse Apache Axis2

I am trying to consume a soap web service using wsdl file. 我正在尝试使用wsdl文件来使用肥皂网络服务。 In eclipse when I try New>Other>Web Service Client> Service definition : http://abc.com/demo?wsdl&username=test&password=test 在Eclipse中,当我尝试“新建”>“其他”>“ Web Service客户端”>“服务定义”时: http://abc.com/demo?wsdl&username=test&password=test : http://abc.com/demo?wsdl&username=test&password=test

I get an error: 我收到一个错误:

Could not Retrieve the wsdl file http://abc.com/demo?wsdlusername=testpassword=test 

When it shows the error - it doesn't show '&' in uri. 当显示错误时-在uri中不显示'&'。 Do I need to put some encoding ? 我需要添加一些编码吗? I tried putting wsdl somewhere else so I don't have to use username & password - that worked. 我尝试将wsdl放置在其他地方,所以我不必使用用户名和密码-可以。 Also, The URL working in browser. 另外,该URL在浏览器中有效。 Can you please help? 你能帮忙吗? Thanks. 谢谢。

Have you tried using wsimport tool that is included in the JDK 6 or higher? 您是否尝试过使用JDK 6或更高版本中包含的wsimport工具? eg: 例如:

wsimport http://abc.com/demo?wsdl&username=test&password=test -Xnocompile

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM