#!/usr/bin/python import OWS import logging import OWSExceptions logging.basicConfig(level=logging.DEBUG) try: service = OWS.getService() service.performRequest() except OWSExceptions.OWSException,e: e.toXml()