I am working with a service that expects the soap:Body element of the request to be deuplicated within the signature in and Object, like so:
------------------------------------------------------------------- <?xml version="1.0" encoding="UTF-8"?> <Envelope> <Header><Signature> <SignedInfo>[SignedInfoElements] <Reference URI="#LocalRef">[RefElements]</Reference> </SignedInfo> <SignatureValue>[SigValue]</SignatureValue> <Object Id="LocalRef"><soap:Body>[BodyElements]</soap:Body></Object> </Signature></Header> <soap:Body>[BodyElements]</soap:Body> </Envelope> ------------------------------------------------------------------------- When I try to create an ObjectContainer to add to the XMLSignature I get this exception: "org.apache.xml.security.exceptions.XMLSecurityException: Cannot create a {http://www.w3.org/2000/09/xmldsig#}Object from a {http://schemas.xmlsoap.org/soap/envelope/}Body element" Am I going about this the wrong way? Any advice would be most appreciated. -peter