Yeah, definitely the same issue, but I'm not sure why.
My first example basically says "Sign the content referred to by this
particular ID." It failed because the ID in question wasn't a "real" XML
ID.
My second example says "Wrap the content in a container, assign this
particular ID to the container and sign the container." I'm not sure why
it's failing. ObjectContainer belongs to Santuario and a quick look at the
source confirms that it does what it's supposed to do:
public void setId(String Id) {
if (Id != null) {
this.constructionElement.setAttributeNS(null, Constants._ATT_ID,
Id);
this.constructionElement.setIdAttributeNS(null, Constants._ATT_ID,
true);
}
}
So I don't see how I could mess things up with:
objectContainer.setId("MyID");
...
signature.addDocument("#MyID", ...);
...which is why I'm lost on this one!
On Mon, Aug 20, 2012 at 5:03 PM, Cantor, Scott <[email protected]> wrote:
> On 8/20/12 5:00 PM, "Michael Bishop" <[email protected]> wrote:
> >
> >But now I'm having similar issues with enveloping signatures:
>
> Well, it's the same issue.
>
> >container.setId("MyGivenID");
>
> I would presume that that method is not doing the right thing, but that's
> just me guessing.
>
> -- scott
>
>