Stub Generation

Generating Publisher API stubs in PowerDesigner can accelerate feed handler development.

PowerDesigner extended generation facilities let you generate stub code for publishing a RAP message. The stub code provides an example of how to use the Publisher API to publish a method.

Stub code is written in C, and includes:
  • A main() method that calls:
    • The pub_initialize method
    • The method that publishes the message
    • The pub_shutdown method
  • A method to publish one message type

Developers can use the generated code as a basis for their own feed handlers by defining the start-up structure, adding error handling and logging, populating variables, and using other Publisher API methods to achieve desired processing.

See all topics in Developers Guide > Application Development Using Publisher API Stubs.

Related tasks
Exporting a Single Message Definition
Exporting a Set of Message Definitions