Relative imports are not handled correctly by CustomWSDLLocator
---------------------------------------------------------------

                 Key: SYNAPSE-442
                 URL: https://issues.apache.org/jira/browse/SYNAPSE-442
             Project: Synapse
          Issue Type: Bug
    Affects Versions: 1.2
            Reporter: Stoil Valchkov


I tried simple code as:

        ProxyService testService = new ProxyService("mytest");
        SynapseConfiguration synCfg = new SynapseConfiguration();
        AxisConfiguration axisCfg = new AxisConfiguration();
        URI uri = new 
URI("http://localhost:8080/mytest/SimpleStockService.wsdl";);
        testService.setWsdlURI(uri);
        testService.buildAxisService(synCfg, axisCfg);

where SimpleStockService.wsdl has import as:
<xs:import namespace="http://services.samples/xsd/GetQuote"; 
schemaLocation="http://localhost:8080/mytest/SimpleStockService-GetQuote.xsd"/>
and SimpleStockService-GetQuote.xsd has an import as:
<xs:import namespace="http://services.samples/xsd/PlaceOrder"; 
schemaLocation="SimpleStockService-PlaceOrder.xsd"/>.

Everything should be fine, but resolver can't handle this case. 

16:33:17,294 [main] ERROR WSDL11ToAxisServiceBuilder - WSDLException (at 
/wsdl:definitions/wsdl:types/xs:schema/xs:schema): faultCode=PARSER_ERROR: 
Problem parsing 'SimpleStockService-PlaceOrder.xsd'.: 
java.io.FileNotFoundException: D:\temp\SimpleStockService-PlaceOrder.xsd (The 
system cannot find the file specified)
javax.wsdl.WSDLException: WSDLException (at 
/wsdl:definitions/wsdl:types/xs:schema/xs:schema): faultCode=PARSER_ERROR: 
Problem parsing 'SimpleStockService-PlaceOrder.xsd'.: 
java.io.FileNotFoundException: D:\temp\SimpleStockService-PlaceOrder.xsd (The 
system cannot find the file specified)
        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.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)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to