[ 
https://issues.apache.org/jira/browse/CXF-8704?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17541127#comment-17541127
 ] 

Andriy Redko commented on CXF-8704:
-----------------------------------

Hi [~jsartelee064] ,

AFAIK Apache CXF does not follow redirects for schemas resolution (as you can 
imagine, it opens a rabbit hole of issues). If changing schemas from "http://"; 
to "https://"; is not an option for you in the first place, there is also a 
possibility to use local schema resolution with catalogs support [1]. Thank you.

[1] 
https://cxf.apache.org/docs/jax-rs-data-bindings.html#JAXRSDataBindings-Supportforcatalogs

> Parser Error: Problem Parsing - premature end of life
> -----------------------------------------------------
>
>                 Key: CXF-8704
>                 URL: https://issues.apache.org/jira/browse/CXF-8704
>             Project: CXF
>          Issue Type: Bug
>          Components: WS-* Components
>            Reporter: James Lee
>            Priority: Major
>
> We are having some issues where we noticed that CXF is having issues with 
> redirect from HTTP to HTTPS.
> Caused by: javax.wsdl.WSDLException: WSDLException (at 
> /wsdl:definitions/wsdl:import/wsdl:definitions/wsdl:types/xs:schema/xs:schema):
>  faultCode=PARSER_ERROR: Problem parsing 
> '[http://schemas.xmlsoap.org/ws/2004/09/policy/ws-policy.xsd]'.: 
> org.xml.sax.SAXParseException: Premature end of file. ( if you try to browse 
> to [http://schemas.xmlsoap.org/ws/2004/09/policy/ws-policy.xsd] it will 
> redirect to 
> [https://schemas.xmlsoap.org/ws/2004/09/policy/ws-policy.xsd|http://schemas.xmlsoap.org/ws/2004/09/policy/ws-policy.xsd]
> {[http://gpki-adapters.zenprise.com/symantec]}GpkiAdapterService#{[http://gpki-adapters.zenprise.com/symantec]}signCertificate
>  has thrown exception, unwinding now: com.zenprise.zdm.gpki.GpkiAdapterFault: 
> Could not get a cert from the server, error: signCertificate() got 
> javax.xml.ws.WebServiceException error: 
> org.apache.cxf.service.factory.ServiceConstructionException: Failed to create 
> service.'
> soap:Envelope 
> xmlns:soap="[http://schemas.xmlsoap.org/soap/envelope/]";><soap:Body><soap:Fault><faultcode>soap:Server</faultcode><faultstring>Could
>  not get a cert from the server, error: 'signCertificate() got 
> javax.xml.ws.WebServiceException error: 
> 'org.apache.cxf.service.factory.ServiceConstructionException: Failed to 
> create service.''</faultstring><detail><ns1:GpkiAdapterFault 
> xmlns:ns1="[http://zdm.zenprise.com/gpki/sample]";></ns1:GpkiAdapterFault></detail></soap:Fault></soap:Body></soap:Envelope>
>  
> Is there a way to get CXF to be able to redirect from HTTP to HTTPS?



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

Reply via email to