Quantcast
Channel: SCN : All Content - SAP Gateway
Viewing all articles
Browse latest Browse all 2823

Posting file to navigation property - 405 Method not allowed

$
0
0

Dear experts,

 

I am trying to implement posting file through navigation property, so I can access key fields in CREATE_STREAM method. This approach is based on Matt's suggestion here Re: How to send additional parameters with file upload

 

I created this simple structure oData service.Key field is Email for both entities. UserPhoto is media entity.

1.JPG

2.JPG

 

Now the issue:

I can access CREATE_STREAM directly - /ZSA_USERS_SRV/UserPhotoSet/

I can access GET_USERPHOTO_GET_ENTITY by navigation (and I also can see key field) - /sap/opu/odata/SAP/ZSA_USERS_SRV/UserSet('john@doe.com')/Photo

 

But when I try to post file to /sap/opu/odata/SAP/ZSA_USERS_SRV/UserSet('john@doe.com')/Photo

I get 405 Method not allowed - The specified HTTP method is not allowed for the resource identified by the Data Service Request URI.

 

 

Can you please help me which kind of setting did I forget to switch on?

Thank you,

Peter


Viewing all articles
Browse latest Browse all 2823

Latest Images

Trending Articles



Latest Images

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