You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2019/04/25 11:46:00 UTC

[jira] [Work logged] (CXF-8029) CXF WSDLToJava Generation fails if included XSD needs redirecting

     [ https://issues.apache.org/jira/browse/CXF-8029?focusedWorklogId=232763&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-232763 ]

ASF GitHub Bot logged work on CXF-8029:
---------------------------------------

                Author: ASF GitHub Bot
            Created on: 25/Apr/19 11:45
            Start Date: 25/Apr/19 11:45
    Worklog Time Spent: 10m 
      Work Description: ivy-arus commented on pull request #548: [CXF-8029] Add redirect support to URIResolver
URL: https://github.com/apache/cxf/pull/548
 
 
   
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Issue Time Tracking
-------------------

            Worklog Id:     (was: 232763)
            Time Spent: 10m
    Remaining Estimate: 0h

> CXF WSDLToJava Generation fails if included XSD needs redirecting
> -----------------------------------------------------------------
>
>                 Key: CXF-8029
>                 URL: https://issues.apache.org/jira/browse/CXF-8029
>             Project: CXF
>          Issue Type: Improvement
>    Affects Versions: 3.3.1
>            Reporter: Andreas Rusch
>            Priority: Major
>         Attachments: cxf-URIResolver.patch
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> I need to generate a Java WS client from a WSDL file that includes a XSD schema via <xs:include> with attribute schemaLocation="http://<path>".
> The problem I have now is caused by the fact that the XSD file is not available through http any more, only via https.
> When I execute client generation with WSDLToJava I get the very confusing error message 
> org.apache.cxf.tools.common.ToolException: org.apache.cxf.wsdl11.WSDLRuntimeException: Fail to create wsdl definition <wsdl_uri>: WSDLException (at /definitions/types/xs:schema): faultCode=PARSER_ERROR: Problem parsing 'http://<xsd_path>'.: org.xml.sax.SAXParseException: White spaces are required between publicId and systemId.
> Debugging the code generation showed that WSDLToJava has two problems:
> First the default conduit behavior in TransportURIResolver has autoredirect switched off. OK, I can change this myself from outside by setting a special HTTPConduitConfigurer.
> Second, and here I can't change the behavior from outside, the used URIResolver in CustomizedWSDLLocator does not support redirecting.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)