[
https://issues.apache.org/jira/browse/OLINGO-297?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14008651#comment-14008651
]
Stephan Klevenz commented on OLINGO-297:
----------------------------------------
Vitali,
I did get a clarification on OData mailing list. With V3 also the V2
specification did get some corrections which are currently not considered in
Olingo. So your finding is correct and Olingo keeps it as a valid feature
request.
Please give us some time for implementing this. A contribution to get this done
is also welcome.
Greetings,
Stephan
> Unable to create FunctionImport with empty return type
> ------------------------------------------------------
>
> Key: OLINGO-297
> URL: https://issues.apache.org/jira/browse/OLINGO-297
> Project: Olingo
> Issue Type: New Feature
> Components: odata2-core
> Affects Versions: V2 1.2.0
> Reporter: Vitali Yarmolik
>
> It is impossible to create a FunctionImport with empty return type.
> In the CSDL specification it's stated that {quote}<FunctionImport> *can*
> define a ReturnType.{quote}
> At odata.org it is mentioned as well in _3.3. Addressing Service Operations_
> section at
> http://www.odata.org/documentation/odata-version-2-0/uri-conventions/ :
> {quote}A Service Operation can accept primitive type input parameters and can
> be defined to return a single primitive, single complex type, collection of
> primitives, collection of complex types, a single Entry, a Collection of
> Entries, or *void*.{quote}
> When I create a FunctionImport object in the EdmProvider and don't specify
> its ReturnType it is shown correctly in the service metadata (i.e. without
> ReturnType attribute), but when I send request to call such a function import
> I get NullPointerException when ReturnType.getTypeName() method is called in
> EdmFunctionImportImplProv.getReturnType() method.
--
This message was sent by Atlassian JIRA
(v6.2#6252)