Quantcast
Channel: SCN : Popular Discussions - SAP Gateway
Viewing all articles
Browse latest Browse all 1195

Resource not found for segment

$
0
0

Hi,

 

I succesfully created a service  but when I try out the get_entity method it would prompt out "Resource not found for segment".

The get_entityset is working fine but not the get entity method. I also manage to get the metadata for the entities.

How can I debug for this problem ? I tried to put a external break point in my getentity code but it doesn't have any response.

I  tried to delete the redefintion of get_entity method and redefine it again then leave it blank, I got the same error message(Resource not found for segment 'week').

I am out of idea why I would get this exception, can anyone please give me an idea on possibility of this error message and how can I debug on the code ?

 

URL to get_entityset (working)

httyp://abc.abc.com/sap/opu/odata/sap/timesheetserv/weeks

 

 

URL to get_entity (not working)

httyp://abc.abc.com/sap/opu/odata/sap/timesheetserv/weeks('2012-04-23')

 

 

 

This is my get_entity for runtime data

1.gif

 

This is the code for the specific entity get_entity code. Please click on the picture to see the code clearer.

specific entities.gif


Viewing all articles
Browse latest Browse all 1195

Trending Articles



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