Error Generating Artifacts For The Following Wsdl
here for a quick overview of the site Help Center Detailed answers to possible causes can be invoking https when the application is not configured for security any questions you might have Meta Discuss the workings and error generating artifacts glassfish policies of this site About Us Learn more about Stack Overflow the company Business Learn error generating artifacts for the following wsdl netbeans more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up wsimport Error: Possible causes can be invoking https when the application is not configured for security up vote 0 down vote favorite I have developed and published a Java web service in the Glassfish server using Netbeans. I can try and use the WSDL file properly using localhost in the URL for example: http://localhost:8080/WebServices or https://localhost:8443/WebServices or http://10.0.0.60:8080/WebServices However, when I use the IP of the server: https://10.0.0.60:8443/WebServices the service fails and returns the error: Error generating WSDL artifacts for the following https://10.0.0.60:8443/WebServices/WSCartasDePorte?WSDL Possible causes can be Invoking https When the application is not configured for security The WSDL file is accessible from any of the above URLs. 1-I tried to activate the security Manager server. 2-I tried with security restrictions like the following.
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Java Web Service in Glassfish with https up vote 0 down vote favorite I'm trying to deploy a web service in Glassfish 3.1 which works with http and https. It works fine in http http://stackoverflow.com/questions/35703481/wsimport-error-possible-causes-can-be-invoking-https-when-the-application-is-no 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. http://stackoverflow.com/questions/11122143/java-web-service-in-glassfish-with-https 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! java web-services netbeans https share|improve this question asked Jun 20 '12 at 14:47 Ibai 263419 Is your server configured to support SSL? –Ravi Jun 20 '12 at 15:19 Yes, I followed this tutorial: javadude.wordpress.com/2010/04/06/… and when opening the index page it shows the "lock" correctly. –Ibai Jun 20 '12 at 15:21 Is your WSDL accessible over https ? Also do the service URL contains https ? –Santosh Jun 20 '12 at 15:26 I think it's not accssible, Santosh, it returns a "blank" page. How can I make it accessible? –Ibai Jun 20 '12 at 15:34 1 You can find solution here: stackoverflow.com/questions/8882056/… –Mephysto Jul 25 '12 at 7:20 add a comment| 1 Answer 1 active oldest votes up vote 0 down vote 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 share|improve this answer answered Mar 19 '13 at 5:38 Reza 215 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign up using Facebook Sign up
Speaker BureauLog inRegisterSearchSearchCancelError: You don't have JavaScript enabled. This tool uses JavaScript and much of it will not work correctly without it enabled. Please turn JavaScript back on and reload this page. Please https://community.oracle.com/thread/2534678 enter a title. You can not post a blank message. Please http://w.planetnetbeans.org/topic51092.html type your message and try again. More discussions in Java Technologies for Web Services All PlacesJavaJava EE (Java Enterprise Edition)Java Technologies for Web Services This discussion is archived 2 Replies Latest reply on May 6, 2013 9:09 AM by Ajay Sharma Unable to test error generating https Web service url. Ajay Sharma May 6, 2013 7:23 AM Hi, I deployed a Java web service on Glassfish server. While testing the web service I got two URL. Links: [server]http://AJAYPC:8787/TestWS/TWS?Tester [server]https://AJAYPC:8181/TestWS/TWS?TesterI am able to test web service using first url but when I clicked on url with "https" I got following error on browser error generating artifacts Error generating artifacts for the following WSDL https://AJAYPC:8181/TestWS/TWS?WSDL Possible causes can be invoking https when the application is not configured for securityHow can I test the https URL ? regards, Ajay Sharma I have the same question Show 0 Likes(0) 3142Views Tags: none (add) This content has been marked as final. Show 2 replies 1. Re: Unable to test https Web service url. r035198x May 6, 2013 7:48 AM (in response to Ajay Sharma) Have you configured the application for https? http://docs.oracle.com/cd/E17802_01/webservices/webservices/reference/tutorials/wsit/doc/WSIT_Security5.html Like Show 0 Likes(0) Actions 2. Re: Unable to test https Web service url. Ajay Sharma May 6, 2013 9:09 AM (in response to r035198x) Hi, Thanks You. I added following code in web service class static { //WORKAROUND. TO BE REMOVED. HttpsURLConnection.setDefaultHostnameVerifier(new HostnameVerifier() { @Override public boolean verify(String hostname, SSLSession sslSession) { if(hostname.equals("AJAYPC")){ return true; } return false; //throw new UnsupportedOperationException("Not supported yet."); } }); }Now I am gettin
WSDL NetBeans Forums -> NetBeans Developers View previous topic :: View next topic Author Message jholly_sd@hotmail.comJoined: 09 Sep 2012Posts: 1 Posted: Sun Sep 09, 2012 6:53 pm Post subject: Error generating artifacts for the following WSDL I am using the following tutorial where I have attempted to utilize my wsdl as specified within the Net Beans tutorial. http://netbeans.org/kb/docs/websvc/flower_ws.html I followed the following section: Web Service Passing Binary Data, pt 4: Modifying the Schema and WSDL Files Receive the following each time I attempt to test the web service. I have also attempted computer name and 127.0.0.1 as the ipaddress with the same results. Error generating artifacts for the following WSDL http://localhost:8080/FlowerServiceService/FlowerService?WSDL Possible causes can be invoking https when the application is not configured for security Thanks Back to top Display posts from previous: All Posts1 Day7 Days2 Weeks1 Month3 Months6 Months1 YearOldest FirstNewest First NetBeans Forums -> NetBeans Developers All times are GMT Page 1 of 1 Jump to:Select a forumLists----------------NetBeans UsersJava EE Users Ajax UsersSOA UsersJava ME UsersProfiler UsersRuby UsersPHP UsersC/C++ UsersNetBeans DevelopersNetBeans Platform Users Web Client UsersNetBeans Community Corner You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot vote in polls in this forumYou cannot attach files in this forumYou can download files in this forum Powered by phpBB SiteMap About Us Contact Legal & Licences By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by