Quantcast
Channel: SCN : All Content - SAPUI5 Developer Center
Viewing all articles
Browse latest Browse all 6178

Deep Entity Request from SAPUI5 to Gateway

$
0
0

Hi experts,

 

I would like to trigger a POST request from SAPUI5 to a NW Gateway Service, which uses a deep entity request.

The good news is, that the following XML POST seems to work. I have trouble to "translate" such a request to the SAPUI5 framework tooling.

 

Who knows how to start with this?

 

Thank you!

 

Regards

Stefan

 

<?xml version="1.0" encoding="utf-8" ?><entry xml:base="http://myServer/sap/opu/odata/sap/MY_SERVICE_SRV/" xmlns="http://www.w3.org/2005/Atom" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices"><id>http://myServer/sap/opu/odata/sap/MY_SERVICE_SRV/HeaderSet('12345678')</id><title type="text">HeaderSet('12345678')</title><updated>2013-07-26T06:53:12Z</updated><category term="MY_SERVICE_SRV.Header" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme" /><link href="HeaderSet('12345678')" rel="edit" title="Header" /><link href="HeaderSet('12345678')/Items" rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Items" type="application/atom+xml;type=feed" title="Items">  <m:inline>   <feed xml:base="http://myServer/sap/opu/odata/sap/MY_SERVICE_SRV/">    <id>http://myServer/sap/opu/odata/sap/MY_SERVICE_SRV/HeaderSet('12345678')/Items</id>    <title type="text">ItemSet</title>    <updated>2013-07-26T06:53:12Z</updated>    <author>     <name />    </author>    <link href="HeaderSet('12345678')/Items" rel="self" title="ItemSet" />    <entry>     <id>http://myServer/sap/opu/odata/sap/MY_SERVICE_SRV/ItemSet(Row=1,OrderNumber='12345678')</id>     <title type="text">ItemSet(Row=1,OrderNumber='12345678')</title>     <updated>2013-07-26T06:53:12Z</updated>     <category term="MY_SERVICE_SRV.Item" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme" />     <link href="ItemSet(Row=1,OrderNumber='12345678')" rel="edit" title="Item" />     <content type="application/xml">      <m:properties>       <d:Row>1</d:Row>       <d:Material>014</d:Material>       <d:Quantity>100</d:Quantity>       <d:Unit />       <d:Code>121</d:Code>       <d:OrderNumber>0</d:OrderNumber>      </m:properties>     </content>    </entry>   </feed>  </m:inline></link><content type="application/xml">  <m:properties>   <d:Customer>0100100100</d:Customer>   <d:Division>03</d:Division>   <d:SalesOrg>0101</d:SalesOrg>   <d:OrderNum>0</d:OrderNum>  </m:properties></content></entry>

Viewing all articles
Browse latest Browse all 6178

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>