on 08-07-2017 8:16 AM
<br>
Hello,
I have been trying to get a minimal connection to the oData Extension framework working, but the documentation (here) but i can't get it working. I keep getting a `501 Not Implemented` error.
i have a the following CDS
context Survey{
Entity Question {
QuestionTitle: String;
}
}
and the following oData v4 Extension following the sample `ExtensionSample.java`
@ExtendDataProvider(entitySet = { "Question" }, requestTypes = RequestType.CREATE)
public void createQuestion(ExtensionContext ecx)
throws ODataApplicationException, ExtensionException, SQLException {
logger.debug("Entering Create Question.");
insertQuestion(ecx);
}
As you can see i literally just want it to catch the request. `insertQuestion` captures the connection and closes it per the example file above. (i commented out all statement preparation for now).
I then send a POST command to `<host>/java/odata/v4/snics.snicsdb._.Survey/Question`
with a body like so
{
"QuestionTitle":"How the heck does this work?"
}
And I get
{
"error": {
"code": "CDSRuntimeException.NOT_IMPLEMENTED",
"message": "'null' :Not Implemented."
}
}
As far as I can tell, the response should hit my extension...were there any configuration steps i had to complete outside the class? I'm not getting compile errors when building either the CDS or the Service and the logs show it picks up my extension class to compile...
Thanks
User | Count |
---|---|
93 | |
10 | |
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.