assertTrue(result.getQueryType().getNamespaceURI().equals("urn:QueryType"));
assertTrue(result.getQueryType().getLocalPart().equals("BookQuery"));
}
private void addDynamicTypeMappings(AxisEngine engine) throws Exception {
TypeMappingRegistry registry = engine.getTypeMappingRegistry();
TypeMapping mapping = registry.createTypeMapping();
addBeanMapping(mapping, "FindBooksQueryExpressionElement", FindBooksQueryExpressionElement.class);
addBeanMapping(mapping, "BookType", BookType.class);
addBeanMapping(mapping, "ResultListType", ResultListType.class);
addBeanMapping(mapping, "QueryResultType", QueryResultType.class);
addBeanMapping(mapping, "QueryResultElement", QueryResultElement.class);
registry.register("",mapping);
EngineConfiguration config = engine.getConfig();
config.writeEngineConfig(engine);
}