Framework methods
The Dynamics GP service also provides several methods that help you work with the it.
Exceptions
Code that accesses the Dynamics GP service must be able to handle any exceptions that occur while methods are processed. Several methods are included in the Dynamics GP service that your application can use to retrieve information about an exception that occurred.
The exception information can be used to present a helpful error message to the user, explaining an issue such as a data validation exception. The information might also be used directly by the code to handle an error, such as retrying the web service call after a timeout exception. You will learn more about exceptions in Exceptions.
Policy
Policy allows the administrator of the Dynamics GP service to control how create, update, and delete or void operations are performed. The individual characteristics that can be controlled are called behaviors. For instance, the policy for the UpdateSalesOrder method has a behavior that can specify how quantity shortages are to be handled for the sales order document.
Your application that uses the Dynamics GP service must retrieve and use the appropriate policies when it calls methods that require them. The Dynamics GP service contains special web methods that retrieve policy information for the specified web methods. You will learn more about policy in Policy.