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&g=com.xxx.project&a=project-service-wsdl&v=0.0.1-SNAPSHOT&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.

Reply via email to