我正在尝试使用wsdl文件来使用soap web服务。在eclipse中我尝试New> Other> Web Service Client>服务定义:http://abc.com/demo?wsdl&username=test&password=test
我收到错误:
Could not Retrieve the wsdl file http://abc.com/demo?wsdlusername=testpassword=test
当它显示错误时 - 它不显示'&'在乌里。我需要进行一些编码吗?我尝试将wsdl放在其他地方,所以我不必使用用户名&密码 - 有效。此外,URL在浏览器中工作。你能帮忙吗?感谢。
答案 0 :(得分:0)
您是否尝试过使用JDK 6或更高版本中包含的wsimport
工具? e.g:
wsimport http://abc.com/demo?wsdl&username=test&password=test -Xnocompile