Hi,
Because the permissions error occurs?.
------Table-------
namespace p1009225trial.server.CDS_test.Ejemplo1;
@Schema : '_SYS_BIC'
context PEDIDOS
{
type Name : String(80);
entity tb_pedidos {
key id : Integer;
producto : Name;
descripcion : Name;
};
view V_PEDIDOS as select from tb_pedidos {
producto,
descripcion
};
};
-------Service---------
service {
"p1009225trial.server.CDS_test.Ejemplo1::PEDIDOS.V_PEDIDOS" // Table or View
as "vista" // Optional entity alias
key generate local "id" // Optional key relevant for view
;
}
Error
-------Test ODATA-------
This XML file does not appear to have any style information associated with it. The document tree is shown below.
<error xmlns="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata">
<code/>
<message xml:lang="en-US">Service exception: insufficient privilege.</message>
<innererror>
<exception>
exception 1: no.71000258 (ptime/query/checker/query_check.cc:2422) Not authorized NO exception throw location recorded. Stack generation suppressed.
</exception>
</innererror>
</error>