forrestzhu / odata4j

Automatically exported from code.google.com/p/odata4j
0 stars 0 forks source link

Service Operations that have a 'void' return type throw a RuntimeException of "Edm-type not found: null" #91

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

1.  Host a OData Service that has a POST Service Operation with a void return 
type

   The example $metadata's function import 

<FunctionImport Name="TestServiceOp" m:HttpMethod="POST">
    <Parameter Name="testParam" Type="Edm.String" Mode="In"/>
</FunctionImport>

  **Notice no ReturnType' attribute is present in the   <FunctionImport/> element **

2.  Build your ODataConsumer and execute a request

What is the expected output? What do you see instead?

FunctionImport/Service Ops should be able to execute with void return types

What version of the product are you using? On what operating system?

0.5-SNAPSHOT

Please provide any additional information below.

I don't know how you guys want to handle this, maybe make the EdmxFormatParser 
aware of void return types for the EdmFunctionImport class.

Original issue reported on code.google.com by AffableB...@gmail.com on 9 Nov 2011 at 9:09

GoogleCodeExporter commented 8 years ago
This issue was closed by revision 4cd37e52957e.

Original comment by john.spurlock on 13 Nov 2011 at 8:46

GoogleCodeExporter commented 8 years ago

Original comment by john.spurlock on 13 Nov 2011 at 8:46