Skip to Content.
Sympa Menu

mace-opensaml-users - Re: [OpenSAML] Trouble encoding signed SOAP message

Subject: OpenSAML user discussion

List archive

Re: [OpenSAML] Trouble encoding signed SOAP message


Chronological Thread 
  • From: "Bleu Rubin" <>
  • To:
  • Subject: Re: [OpenSAML] Trouble encoding signed SOAP message
  • Date: Tue, 6 May 2008 08:48:10 -0700
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=xQgGWMztAmXexZT82hAd12wuMwGMbT+Ya9c2uEjy1XnmwmIbcQtncak4sjLhzoYzYucozFAfM4kWrO+S2z4w4/tZVfdeBXNR6alLgjS/X45GUgmIO2tkNOZg4auOUDxPA6itJFZuXWB5dBMOfk3lZb40mF/C8yXlb7RBKknFalQ=

I'll try one *bump* and then let it go.

Has anyone successfully signed a message using the HTTPSOAP11Encoder?
I can get it working if I do the SOAP encoding myself, and as stated,
I have successfully signed messages using the
HTTPRedirectDeflateEncoder, but I get "Unable to resolve namespace
prefix null found on element
{http://www.w3.org/2000/09/xmldsig#}Signature"; when attempting to sign
using the SOAP encoder.



On Sat, May 3, 2008 at 12:42 PM,
<>
wrote:
> I am using the org.opensaml.saml2.binding.encoding.HTTPSOAP11Encoder class
> to encode an ArtifactResolve request. Everything works fine if I don't try
> to sign the request, but I'm stuck on the following error when I try to
> sign it. I don't have any problems using similar code using the
> HTTPRedirectDeflateEncoder.
>
> this works (same credential)
> <code>
>
> messageContext.setOutboundSAMLMessageSigningCredential(getSigningCredential());
>
> HTTPRedirectDeflateEncoder encoder = new HTTPRedirectDeflateEncoder()
> encoder.encode(messageContext);
> </code>
>
> but this breaks:
>
> <code>
>
> messageContext.setOutboundSAMLMessageSigningCredential(getSigningCredential());
>
> HTTPSOAP11Encoder encoder = new HTTPSOAP11Encoder();
> encoder.encode(messageContext);
> </code>
>
> with this error:
>
> ERROR org.opensaml.xml.io.AbstractXMLObjectMarshaller - Unable to root
> namespaces of cached DOM element,
> {urn:oasis:names:tc:SAML:2.0:protocol}ArtifactResolve
> org.opensaml.xml.parse.XMLParserException: Unable to resolve namespace
> prefix null found on element {http://www.w3.org/2000/09/xmldsig#}Signature
> at
> org.opensaml.xml.util.XMLHelper.rootNamespaces(XMLHelper.java:893)
>
> Does anyone have any ideas why this is breaking in the
> BaseMessageEncoder.marshallMessage(BaseMessageEncoder.java:85) step?
>
> thanks,
> Bleu
>



Archive powered by MHonArc 2.6.16.

Top of Page