[ 
https://issues.apache.org/jira/browse/OLINGO-297?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14007213#comment-14007213
 ] 

Stephan Klevenz commented on OLINGO-297:
----------------------------------------

This seems something which was introduced later to the spec. I am not sure if 
this really is a feature of OData 2.0. At odata.org the documentation of OData 
2.0 points to the same documents as for OData 3.0. The introduction of linked 
spec is saying: "This document defines version 1.0, version 2.0, and version 
3.0 of the Open Data (OData) protocol. "

So please let me first check with odata.org if this about 2.0 or 3.0. In any 
case I would categorize this as an feature request.

Thanks for pointing this out.


> 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)

Reply via email to