Advertisement
Guest User

Untitled

a guest
Apr 24th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.72 KB | None | 0 0
  1.  username = il_mio('username')
  2.  password = la_mia('password')
  3.  
  4. base64string = base64.encodestring('%s:%s' % (username, password)).replace('\n', '')
  5. authenticationHeader = {
  6.   "SOAPAction": "",
  7.   "Authorization": "Basic %s" % base64string
  8. }
  9.  
  10. cliente=Client(wsdl_url, headers=authenticationHeader)
  11.  
  12. var = dict(utenteApplicativo=username,
  13.                carrello=dict(
  14.                    idCarrello=id_carrello,
  15.                    itemCarrello=dict(
  16.                        causale=causale,
  17.                        codiceEnte=cod_ente,
  18.                        importo=importo,
  19.                        importoUnitario=imp_u,
  20.                        quantitaItem=quantita,
  21.                    )
  22.                )
  23.             )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement