You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@olingo.apache.org by "Michael Bolz (JIRA)" <ji...@apache.org> on 2014/11/26 07:37:13 UTC

[jira] [Closed] (OLINGO-432) Issue about "POST" method of function import

     [ https://issues.apache.org/jira/browse/OLINGO-432?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Bolz closed OLINGO-432.
-------------------------------

> 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
>            Assignee: Michael Bolz
>            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)