Skip to content
simcha edited this page Sep 13, 2010 · 8 revisions

Install Mappum

  1. Install ruby 1.8.x end ruby gems
  2. Install mappum:
    1. Add gemcutter as gem source, if you haven’t already:
      1. gem install gemcutter
      2. gem tumble
    2. Install the gem: gem install mappum

Run sample server

  1. Enter sample/server subdirectory and run ./mapserver.sh or ruby ../../bin/server.rb
  2. Visit localhost:9292
  3. Paste contents of sample/person_fixture.xml to the text area on the page. And see example mapping in the works.
  4. Use your favorite soap client (soapUI) to generate client at http://localhost:9292/transform-ws.wsdl

Run real server

  1. Create workdir for your project
    1. mkdir map
    2. mkdir schema
  2. Copy XSD schemas to schema folder.
  3. You can run mapserver.rb provided gems/bin folder is in your PATH
    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