Added check for duplicate namespace definition in wsdl. Rewrote check for unused namespace in wsdl to use existing XQuery based functionality.