You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@olingo.apache.org by "sam dai (JIRA)" <ji...@apache.org> on 2014/09/16 07:16:33 UTC

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

sam dai created OLINGO-432:
------------------------------

             Summary: 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
<https://mail.apptix.net/owa/redir.aspx?C=ZvJNM_rS4U-Wzyy2rvwWlGFkfb92pNFIVh
Vu7SKddiBGEGiijcF87Ak3AGaBP1DXMTFhu_fHbEo.&URL=http%3a%2f%2flocalhost%3a8080
%2ftest%2fodata.svc%2fcheckATX%3f%24format%3djson>
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)