Past EED rants


Live leaderboard

Poker leaderboard

Voice of EED

Friday 27 March 2009

Using altova schema agent 2009 with apache 2.2

Unashamedly geek post this. I my role as a data architect, I’ve been playing with Altova Schema Agent to manage XML schemas & WSDLs. Here’s the best way I’ve found to set things up for local development purposes:

The first problem you’ll notice is that you can’t just throw a bunch of files at it. It’ll load your schemas & WSDLs OK, but will also try & resolve and any imports etc, so you’re left with a bunch of un-resolvable imports, if your namespaces don’t resolve to a real world interwebs address, which most don’t.So, you’ll have to serve the schemas up locally using something good like Apache 2.2. Installing it is trivial, so I won’t go into that, but you’ll need to make some changes to the configuration file httpd.conf.

Turn on WebDAV

So schema agent can traverse all your schemas, you’ll need to turn on WebDAV in Apache.LoadModule dav_module modules/
LoadModule dav_lock_module modules/
and add LoadModule dav_fs_module

Point Apache At Your Schemas

Assuming your schemas are just served up off the root of your local apache, you’ll need to set the document root, say

DocumentRoot "D:\www\myschemas"

Configure Access

Then you’ll need a Directory tag to specify that WebDAV should be turned on

<Directory D:\www\myschemas">
Options Indexes FollowSymLinks
AllowOverride None
Dav On
Order allow,deny
Allow from all
Require valid-user

Dav On turns on WebDAV for that folder and the LimitExcept tag will disallow all HTTP operations except those listed, so you can turn on write access if you need it too. This can be useful as Schema Agent integrates with XMLSpy so you can browse & edit schemas directly from Schema Agent.


…and Bob’s yer uncle!



Post a Comment