How can I create a WSDL file from a WSDL URL?

My problem is that I created a web service client with wsimport and when it creates its service object, it fails due to HTTPS, for example:

MyService_Service service = new MyService_Service(
                                new URL("https://www.aaa.com/myws/MyService?WSDL"));

So, I'm trying to initialize a service object from a WSDL file, but how can I create a WSDL file from this URL " https://www.aaa.com/myws/MyService?WSDL "?

Many thanks.

+4
source share
2 answers

Go to the URL in the browser and save the created file. You will also need to save any schemas imported by wsdl.

+4
source

JAX-WS WSDL- , . , , , WSDL XSD, , .
XML, WSLD XSD.
- @WebService wsdlLocation WSDL. XSD , WSLD.
wsimport, clientjar, .

Creates the jar file of the generated artifacts along with the WSDL 
metadata required for invoking the web service.
+1

All Articles