C/SIDE Solution Development in Microsoft Dynamics
®
NAV 2013
All basic page operations are atomic. This means that either all relevant records
are affected or no records are affected, even if there was a faulty condition in only
one record.
Note: Only those methods that match the operations a user can do in the
RoleTailored client are actually present on each page web service. For example, if
page has the ModifyAllowed property set to No, then the Update and
UpdateMultiple operations are not available in the web service.
Extension Codeunits
For SOAP services, you can also use extension codeunits to extend the default set
of operations that are available on a page. Adding an extension codeunit to a
page is useful if you want to perform operations other than the standard Create,
Read, Update, and Delete operations. The benefit of adding an extension codeunit
to a page is that you can make the web service complete by adding operations
that are logical to that service. Those operations can use the same object
identification principle as the basic page operation.
When extending a page web service by using an extension codeunit, you must
create a new web service record that has the same name as the name of the page
web service that you are extending. Do not select the Published check box.
When you configure an extension codeunit for a page web service, add only those
functions as operations to the web service that have the first parameter set to the
Record data type, and the subtype equal to the source table of the page.
OData Web Services
The OData standard is good for web service applications that require a uniform,
flexible, general purpose interface for exposing retrieve operations on a tabular
data model to clients. OData supports Representational State Transfer (REST)
based data services, which enable resources that are identified by using Uniform
Resource Identifiers (URIs). They are defined in an abstract data model (EDM), and
published within corporate networks and across the Internet by using simple
Hypertext Transfer Protocol (HTTP) messages. OData services are lightweight with
functionality that is frequently referenced directly in the URI.
Microsoft .NET Framework 4.0 was improved with WCF Data Services, which
implement all the non-NAV specific parts of the OData stack. Visual Studio service
references understand OData services and can generate EDM-based proxies. This
enables the developer to use LINQ to write the data access logic.
11 - 8
Microsoft Official Training Materials for Microsoft Dynamics ®
Your use of this content is subject to your current services agreement