Skip to content
simcha edited this page Sep 13, 2010 · 8 revisions
  1. Install ruby 1.8.x
  2. Install facets, soap4r and (optionally) libxml-ruby
    1. gem install facets soap4r libxml-ruby (on *nix systems use sudo)
  3. Download mappum here
  4. Enter sample/server subdirectory and run ./server.sh or ruby ../../bin/server.rb
  5. Visit localhost:9292
  6. Paste contents of sample/person_fixture.xml to the text area on the page. And see example mapping in the works.
  7. Create workdir for your project
    1. mkdir map
    2. mkdir schema
  8. Copy XSD schemas to schema folder.
  9. Optionally run {MAPPUM_INSTALL_DIR}/bin/server.rb and hit ctrl-c to stop it
    1. You got ruby classes for xsd files in workdir/tmp directory. Files ending on _mapping.rb and
      mapping_registry.rb are not interesting. Files <name_ofxsd>.rb contain ruby classes representing xml files. View them in case you miss some name from xml.
    2. Create map and save to workdir/map
      #Visit localhost:9292 via browser or call localhost:9292/transform from your program

Clone this wiki locally