{"action":"created","issue":{"url":"https://api.github.com/repos/FlightDataServices/soapfish/issues/29","repository_url":"https://api.github.com/repos/FlightDataServices/soapfish","labels_url":"https://api.github.com/repos/FlightDataServices/soapfish/issues/29/labels{/name}","comments_url":"https://api.github.com/repos/FlightDataServices/soapfish/issues/29/comments","events_url":"https://api.github.com/repos/FlightDataServices/soapfish/issues/29/events","html_url":"https://github.com/FlightDataServices/soapfish/issues/29","id":136025104,"number":29,"title":"wsdl2py — ValueError: Unicode strings with encoding declaration are not supported","user":{"login":"RealJTG","id":930399,"avatar_url":"https://avatars.githubusercontent.com/u/930399?v=3","gravatar_id":"","url":"https://api.github.com/users/RealJTG","html_url":"https://github.com/RealJTG","followers_url":"https://api.github.com/users/RealJTG/followers","following_url":"https://api.github.com/users/RealJTG/following{/other_user}","gists_url":"https://api.github.com/users/RealJTG/gists{/gist_id}","starred_url":"https://api.github.com/users/RealJTG/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RealJTG/subscriptions","organizations_url":"https://api.github.com/users/RealJTG/orgs","repos_url":"https://api.github.com/users/RealJTG/repos","events_url":"https://api.github.com/users/RealJTG/events{/privacy}","received_events_url":"https://api.github.com/users/RealJTG/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-02-24T10:58:08Z","updated_at":"2016-02-24T21:00:29Z","closed_at":null,"body":"```\r\n> wsdl2py.exe -c http://services.rs.ge/WayBillService/WayBillService.asmx?WSDL\r\nTraceback (most recent call last):\r\n  File \"D:\\repo\\rs.ge\\venv\\Scripts\\wsdl2py-script.py\", line 9, in <module>\r\n    load_entry_point('soapfish==0.6dev', 'console_scripts', 'wsdl2py')()\r\n  File \"D:\\repo\\rs.ge\\venv\\lib\\site-packages\\soapfish\\wsdl2py.py\", line 112, in main\r\n    code = generate_code_from_wsdl(xml, target, opt.use_wsa, cwd=cwd)\r\n  File \"D:\\repo\\rs.ge\\venv\\lib\\site-packages\\soapfish\\wsdl2py.py\", line 64, in generate_code_from_wsdl\r\n    xmlelement = etree.fromstring(xml)\r\n  File \"lxml.etree.pyx\", line 3103, in lxml.etree.fromstring (src\\lxml\\lxml.etree.c:70569)\r\n  File \"parser.pxi\", line 1823, in lxml.etree._parseMemoryDocument (src\\lxml\\lxml.etree.c:106368)\r\nValueError: Unicode strings with encoding declaration are not supported. Please use bytes input or XML fragments without declaration.\r\n```\r\nCan be fixed by adding `xml.encode(encoding)` at [wsdl2py.py#L64](https://github.com/FlightDataServices/soapfish/blob/a9f6c4c721d0dd22aa35d42f046d225cb1bbabb8/soapfish/wsdl2py.py#L64) but I'm not quite sure what's actually happening there, because if you save file locally and run `wsdl2py.exe -c WayBillService.wsdl` it works fine.\r\n\r\nJinja2==2.8\r\nMarkupSafe==0.23\r\nargparse==1.4.0\r\nlxml==3.4.4\r\npythonic-testcase==1.2.1\r\nrequests==2.9.1\r\nsix==1.10.0\r\nsoapfish==0.6dev\r\n"},"comment":{"url":"https://api.github.com/repos/FlightDataServices/soapfish/issues/comments/188451319","html_url":"https://github.com/FlightDataServices/soapfish/issues/29#issuecomment-188451319","issue_url":"https://api.github.com/repos/FlightDataServices/soapfish/issues/29","id":188451319,"user":{"login":"RealJTG","id":930399,"avatar_url":"https://avatars.githubusercontent.com/u/930399?v=3","gravatar_id":"","url":"https://api.github.com/users/RealJTG","html_url":"https://github.com/RealJTG","followers_url":"https://api.github.com/users/RealJTG/followers","following_url":"https://api.github.com/users/RealJTG/following{/other_user}","gists_url":"https://api.github.com/users/RealJTG/gists{/gist_id}","starred_url":"https://api.github.com/users/RealJTG/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RealJTG/subscriptions","organizations_url":"https://api.github.com/users/RealJTG/orgs","repos_url":"https://api.github.com/users/RealJTG/repos","events_url":"https://api.github.com/users/RealJTG/events{/privacy}","received_events_url":"https://api.github.com/users/RealJTG/received_events","type":"User","site_admin":false},"created_at":"2016-02-24T21:00:29Z","updated_at":"2016-02-24T21:00:29Z","body":"Done https://github.com/FelixSchwarz/soapfish/issues/82"}}