简体   繁体   中英

Java Web Service in Glassfish with https

I'm trying to deploy a web service in Glassfish 3.1 which works with http and https. It works fine in http but when trying in https it says

Error generating artifacts for the following WSDL https:// * . :8181/UserWebService/UserWebService?WSDL

Possible causes can be invoking https when the application is not configured for security

The server log says:

Invalid request scheme for Endpoint UserWebService. Expected http . Received https

Failed to parse metadata returned from server at ....

[ERROR] failed.noservice=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.

As I said, it works perfectly through http but it fails with https.

What is wrong? Should I change anything in my NetBeans project?

Thanks!

My problem was proxy/antivirus problem I finally download the wsdl file and copy that in the project folder and type following command

wsimport -p com.yourdomain.package -s src -d bin downloaded_wsdl_file.xml

Then it generated all java files in your src folder and all .class files in bin directory

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM