wsdapi: Store discovered namespaces and write xmlns attributes for them.