Skip to Content
Jul 30, 2019 at 05:22 AM

Creat entity async using proxy classes

131 Views Last edit Aug 05, 2019 at 12:06 PM 6 rev

Hi All,

i am developing one android application using odata proxy classes with sap cloud SDK i would like to use createEntityAsync method for create entity. How should i get response as json object?. How to use that method for create entity can you please suggest anyone how to do that?.

provider.createEntityAsync(entity, () -> {<br>   <br>}, (RuntimeException re) -> {<br>    <br>},httpHeaders);

I used like above for post request but first time i got exception status code 403 forbidden but second time i sent same request with same headers i got success can you please help me what's wrong with this.