Symptom
The following error message occurs when web service function is imported into a SOAP web service datastore in CPI-DS:
Cannot retrieve metadata - GetMetadata remote error: The adapter XML for function <<name of the function>> contains parsing errors in the object: <XML Schema>:
<Error importing XML Schema from file <adapter_schema_in.xsd>: <XML parser failed: Error <namespace 'http://www.w3.org/2001/XMLSchema' is referenced without import declaration> at line <>, char <> in
<<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://tempuri.org/" xmlns:diws="http://www.businessobjects.com/diwebservice" targetNamespace="http://www.businessobjects.com/diwebservice">
<xsd:import namespace='http://tempuri.org/' schemaLocation='C:\ProgramData\SAP\DataServicesAgent\ext\webservice\<name of the XSD file>.xsd'/>
<xsd:element name="<name of the element in the WSDL>">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="tns:<name of the function>"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>>,
file <C:\ProgramData\SAP\DataServicesAgent\ext\webservice\<name of the XSD file>.xsd>.>. Validate your XML Schema using external schema validators (found at w3.org).>
Read more...
Environment
SAP Cloud Platform Integration for Data Services
Product
Keywords
LOD-HCI-DS, HCI, CPI, CPI-DS, import, error, web service, function, metadata, datastore, SOAP, WSDL, schema, any , KBA , LOD-HCI-DS , HANA Cloud Integration for Data Services , Problem
About this page
This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).Search for additional results
Visit SAP Support Portal's SAP Notes and KBA Search.