0

我正在尝试使用 wsdl 文件来使用肥皂网络服务。在 Eclipse 中,当我尝试 New>Other>Web Service Client> Service definition 时:http://abc.com/demo?wsdl&username=test&password=test

我收到一个错误:

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

当它显示错误时 - 它不会在 uri 中显示“&”。我需要输入一些编码吗?我尝试将 wsdl 放在其他地方,这样我就不必使用用户名和密码 - 这很有效。此外,在浏览器中工作的 URL。你能帮忙吗?谢谢。

4

1 回答 1

0

您是否尝试过使用wsimportJDK 6 或更高版本中包含的工具?例如:

wsimport http://abc.com/demo?wsdl&username=test&password=test -Xnocompile
于 2013-10-22T12:49:44.220 回答