I have to generate a webservice client in ivy7.2 (CXF) where the wsdl is only accessable over https. The WebsService class generation crahes with a mysterious exception:
asked 07.03.2019 at 10:11 Bruno Bütler Reguel Werme... ♦♦ |
The problem arises if the wsdl includes schema.xsd. The CXF Framework can not access the xsd files over the specified schema location. A workaround is to download the wsdl and xsd files manually with a webbrowser and to change the xsd schema location in the wsdl to local file names. Then you can read in the wsdl using a file:/ url path After the creation of the client you have to manipulate the new cxf...jar in the lib_ws folder in the ivy project. It includes a wsdl and a number of schemaN.xsd files. But this wsdl still includes the origin xsd paths and not the local schemaN.xsd files. Change the schema location in the wsdl to the local schemaN.xsd files.
Without this modification the WS call will fail with an InstantiationException: org.apache.cxf.service.factory.ServiceConstructionException: Failed to create service. answered 07.03.2019 at 10:28 Bruno Bütler |
Once you sign in you will be able to subscribe for any updates here
By RSS:Markdown Basics
Tags:
Asked: 07.03.2019 at 10:11
Seen: 3,110 times
Last updated: 08.03.2019 at 04:29