You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@olingo.apache.org by "Chandan V.A (JIRA)" <ji...@apache.org> on 2014/09/20 09:17:33 UTC
[jira] [Commented] (OLINGO-432) Issue about "POST" method of
function import
[ https://issues.apache.org/jira/browse/OLINGO-432?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14141824#comment-14141824 ]
Chandan V.A commented on OLINGO-432:
------------------------------------
Hello Michael,
As per the mail thread - http://mail-archives.apache.org/mod_mbox/olingo-user/201409.mbox/%3CCAHFoidmQEyBekhnexqjOBSUESoc2+dEr3PQjcqJ-DFNE0Wbp_A@mail.gmail.com%3E I believe there is no support for HTTP POST on function Imports. If it is supported please put the issue back on my name, I will check if this can be implemented in JPA processor.
Thanks
Kind Regards
Chandan
> Issue about "POST" method of function import
> --------------------------------------------
>
> Key: OLINGO-432
> URL: https://issues.apache.org/jira/browse/OLINGO-432
> Project: Olingo
> Issue Type: Question
> Components: odata2-jpa
> Affects Versions: V2 2.0.0
> Reporter: sam dai
> Priority: Critical
>
> I got a problem when I used the Apache Olingo as my OData Service library.
> I use the Function Import with “POST” method, but always doesn’t work, the following is the Java code and client code:
> JAVA side code like below:
> @EdmFunctionImport(name = "checkATX", returnType = @ReturnType(type = Type.SIMPLE, isCollection = false), httpMethod = HttpMethod.POST)
> public String checkATX(@EdmFunctionImportParameter(name = "json") final String json) {
> return "checkATX";
> }
> Postman call the function import like this (By Chrome):
> http://localhost:8080/test/odata.svc/checkATX?$format=json
> content-Type: application/json
> raw data:
> {"json": "{\"name\":\"odata\"}"}
> Error Message:
> “Messing Parameter”.
>
> The version I use is OData2 2.0.0, and the extension is JPA. Do you have any good solution or suggestion for this issue?
>
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)