-
Notifications
You must be signed in to change notification settings - Fork 0
HowtoUseMapServer
simcha edited this page Sep 13, 2010
·
8 revisions
- Install ruby 1.8.x
- Install facets, soap4r and (optionally) libxml-ruby
-
gem install facets soap4r libxml-ruby(on *nix systems use sudo)
-
- Download mappum here
- Enter sample/server subdirectory and run
./server.shorruby ../../bin/server.rb - Visit localhost:9292
- Paste contents of sample/person_fixture.xml to the text area on the page. And see example mapping in the works.
- Create workdir for your project
mkdir mapmkdir schema
- Copy XSD schemas to schema folder.
- Optionally run
{MAPPUM_INSTALL_DIR}/bin/server.rband hit ctrl-c to stop it- 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. - Create map and save to workdir/map
#Visit localhost:9292 via browser or call localhost:9292/transform from your program
- You got ruby classes for xsd files in workdir/tmp directory. Files ending on _mapping.rb and