It's producing an empty reference URI as that's what you're supplying: sig.addDocument("", transforms, MessageDigestAlgorithm.ALGO_ID_DIGEST_SHA1);
Try adding the correct URI for the first argument here. Colm. On Fri, May 17, 2013 at 11:39 PM, David Yu <tsunbo...@gmail.com> wrote: > Dear Santuario developers, > I tried to sign the SAML request but I got the empty Reference URI. > The sample.xml that client sent me has <ds:Reference > URI="#_85a81f6ddcb407a62b980891e3507f13"> which matches the RequestID in > SAMLRequest. > However, when I try to sign the request, I get the empty Reference URI. > > Could someone show me how can I make it happen to create an non-empty > Reference URI? > > Attached please find the code SignRequest.java that I used to sign > request.xml. > sample.xml is the sample that client sent me and it has non-empty > Reference URI. > > Thank you > David > -- Colm O hEigeartaigh Talend Community Coder http://coders.talend.com