<html>
<head>
<title>pysimplesoap and visual basic</title>
<link rel="important stylesheet" href="chrome://messagebody/skin/messageBody.css">
</head>
<body>
<table border=0 cellspacing=0 cellpadding=0 width="100%" class="header-part1"><tr><td><div class="headerdisplayname" style="display:inline;">Subject: </div>pysimplesoap and visual basic</td></tr><tr><td><div class="headerdisplayname" style="display:inline;">From: </div>brian herman <bherman@uniqueinsuranceco.com></td></tr><tr><td><div class="headerdisplayname" style="display:inline;">Date: </div>06/05/2015 10:23 AM</td></tr></table><table border=0 cellspacing=0 cellpadding=0 width="100%" class="header-part2"><tr><td><div class="headerdisplayname" style="display:inline;">To: </div>chicago@python.org</td></tr></table><br>
<div class="moz-text-html"  lang="x-unicode"><html>
  <head>

    <meta http-equiv="content-type" content="text/html; ">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    I have a python application that uses pysimplesoap to send a soap
    request to windows.<br>
    The problem is the password field is not encoded in UTF-8 it may use
    Windows-1252?<br>
    Python Code<br>
    <a class="moz-txt-link-freetext" href="https://gist.github.com/brianherman/209af7751444ec308e1b">https://gist.github.com/brianherman/209af7751444ec308e1b</a><br>
    Visual Basic Sample code (how to encode the password field in visual
    basic)<br>
    <a class="moz-txt-link-freetext" href="https://gist.github.com/brianherman/b4174b99be9000fcc4f8">https://gist.github.com/brianherman/b4174b99be9000fcc4f8</a><br>
    They use visual basic to encode the password which works. The
    problem is reproducing this in python<br>
    This is the encoded password:<br>
    <img src="imap://bherman%40uniqueinsuranceco%2Ecom@10.1.1.30:993/fetch%3EUID%3E.INBOX.Drafts%3E96?src=https://www.uniqueinsuranceco.com/wp-content/uploads/2015/02/UIC-Logo-Txt-Color2.png&w=176&h=&part=1.2&filename=bfjhgaii." alt=""><br>
    I have tried using the md5 package in python but I can't seem to get
    the encoding right.<br>
    <br>
    <div class="moz-signature">-- <br>
      <br>
      <div style="font-size:16px;"> Brian Herman<br>
        IT Department<br>
        O: (773)299-7557<br>
        <br>
        <a href="https://www.uniqueinsuranceco.com"> <img
            src="imap://bherman%40uniqueinsuranceco%2Ecom@10.1.1.30:993/fetch%3EUID%3E.INBOX.Drafts%3E96?src=https://www.uniqueinsuranceco.com/wp-content/uploads/2015/02/UIC-Logo-Txt-Color2.png&w=176&h=&part=1.3"
            alt="Unique Insurance Company" width="176"> </a><a><br>
          <br>
        </a><a href="http://www.reputation.com/kiosk?key=d41c9b57f18">We
          value your input, please click here to provide feedback on
          Unique Insurance.</a><a>
        </a></div>
    </div>
  </body>
</html>

</div></body>
</html>
</table></div>