Advertisement
Guest User

Untitled

a guest
Mar 11th, 2018
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.08 KB | None | 0 0
  1. //Query Via Webservice;
  2. TWSConnection = class(TComponent)
  3. private
  4. FHost: String;
  5. FPort: Integer;
  6. FUser: String;
  7. FPassword: String;
  8. FDatabase: String;
  9. FJSON: TJSONObject;
  10. FEncodedSQL: String;
  11. FStrings: TStrings;
  12. FWSURL: String;
  13. FEncodedResponse: String;
  14. FDecodedResponse: String;
  15. FHTTP: TNetHTTPClient;
  16. procedure ClearJSON;
  17. function JSONText(AJSON: TJSONObject): String;
  18. procedure ParsingText(AText: String);
  19. function JSONString(AJSON: TJSONObject; ATree: String): String;
  20. public
  21. constructor Create(AOwner: TComponent); override;
  22. destructor Destroy; override;
  23. function Connect: Boolean;
  24. published
  25. property Host: String read FHost write FHost;
  26. property Port: Integer read FPort write FPort;
  27. property User: String read FUser write FUser;
  28. property Password: String read FPassword write FPassword;
  29. property Database: String read FDatabase write FDatabase;
  30. property WSURL: String read FWSURL write FWSURL;
  31. end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement