Skip to Content.
Sympa Menu

mace-opensaml-users - Re: [OpenSAML] how to insert an xmlobject into xml

Subject: OpenSAML user discussion

List archive

Re: [OpenSAML] how to insert an xmlobject into xml


Chronological Thread 
  • From: owen nirvana <>
  • To:
  • Subject: Re: [OpenSAML] how to insert an xmlobject into xml
  • Date: Tue, 13 Apr 2010 21:28:03 +0800
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; b=qcAp09tWYwubl2MRkDvs5W4qeKDHru7C4P276TAOD7czdi94VkIzMsSIK1pMS3h/zI oIr+N/m3izSlndlXodiFEFNsguHZoqnmC81LlYDrXfvnvCqHuSwnVvndB3kuFZ7MwzCa J/bGSrGheyzJr+a8ZC+eYoIFDAMRSC+EldwZ0=

I try, and Is AbstracSAMLObjectMarshaller not a marshaller for saml object?
 InsertBefore, adopt, append, whatever, I can't



On Mon, Apr 12, 2010 at 1:37 AM, Chad La Joie <> wrote:
Have you looked at the marshalling API?  It has a method that does this.

On 4/11/10 1:02 PM, owen nirvana wrote:
>  I want create an assertion and insert into xml like soap message org
> wss header in soap message
>
> the following is my code:
>
> docBuilder = DocumentBuilderFactory.newInstance().newDocumentBuilder();
> Document doc = docBuilder.parse(...); // doc is ok
>
> Assertion assertion = createAssertion(...); // assertion is ok
>
> AssertionMarshaller marshaller = new AssertionMarshaller();
> Element elment = marshaller.marshall(assertion);
>
> XMLHelper.adoptElement(element, doc);
> XMLHelper.prettyPrintXML(doc);
>
> but , doc is still the original xml document.
>
> thanks for help.
>
> <mailto:>

--
Chad La Joie
www.itumi.biz
trusted identities, delivered




Archive powered by MHonArc 2.6.16.

Top of Page