def wrap(self, body): payload = u'<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" '\ u'xmlns:ns1="http://www.marketo.com/mktows/"> ' \ u'<SOAP-ENV:Header> ' \ u'{header} ' \ u'</SOAP-ENV:Header> ' \ u'<SOAP-ENV:Body> ' \ u'{body} ' \ u'</SOAP-ENV:Body> ' \ u'</SOAP-ENV:Envelope> '.format( header=auth.header(self.user_id, self.encryption_key), body=body ) return payload
def wrap(self, body): return ( '<?xml version="1.0" encoding="UTF-8"?>' + '<env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" ' + 'xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ' + 'xmlns:wsdl="http://www.marketo.com/mktows/" ' + 'xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" ' + 'xmlns:ins0="http://www.marketo.com/mktows/" ' + 'xmlns:ns1="http://www.marketo.com/mktows/">' + auth.header(self.user_id, self.encryption_key) + '<env:Body>' + body + '</env:Body>' + '</env:Envelope>')
def wrap(self, body): return u'<env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" ' \ u'xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ' \ u'xmlns:wsdl="http://www.marketo.com/mktows/" ' \ u'xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" ' \ u'xmlns:ins0="http://www.marketo.com/mktows/" ' \ u'xmlns:ns1="http://www.marketo.com/mktows/" ' \ u'xmlns:mkt="http://www.marketo.com/mktows/">' \ u'{header}' \ u'<env:Body>' \ u'{body}' \ u'</env:Body>' \ u'</env:Envelope>'.format(header=auth.header(self.user_id, self.encryption_key), body=body)
def wrap(self, body): return ( '<?xml version="1.0" encoding="UTF-8"?>' + '<env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" ' + 'xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ' + 'xmlns:wsdl="http://www.marketo.com/mktows/" ' + 'xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" ' + 'xmlns:ins0="http://www.marketo.com/mktows/" ' + 'xmlns:ns1="http://www.marketo.com/mktows/" ' + 'xmlns:mkt="http://www.marketo.com/mktows/">' + auth.header(self.user_id, self.encryption_key) + '<env:Body>' + body + '</env:Body>' + '</env:Envelope>')