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

Archana Rai commented on OLINGO-1149:
-------------------------------------

Hi Daniel,

I am not able to simulate this issue.
I am trying on 2.0.8 version.

My metadata has function import defined:
<FunctionImport Name="AllUsedRoomIds" ReturnType="Collection(Edm.String)" 
m:HttpMethod="GET"/>

When I am calling a GET request with <url>/AllUsedRoomIds I am getting a 
collection :

<AllUsedRoomIds xmlns="http://schemas.microsoft.com/ado/2007/08/dataservices";>
<element>1</element>
<element>2</element>
<element>3</element>
</AllUsedRoomIds>

Can you please put some example for the failing scenario.

Thanks,
Archana

> Function Import should return collection of EDMSimpleType
> ---------------------------------------------------------
>
>                 Key: OLINGO-1149
>                 URL: https://issues.apache.org/jira/browse/OLINGO-1149
>             Project: Olingo
>          Issue Type: Bug
>    Affects Versions: V2 2.0.7
>            Reporter: Daniel Horvath
>
> Hello Colleagues,
> According to the OData V2 specifications function import should be allowed to 
> return collection of EDMSimpleType:
> * If defined in CSDL 1.1, CSDL 2.0, or CSDL 3.0, the Type of FunctionImport 
> ReturnType MUST be an EDMSimpleType, EntityType, or ComplexType that is in 
> scope or a collection of one of these in-scope types. In CSDL 1.0, the 
> ReturnType is a collection of either EDMSimpleType or EntityType.
> (From document: 
> https://winprotocoldoc.blob.core.windows.net/productionwindowsarchives/MC-CSDL/%5bMC-CSDL%5d.pdf,
>  Section: 2.1.16 FunctionImport ReturnType, Page 34)
> Currently it is not possible. (tested in Olingo 2.0.7)
> If you have further questions, please feel free to contact me.
> Best regards,
> Daniel



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to