Hi expert,
I implemented deep entity and it works for XML format.
I want to test it with JSON format.
Could you please help me to change this format to JSON as my HTTP Request input ?
and also please let me know what should i use in the Header for JSON ?
Header :
* X-CSRF-Token
* Content-Type : application/atom+xml
HTTP Request in XML
<?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>
<d:DealerID>ABC1234</d:DealerID>
<d:DealerName>Dealer Automotive</d:DealerName>
<d:Street>123 Main Street</d:Street>
<d:City>Southfield</d:City>
<d:State>MI</d:State>
<d:PostalCode>40834</d:PostalCode>
</m:properties>
</atom:content>
<atom:link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/BankSet"
type="application/atom+xml;type=feed"
title="ZMASTERDATA_SRV.Bank">
<m:inline>
<atom:feed>
<atom:entry>
<atom:content type="application/xml">
<m:properties>
<d:BankAcct>1234567892</d:BankAcct>
<d:BankKey>122000247</d:BankKey>
<d:DealerID>ABC1234</d:DealerID>
<d:BankDetailID>TES8</d:BankDetailID>
</m:properties>
</atom:content>
</atom:entry>
</atom:feed>
</m:inline>
</atom:link>
</atom:entry>
Thank you in advance,
-Martin Darmawi-