BusinessObjects Board

Import nested schema with imported namespace

Hello,
for realtime jobs/ web services we have created XSDs which all refer to a XSD with common type definitions:

<xsd:import namespace="https://www.mycompany.com/common-datatypes/" 
schemaLocation="./common-datatypes.xsd"/>

The import of those XSDs as nested structure works quite well and the corresponding web services can be started successfully. I also checked the WSDL of our DS webservices and noted that the relative path of the common datatypes was replaced by a complete path on the webserver:

<xsd:import namespace="https://www.mycompany.com/common-datatypes/"
schemaLocation="http://<webserver>:<port>/webservice/common-datatypes.xsd"/>

Everything fine so far. However if I send a request to the web service I get the following error message:

XML parser failed: Error <namespace 'https://www.mycompany.com/common-datatypes/' is referenced without import declaration> ...
<xsd:import namespace="https://www.mycompany.com/common-datatypes/" 
schemaLocation="./common-datatypes.xsd"/>

Apparently, the request is verified versus another XSD than the one on the webserver. But which one? Is this a bug (or a feature)? How can I fix it? Any ideas?

Best regards


AgentLie (BOB member since 2018-01-03)