Skip to Content.
Sympa Menu

mace-opensaml-users - Re: How to parse metadata.xml file

Subject: OpenSAML user discussion

List archive

Re: How to parse metadata.xml file


Chronological Thread 
  • From: "Rod Widdowson" <>
  • To: <>
  • Subject: Re: How to parse metadata.xml file
  • Date: Wed, 26 Sep 2007 10:06:26 +0100

I've updated the wiki, but FYI the code has moved on slightly since that document was written. 
 
The best way to proceed when that happens is to look at the unit tests and see what they now do:

So, looking in

org.opensaml.common.BaseTestCase we see

try{

     TestBootstrap.bootstrap();

}catch(ConfigurationException e){

    fail(e.getMessage());

}

parser = new BasicParserPool();
parser
.setNamespaceAware(true);
builderFactory
= Configuration.getBuilderFactory();
marshallerFactory
= Configuration.getMarshallerFactory();
unmarshallerFactory
= Configuration.getUnmarshallerFactory();

You can obviously not use TestBootstrap - so use DefaultBootstrap. 

The Discovery service (kept in the svn-repository java-wayf) has another example, which includes adding support for new elements.

Rod




Archive powered by MHonArc 2.6.16.

Top of Page