我有一個公開此$metadata
一個WebService:
<?xml version="1.0" encoding="UTF-8" standalone="true"?>
<edmx:Edmx xmlns:edmx="http://schemas.microsoft.com/ado/2007/06/edmx" Version="1.0"> > <edmx:DataServices m:DataServiceVersion="1.0"
xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata">
<Schema xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata"
xmlns="http://schemas.microsoft.com/ado/2007/05/edm"
xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices"
Namespace="NAV">
<EntityType Name="PAsset">
<Key> <PropertyRef Name="No"/> </Key> <Property Name="No" Nullable="false" Type="Edm.String"/> <Property Name="Description"
Nullable="true" Type="Edm.String"/> <Property Name="Inactive"
Nullable="false" Type="Edm.Boolean"/> <Property Name="Insured"
Nullable="false" Type="Edm.Boolean"/> </EntityType>
<EntityType Name="PAssetsDepreciationBook">
<EntityType Name="PBankAPostGrp">
<EntityType Name="PCompany">
<EntityType Name="PCustomer">
可能獲得在C#aplication在此$metadata
的信息?
我有到服務工作的引用的應用程序,以及一些代碼我使用:
uriString中=的String.Format(「PAssetsDepreciationBook $過濾器= FA_No EQ '{0}' 」,cliente);
contex = new ServiceReference1.NAV(new Uri(serviceEndPoint)); contex.Credentials = CredentialCache.DefaultCredentials;
var customers = contex.Execute(new Uri(uriString,UriKind.Relative));
foreach(客戶中的變量c) 結果=結果+ c.Acquisition_Cost; } 返回結果;
這工作正常,但得到$metadata
沒有。