on 08-28-2014 10:56 AM
Hi Experts,
I am using a Gateway Service on REST client in Web Browser & can't access SAP system. Let's say the developer has implemented 2 operations only (Out of 5 CRUDQ operations) for the service.
Can anyone please tell me the command/way to know the Implemented services for that particular Gateway service?
Thanks in Advance.
Hello Bhavya,
U can try to figure out by seeing the metadata as below :
http://<Host + Post>/sap/opu/odata/sap/<Your Service Name>/$metadata
U will get info regarding what all properties are used for Sorting, Updating, Creating, Filtering etc
and info regarding entities.
Info regarding Association & Navigation between entities as well.
Based on metadata u can try to understand the operations which we can perform with the particular service.
Regards,
Ashwin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
J Hi Ashwin,
I have already tried this and it's not helping me, as you can see in the example below:
<EntityContainer Name="ZMATNR_SRV_Entities" m:IsDefaultEntityContainer="true"
</EntityContainer>
Here in this example, I have implemented all the CRUDQ operations for my service ZMATNR_SRV and they are working fine as well. But the same is not reflected in $metadata command.
Hi Bhavya,
$metadata is the only way to find out your service details like(entity type,entity set, key fields, properties, associations and navigations).
use the correct URI and pass your correct entity set like below
your_service/ZSA_USERS_SRV/$metadata
your_service/ZSA_USERS_SRV/UserSet
Vijay V
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.