EDIINT - retrieving inbound signing certificate

As part of an upcoming project we have a need to not just verify the signature of an incoming EDIINT document, but extract the signing certificate that is sent.

We would then be verifying this certificate against a Certificate Revocation List and its CA and Root against an ARL.

I know that the signature should actually be included but not sure how to extract it.
Thanks,
Todd Jordan