-
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 end ruby gems
- Install mappum:
- Add gemcutter as gem source, if you haven’t already:
gem install gemcutter
gem tumble
- Install the gem:
gem install mappum
- Add gemcutter as gem source, if you haven’t already:
- Enter sample/server subdirectory and run
./mapserver.sh
orruby ../../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.
- Use your favorite soap client (soapUI) to generate client at http://localhost:9292/transform-ws.wsdl
- Create workdir for your project
mkdir map
mkdir schema
- Copy XSD schemas to schema folder.
- You can run
mapserver.rb
provided gems/bin folder is in your PATH- 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