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

Vitali Yarmolik commented on OLINGO-297:
----------------------------------------

Hi Stephan,

Concerning the quote from the CSDL specification, I took it from CSDL 2.0 
specification which I had downloaded from Microsoft web site some time ago.
Concerning the quote from odata.org, it has been taken from OData 2.0 
documentation. You can also see that the mentioned URI 
(http://www.odata.org/documentation/odata-version-2-0/uri-conventions/) points 
to the 2.0 version.

Best Regards,
Vitali

> 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