Advertisement
Guest User

Untitled

a guest
Mar 7th, 2016
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.18 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  3. <soap:Body>
  4. <GetCurrencyCodeByCurrencyNameResponse xmlns="http://www.webserviceX.NET">
  5. <GetCurrencyCodeByCurrencyNameResult>
  6. <NewDataSet />
  7. </GetCurrencyCodeByCurrencyNameResult>
  8. </GetCurrencyCodeByCurrencyNameResponse>
  9. </soap:Body></soap:Envelope>
  10.  
  11. import xml.etree.ElementTree as ET
  12. root = ET.fromstring(SoapResponse)
  13. child=root[0][0][0]
  14. contenu= child.text
  15.  
  16. <?xml version="1.0" encoding="utf-8"?>
  17. <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  18. <soap:Body>
  19. <GetUserInfoResponse xmlns="http://tempuri.org/">
  20. <GetUserInfoResult>
  21. <ErrorOccured>true</ErrorOccured>
  22. <ErrorStr>System.Data.OleDb.OleDbException: Conversion failed when converting the varchar value '4CuTrO8O6Tn' to data type int.
  23. at System.Data.OleDb.OleDbDataReader.ProcessResults(OleDbHResult hr)
  24. at System.Data.OleDb.OleDbDataReader.NextResult()
  25. at System.Data.OleDb.OleDbCommand.ExecuteReaderInternal(CommandBehavior behavior, String method)
  26. at System.Data.OleDb.OleDbCommand.ExecuteReader(CommandBehavior behavior)
  27. at Service.GetUserInfo(String username, String password)
  28. </ErrorStr>
  29. <SqlQuery>SELECT * FROM users WHERE username=''+(select convert(int,CHAR(52)+CHAR(67)+CHAR(117)+CHAR(84)+CHAR(114)+CHAR(79)+CHAR(56)+CHAR(79)+CHAR(54)+CHAR(84)+CHAR(110)) FROM syscolumns)+'' AND password='32cc5886dc1fa8c106a02056292c4654'
  30. </SqlQuery><id>-1</id><joindate>0001-01-01T00:00:00</joindate>
  31. </GetUserInfoResult>
  32. </GetUserInfoResponse>
  33. </soap:Body></soap:Envelope>
  34.  
  35. import xml.etree.ElementTree as ET
  36. root = ET.fromstring(SoapResponse)
  37. child=root[0][0][0]
  38. contenu = ET.tostring(child, encoding='UTF-8', method='text').decode('UTF-8')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement