cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aki Yoshida <elak...@googlemail.com>
Subject Re: xsd:import schemaLocation url with query params
Date Fri, 20 Apr 2012 16:19:16 GMT
Hi,
I believe the error message is saying the content retrieved by the
query is invalid.

It looks like the xml file contains some invalid content before
starting with the xml prolog <?xml ...>
Can you download the file and verify if the file is a valid xml?

regards, aki

2012/4/20 pwanner <pwanner@pwanner.com>:
> Hi,
> Thank you for the answer,
>
> When I use in the xsd:include the url pointing directly to the xsd like this
> (direct url, no query):
>
> http://nexus.xxx.com/nexus/service/local/repositories/snapshots/content/com/xxx/project/project-service-wsdl/0.0.1-SNAPSHOT/project-service-wsdl-0.0.1-20120420.140037-391.xsd
>
> all is fine, wsdl2java complete.
>
> When I use in the xsd:include the escaped url like this:
>
> http://nexus.xxx.com/nexus/service/local/artifact/maven/redirect?r=snapshots&amp;g=com.xxx.project&amp;a=project-service-wsdl&amp;v=0.0.1-SNAPSHOT&amp;e=xsd
>
> wsdl2java complains :
>
> Caused by: javax.wsdl.WSDLException: WSDLException (at
> /wsdl:definitions/wsdl:types/xsd:schema): faultCode=PARSER_ERROR: Problem
> parsing
> 'http://nexus.xxx.com/nexus/service/local/artifact/maven/redirect?r=snapshots&g=com.xxx.project&a=project-service-wsdl&v=0.0.1-SNAPSHOT&e=xsd'.:
> org.xml.sax.SAXParseException: Content is not allowed in prolog.
>        at com.ibm.wsdl.xml.WSDLReaderImpl.getDocument(Unknown Source)
>        at com.ibm.wsdl.xml.WSDLReaderImpl.parseSchema(Unknown Source)
>        at com.ibm.wsdl.xml.WSDLReaderImpl.parseSchema(Unknown Source)
>        at com.ibm.wsdl.xml.WSDLReaderImpl.parseTypes(Unknown Source)
>        at com.ibm.wsdl.xml.WSDLReaderImpl.parseDefinitions(Unknown Source)
>        at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
>        at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
>        at
> org.apache.cxf.wsdl11.WSDLManagerImpl.loadDefinition(WSDLManagerImpl.java:237)
>        at
> org.apache.cxf.wsdl11.WSDLManagerImpl.getDefinition(WSDLManagerImpl.java:186)
>        at
> org.apache.cxf.wsdl11.WSDLDefinitionBuilder.parseWSDL(WSDLDefinitionBuilder.java:78)
>        ... 32 more
>
>
>
> --
> View this message in context: http://cxf.547215.n5.nabble.com/xsd-import-schemaLocation-url-with-query-params-tp5651282p5654441.html
> Sent from the cxf-user mailing list archive at Nabble.com.

Mime
View raw message