I am using the Orion SDK ver 1.7.39 within an existing application which uses Apache Axis2. (The sample code which ships with the SDK was made using Axis1 1.4)
I wish to use the WSDLs and XSDs which I found in SDK/Samples/VBClient in order to generate code which I can then incorporate into my project. I know that whatever previous version of the SDK I have used, supported Axis2 ( that was whatever SDK goes with Orion NPM 10.1)
The problem I have is that whenever I run wsdl2java on InformationService.wsdl, I get exceptions relating to SSL / invalid Certificates. E.g.
Retrieving document at 'InformationService.wsdl'.
Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException: Error parsing WSDL
Caused by: javax.wsdl.WSDLException: WSDLException (at /wsdl:definitions/wsdl:import): faultCode=OTHER_ERROR: Unable to resolve imported document at 'https://localhost:17778/SolarWinds/InformationService?wsdl=wsdl0', relative to 'file:/C:/ServiceReferences/SolarWinds.InformationService/InformationService.wsdl': javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: No name matching localhost found
Caused by: javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: No name matching localhost found
I have tried making local copies of all WSDLs and XSDs (editing them to refer to themselves consistently). I have also tried to add a certificate using keytool per this link: IB's Java World: Running Axis WSDL2Java on HTTPS WSDL . I have not found a viable solution.