Detect soap version on wsdl generation

During the wsdl generation, the soap version is detected from the
xml.