Java OData 서비스가 있고 클라이언트가 Dotnet에 있습니다.메타 데이터 읽기 오류 CollectionKind 속성
Java 서비스에서 우리는 List [Long]을 선언했으며 Jen-Blog에 언급 된 메타 데이터를 읽으려고합니다. 우리는 오류가 발생합니다. 메타 데이터 자바 서비스의
: DOTNET 끝에
<EntityType Name="Products" Abstract="false">
<Property Name="ProductIdList" Type="Edm.Int64" Nullable="false" CollectionKind="Bag" />
</EntityType>
오류 :
The metadata document could not be read from the message content.
UnexpectedXmlAttribute : The attribute 'CollectionKind' was not expected in the given context. : (1, 183892)
Simple.OData.Client를 사용하고 이것이 내 해결 방법입니다. https://github.com/object/Simple.OData.Client/issues/75 – KoalaBear