Generate Java Web Service Client from HTTPS url

穿精又带淫゛_ 提交于 2020-01-02 17:41:13

问题


I'm implementing a test client for a web service. The service use HTTPS and I'm trying to use the Eclipse wizard to generate the client.

Using this url Eclipse cannot find the WSDL definition: The wizard alerts that "The service definition selected is invalid." and the process cannot go ahead.

The url is correct, I verified it implementing a .NET client and it works. The only issue is that the SSL certificate is expired.

How can I generate the client correctly in java?


回答1:


Capture the WSDL by other means, like download it with your browser and then access it locally with a non-SSL server (or even just a file). It looks like Eclipse can't deal with an SSL problem (which is likely a bug on their part, they should have an option to ignore it).




回答2:


You shouldn't need to. There is no difference in the WSDL between using the SOAP call on HTTP and using the SOAP call with SSL (HTTPS).

Please change the https to http



来源:https://stackoverflow.com/questions/8655329/generate-java-web-service-client-from-https-url

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!