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

前端 未结 2 861
情话喂你
情话喂你 2021-01-18 18:13

My problem is that I created a web service client with wsimport and when creating its service object, it fails because of the HTTPS, like that:

MySe         


        
相关标签:
2条回答
  • 2021-01-18 19:03

    Navigate to the URL in a browser and save the file it generates. You'll need to make sure you also save any schemas imported by the wsdl.

    0 讨论(0)
  • 2021-01-18 19:10

    JAX-WS needs WSDL document every time one initializes service instance. Since issues like one you described might occur, its possible to package WSDL and associated XSD schemas, so that they would be accessible no matter what.
    I'd prefer using XML catalogs, since there would be no need to change WSLD document or XSD schema.
    Another option would be to specify @WebService wsdlLocation property and set path to WSDL file. Though if path to XSD schemas is absolute you'll have to modify WSLD document.
    If you're working with wsimport utility version that supports clientjar option, that might save you some time.

    Creates the jar file of the generated artifacts along with the WSDL 
    metadata required for invoking the web service.
    
    0 讨论(0)
提交回复
热议问题