Signing SOAP messages using X.509 certificate from WCF service to Java webservice
OK. After few tries and errors here is the solution using SignedXml and IClientMessageInspector/BeforeSendRequest pattern. Thanks a lot to Yaron Naveh for his relevant suggestions. // Sign an XML request and return it public static string SignRequest(string request, string SubjectName, string Signature, string keyInfoRefId) { if (string.IsNullOrEmpty(request)) throw new ArgumentNullException(“request”); if (string.IsNullOrEmpty(SubjectName)) throw new ArgumentNullException(“SubjectName”); … Read more