Developing integration handlers

Prev Next

To create a new integration handler, there should be a few classes developed:

Integration handler contract class

This class determines parameters, which should be passed in the integration request. It should be a classic contract class. As an example, see the class Dox42TutorialIntegrationHandler_SalesInvoiceContract_SF developed for the sales invoice request.

Code snippet showing data contract attributes for invoice handling in C# programming.

Example Dox42TutorialIntegrationHandler_SalesInvoiceContract_SF

Integration handler class

This class contains the processing logic. It should implement the logic to run a report as well as any other processing logic needed. As an example, see the class Dox42TutorialIntegrationHandler_SalesInvoice_SF, developed for the sales invoice request.

  • The  Handler class should have Dox42IntegrationHandlerAttribute_SF attribute.

  • Code snippet showing Dox42 integration handler attributes and class definition.

    Handler class with Dox42IntegrationHandlerAttribute_SF attribute

    There should be a static handler method added which having Dox42IntegrationHandlerMethodAttribute_SF attribute with the integration handler contract class specified. This handler method must have a parameter of the class Dox42IntegrationHandlerDataContract_SF and return an object of the class Dox42IntegrationHandlerExecutionResult_SF.

    Code snippet demonstrating error handling and invoice processing in a programming context.Code snippet demonstrating invoice handling and error management in a software application.Code snippet demonstrating invoice printing and report generation in a programming context.