SAP Knowledge Base Article - Preview

2840163 - Unable to import SOAP web service function getting error "Cannot retrieve metadata" - SAP Cloud Platform Integration for Data Services


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 '' is referenced without import declaration> at line <>, char <> in
<<xsd:schema xmlns:xsd="" xmlns:tns="" xmlns:diws="" targetNamespace="">
<xsd:import namespace='' schemaLocation='C:\ProgramData\SAP\DataServicesAgent\ext\webservice\<name of the XSD file>.xsd'/>
<xsd:element name="<name of the element in the WSDL>">
<xsd:element ref="tns:<name of the function>"/>
file <C:\ProgramData\SAP\DataServicesAgent\ext\webservice\<name of the XSD file>.xsd>.>. Validate your XML Schema using external schema validators (found at>



SAP Cloud Platform Integration for Data Services


SAP Cloud Integration for data services all versions


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.