Signing XML message in SAP Business Connector

Dear All,

How can we sign an XML message in SAP Business Connector?

Right now I am using SAP BC service -, But when I send file to the other web server, there it is not able to decoding into US-ASCII format.

And also when I am verifying using service - for debugging purpose it is giving below signer info;

javax.crypto.BadPaddingException: Invalid PKCS#1 padding: encrypted message and modulus lengths do not match!

Can you please suggest me is it correct one to sign XML? If not what I can do?

Please help me.

Thanks and regards,