Hello guys,
I have been working with Olingo for a while to consume some data from SAP
via their ODATA API. However, I have an issue requesting data because of
some name space issue. My question now is to know if it is possible to
change the namespace of a request. The two xml files attached to this email
show how the expected and actual namespaces look like.
Best regards
Danyls
<?xml version='1.0' encoding='UTF-8'?>
<entry xmlns="http://www.w3.org/2005/Atom"
xml:base="http://enterpt1.intranet.erpsourcing.ch:8000/sap/opu/odata/sap/ZHR_ODATA_INFOTYPES_SRV/"
xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata"
xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices">
<category scheme="http://docs.oasis-open.org/odata/ns/scheme"
term="#ZHR_ODATA_INFOTYPES_SRV.IT2012" />
<content type="application/xml">
<m:properties>
<d:Pernr>00000001</d:Pernr>
<d:Begda>2022-12-15T16:39:27</d:Begda>
<d:Endda>2022-12-15T16:39:27</d:Endda>
<d:Anzhl>1</d:Anzhl>
<d:Subty>9000</d:Subty>
</m:properties>
</content>
</entry>
<entry xmlns="http://www.w3.org/2005/Atom" xmlns:xml="http://www.w3.org/XML/1998/namespace"
xmlns:m="http://docs.oasis-open.org/odata/ns/metadata"
xmlns:d="http://docs.oasis-open.org/odata/ns/data" xmlns:gml="http://www.opengis.net/gml"
xmlns:georss="http://www.georss.org/georss">
<category scheme="http://docs.oasis-open.org/odata/ns/scheme"
term="#ZHR_ODATA_INFOTYPES_SRV.IT2012" />
<content type="application/xml">
<m:properties>
<d:Pernr>00000001</d:Pernr>
<d:Begda>2022-12-15T16:39:27</d:Begda>
<d:Endda>2022-12-15T16:39:27</d:Endda>
<d:Anzhl>1</d:Anzhl>
<d:Subty>9000</d:Subty>
</m:properties>
</content>
</entry>