Reputation: 3057
I am trying a simple soap consumer using spring-ws
for the URL http://www.dneonline.com/calculator.asmx?wsdl
.
I either get 403 forbidden error for the URL
wsimport -keep -s ./src -d ./dest http://www.dneonline.com/calculator.asmx?wsdl
or
connection timeouts for the URL
wsimport http://www.dneonline.com/calculator.asmx?wsdl
complete error :
parsing WSDL...
[ERROR] Connection timed out: connect
Failed to read the WSDL document: http://www.dneonline.com/calculator.asmx?wsdl, because 1) could not find the document; /2) the document could not be read; 3) the root element of the document is not .
[ERROR] Could not find wsdl:service in the provided WSDL(s):
At least one WSDL with at least one service definition needs to be provided.
Failed to parse the WSDL.
Also tried :
java -Dhttp.proxyHost=proxy.orgname.com -Dhttp.proxyPort=9000 -Dhttp.nonProxyHosts="localhost|*.intranet-domain.com" -classpath %JAVA_HOME%\lib\tools.jar com.sun.tools.internal.ws.WsImport -p com.ws.client.pkg http://www.dneonline.com/calculator.asmx?wsdl
errors out saying the tools.jar
is not found even though it exits.
Upvotes: 0
Views: 1139