Custom services

Custom services are programming models through which a developer can convert the X++ business logic into a service. Using this model, any existing X++ code can be exposed as a custom service simply by adding an attribute to it. There are standard attributes that can be set on the data contract class and methods to automatically serialize and deserialize data that is sent and received.

 In Dynamics 365 for Finance and Operations, the custom service programming model supports SOAP and JSON endpoints. Custom services are always deployed on two endpoints; the following table shows the endpoint URIs:

Type

Endpoint URI

SOAP endpoint

https://<host_uri>/soap/Services/<service_group_name>

JSON endpoint

https://<host_uri>/api/Services/<service_group_name>/<service_group_service_name>/<operation_name>

 

Most of the custom services that are available out of the box in Dynamics 365 for Finance and Operations are system services that are utilized for internal application processes or integration with various components, such as DIXF, retail, and warehouse web application. There are various functional services available, for example, FormLetter services and financialDimensions services, which can be used for third-party integration scenarios.

The following bullet points summarize the custom services programming concepts in the Dynamics 365 for Finance and Operations application:

  • Custom services are based on the data contract defined by developers and the service contract can be controlled.
  • The existing business logic can be utilized and exposed as a service.
  • Custom services are good for simple requirements, which are not otherwise easy to achieve using data entities.
  • Custom services are best suited for an action to be triggered by third-party applications, such as PO receiving/posting and packing slips.
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.220.219.33