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

Christian Amend reassigned OLINGO-297:
--------------------------------------

    Assignee: Christian Amend

> 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
>            Assignee: Christian Amend
>
> 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