on 08-26-2016 4:02 PM
Hello, experts.
I have been trying to implement the deep insert operation by following this guide:
I have created all the required entities in SEGW and all the methods in the REST webservice classes but i'm now stuck on a problem.
<?xml version='1.0' encoding='UTF-8'?>
<ns1:entry xmlns:ns1="http://www.w3.org/2005/Atom" xmlns:ns3="http://schemas.microsoft.com/ado/2007/08/dataservices" xmlns:ns2="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata">
<ns1:link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/MasterToPartnerData">
<ns2:inline>
<ns1:feed>
<ns1:entry>
<ns1:content type="application/xml">
<ns2:properties>
<ns3:Adrnr>10000</ns3:Adrnr>
<ns3:Kunnr>100</ns3:Kunnr>
<ns3:Parvw>AG</ns3:Parvw>
</ns2:properties>
</ns1:content>
</ns1:entry>
</ns1:feed>
</ns2:inline>
</ns1:link>
<ns1:content type="application/xml">
<ns2:properties>
<ns3:Kunnr>100</ns3:Kunnr>
</ns2:properties>
</ns1:content>
</ns1:entry>
This payload is correctly accepted by the framework, but when it reaches the method (CUSTOM_CREATE_ENTITY) it is parsed like this:
Can you please provide a solution or tips?
Thank you.
Which error message are you getting and what is your metadata definition ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Please use the below format.
<?xml version="1.0" encoding="UTF-8"?>
<atom:entry xmlns:atom="http://www.w3.org/2005/Atom" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata">
<atom:content type="application/xml">
<m:properties>
//Header Part
<d:Mandt>100</d:Mandt> // Header Fields
</m:properties>
</atom:content>
<atom:link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Item_Set" type="application/atom+xml;type=feed" title="ItemSet">
<m:inline>
<atom:feed>
//Item - 1
<atom:entry>
<atom:content type="application/xml">
<m:properties>
<d:Adrnr>245</d:Adrnr>
<d:Kunnr>245</d:Kunnr>
</m:properties>
</atom:content>
</atom:entry>
//Item - 2
<atom:entry>
<atom:content type="application/xml">
<m:properties>
<d:Adrnr>245</d:Adrnr>
<d:Kunnr>245</d:Kunnr>
</m:properties>
</atom:content>
</atom:entry>
</atom:feed>
</m:inline>
</atom:link>
</atom:entry>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
78 | |
10 | |
7 | |
6 | |
6 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.