Web Service client - Service definition selected is invalid
Solution 1
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.
Generate client from http authenticated wsdl
Solution 2
I was searching for the whole day for an answer for this,generally localhost will be added in your bypass proxy list and hence you will not encounter an error.
Go to windows--> preference-->general--> network-connection and see whether localhost is listed in your proxybypass list.If you are trying to access a external wsdl link and you under some corporate network having proxy firewall you have to set http proxy/https proxy.
Nishit Jain
Updated on January 10, 2020Comments
-
Nishit Jain over 4 years
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...
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?