Please start by describing the target integration you would like to implement because there are several ways to do it depending on the context.
If it is in the dcm4chee IU, follow the instructions
here. Knowing that there is currently a problem with the secure configuration (https), see this
topic.
If it is outside the dcm4chee IU, follow the instructions
here.
If you encounter errors, it is necessary to post detailed information (such as logs) to help someone respond.