addNamespace("b", "urn:beanz");
addNamespace("xsi", SOAPConstants.XSI_NS);
context = new AegisContext();
// create a different mapping than the context creates.
TypeMapping baseMapping = DefaultTypeMapping.createSoap11TypeMapping(true, false, false);
mapping = new DefaultTypeMapping(SOAPConstants.XSD, baseMapping);
mapping.register(XMLStreamReader.class,
new QName("urn:Bean", "SimpleBean"), new XMLStreamReaderType());
mapping.setTypeCreator(context.createTypeCreator());
context.setTypeMapping(mapping);