@staticmethod<EOL><INDENT>def _create_request(headers, body):<DEDENT>
envelope = OrderedDict()<EOL>for (namespace, alias) in Service.Namespaces.items():<EOL><INDENT>envelope['<STR_LIT>' + alias] = namespace<EOL><DEDENT>envelope['<STR_LIT>'] = headers<EOL>envelope['<STR_LIT>'] = body<EOL>return xmltodict.unparse({'<STR_LIT>': envelope}, encoding='<STR_LIT:utf-8>')<EOL>
Create the SOAP 1.2 Envelope
An ordered dictionary is required to ensure the same order is reflected in the XML, otherwise the
SOAP Body element would appear before the Header element.