UploadSignature
- Method
SlimCD.Images.UploadSignature
Purpose
Upload a signature image to the database.
Description
Stores a series of vectors on the SLIM CD server so they can be retrieved at a later date.Vectors are in hex. They can be in one of the four formats.
FileType = one of the following:“1” = SLIMCD
“2” = VERIFONE/INGENICO
“3” = HYPERCOM
“4” = IDTECHBusiness Rules
Argument List
Name Required Usage UploadSignatureRequest Required Object containing properties for the request timeout Optional Integer wait time, in seconds, before timeout response is generated callback* Optional Function to call upon completion of asynchronous request *for JavaScript only
UploadSignatureRequest Fields
Field Name Type Length Required Description UserName string 20 require Username or API Access Credential that accesses web service. Password string 20 require Plaintext password for the client account. SiteID integer 10 optional Assigned by the Slim CD administrator. GateID integer 12 require Gateway ID for previous transaction. FileType string varies require represents type of data ImageData string varies require base-64 encoded data for images, or text for receipts 1 Passwords are required except when the username is set to an API Access Credential, in which case it should be passed in as an empty string.
Reply Fields
reply outer tag for the reply data block response Success, FAIL, Error response code 0, 1, 2 (respective) matching the above description If successful, this will contain the single word, OK. Otherwise it will contain a description of failure or error which occurred . reponseurl The Slimcd.com url which was called for this operation . datablock The confirmation text returned from the server. Reply Hierarchy
- reply
- response
- responsecode
- description
- responseurl
- datablock
Remarks
- General
- Names in name/value pairs are NOT case-sensitive
- Names inside XML tags ARE case-sensitive
- Function-Specific
- None
- reply
- Include
012<script src="https://trans.slimcd.com/soft/json/slimcd.js"></script>
Method
12345function UploadSignature(request,callback)function UploadSignature(request,timeout,callback)
Request
1234567891011121314151617181920212223242526272829303132333435363738request= {"username": "1032","password": "289075","siteid": "228226448","gateid": "78022528","filetype": "1","imagedata": "030010D613508A6908A6908A6908A6908A6908A6908A6908B6908B6908B6908C6908C6908D6A08D6A08E6A08E6A08F6A0906A0916A0926A0926909369094690966809667098660996509A6409B6309C6209D6009D5F09E5E09F5D0A05B0A15A0A1580A2570A3550A3530A4510A5500A64E0A64C0A74A0A8490A8480A9460AA450AA440AB430AB420AB410AC400AC400AC400AB410AB410AB420AB430AA440A9450A9450A8470A8480A7490A64A0A64B0A54C0A44E0A34F0A3500A2510A2530A1540A05509F5709F5809E5909E5A09D5B09C5D09C5E09B5F09B6009A61099620996309865097660966709668095690946A0936B0926C0926D0916E0906F08F7108E7208D7208D7308C7408C7508B7608B7608A770897808978088790887A0877B0877B0867C0867C0857D0857D0847E0847E0837E0837E0837E0827E0827E0827E0817E0817E0807E0807F0807E0807E07F7E07F7E07F7E07F7E07E7E07E7E07E7E07E7E07F7D07F7D07F7C07F7C07F7B0807B0807A081790827808377084760867508774088730897208A7108B7108C7008C7008D7008D7008D7008D7008E7008E7008E7008E7108E7208E7208F7308F7308F7408F7508F75090760907709077091780917809278092790937909479095790967909679097780987809878099780997809A7809A7809A7809B7809B7809B7809B7809B7809A7009A7009A7009970099700997009871098710987109871098710987109871098710A5770A5770A5770A5780A4780A4780A4780A4780A4780A4780A5780A5780A6780A6780A7780A8770A9760AA750AB740AD720AE700B06E0B16C0B36A0B4680B5660B6640B8620B9600BA5F0BA5D0BB5C0BC5A0BC5A0BD590BD590BD590BD590BD590BC590BC5A0BB5B0BB5C0BA5E0B95F0B9600B8620B8630B7640B7650B7660B7660B7670B7680B7680B8690B8690B9690B9690BA690BB690BC680BD670BE660C0650C1630C2610C45F0C55D0C65C0C85A0C8590C9570CA570CA560CA560CA570C9580C85A0C75C0C55E0C3610C2640C1660C0690BF6B0BF6D0BF6F0C0700C1710C2710C3720C3720C3720C3720CB720CA720CA720CA720CA720CA720CA720CB720CC720CC710CE700CF6F0D16E0D26C0D46B0D5690D6670D8660D8640D9620DA600DB5E0DC5C0DD5A0DE580DE570DF550E0540E0520E0510E1510E1500E1500E0510E0510DF530DE540DC560DB590D95B0D85D0D65F0D5620D4640D2660D1690D06B0CF6C0CE6E0CD700CC710CC720CC730CC740CC750CC750CC750CD750CD760CE750CF750D0750D1740D2740D3730D5730D6720D7720D8710D9710DA710DB700DC700DC700DD700DE6F0DE6F0DF6F0DF6F0E06F0E0700E1700E26F0E36F0E46F0E56F0E66F0E76E0E76E0E86E0E86E0E96E0E96F0E96F0E96F0E96F0E9700E9700E9700EA700EA710EA700EB700EC700EE6F0F06D0F26C0F4690F6670F9640FB610FD5E0FF5A1025710354105511074E1084B1094910948109461094510945108451074510546103481004C0FC500F9540F55A0F25F0EF630ED680EA6C0E8700E7740E5770E47A0E37C0E27D0E17E0E17E0E17F0E17F0E27F0E27F0E37F0E57E0E67D0E97B0EB780EE750F2720F66E0FB69100651066010C5A112571175411D5112151125501274F1275012750"}
Reply
1234567891011callback ( {"reply":{"response": "Success","responsecode": "0","description": "Image uploaded for 78022528","responseurl": "http://stats.slimcd.com/wswebservices/images.asmx/UploadReceipt","datablock": null}} );
Sample Code
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849<script src="https://trans.slimcd.com/soft/json/slimcd.js"></script><script>// <![CDATA[SlimCD.Images.UploadSignature({"username": "1032","password": "289075","siteid": "228226448","gateid": "78022528","filetype": "1","imagedata": "030010D613508A6908A6908A6908A6908A6908A6908A6908B6908B6908B6908C6908C6908D6A08D6A08E6A08E6A08F6A0906A0916A0926A0926909369094690966809667098660996509A6409B6309C6209D6009D5F09E5E09F5D0A05B0A15A0A1580A2570A3550A3530A4510A5500A64E0A64C0A74A0A8490A8480A9460AA450AA440AB430AB420AB410AC400AC400AC400AB410AB410AB420AB430AA440A9450A9450A8470A8480A7490A64A0A64B0A54C0A44E0A34F0A3500A2510A2530A1540A05509F5709F5809E5909E5A09D5B09C5D09C5E09B5F09B6009A61099620996309865097660966709668095690946A0936B0926C0926D0916E0906F08F7108E7208D7208D7308C7408C7508B7608B7608A770897808978088790887A0877B0877B0867C0867C0857D0857D0847E0847E0837E0837E0837E0827E0827E0827E0817E0817E0807E0807F0807E0807E07F7E07F7E07F7E07F7E07E7E07E7E07E7E07E7E07F7D07F7D07F7C07F7C07F7B0807B0807A081790827808377084760867508774088730897208A7108B7108C7008C7008D7008D7008D7008D7008E7008E7008E7008E7108E7208E7208F7308F7308F7408F7508F75090760907709077091780917809278092790937909479095790967909679097780987809878099780997809A7809A7809A7809B7809B7809B7809B7809B7809A7009A7009A7009970099700997009871098710987109871098710987109871098710A5770A5770A5770A5780A4780A4780A4780A4780A4780A4780A5780A5780A6780A6780A7780A8770A9760AA750AB740AD720AE700B06E0B16C0B36A0B4680B5660B6640B8620B9600BA5F0BA5D0BB5C0BC5A0BC5A0BD590BD590BD590BD590BD590BC590BC5A0BB5B0BB5C0BA5E0B95F0B9600B8620B8630B7640B7650B7660B7660B7670B7680B7680B8690B8690B9690B9690BA690BB690BC680BD670BE660C0650C1630C2610C45F0C55D0C65C0C85A0C8590C9570CA570CA560CA560CA570C9580C85A0C75C0C55E0C3610C2640C1660C0690BF6B0BF6D0BF6F0C0700C1710C2710C3720C3720C3720C3720CB720CA720CA720CA720CA720CA720CA720CB720CC720CC710CE700CF6F0D16E0D26C0D46B0D5690D6670D8660D8640D9620DA600DB5E0DC5C0DD5A0DE580DE570DF550E0540E0520E0510E1510E1500E1500E0510E0510DF530DE540DC560DB590D95B0D85D0D65F0D5620D4640D2660D1690D06B0CF6C0CE6E0CD700CC710CC720CC730CC740CC750CC750CC750CD750CD760CE750CF750D0750D1740D2740D3730D5730D6720D7720D8710D9710DA710DB700DC700DC700DD700DE6F0DE6F0DF6F0DF6F0E06F0E0700E1700E26F0E36F0E46F0E56F0E66F0E76E0E76E0E86E0E86E0E96E0E96F0E96F0E96F0E96F0E9700E9700E9700EA700EA710EA700EB700EC700EE6F0F06D0F26C0F4690F6670F9640FB610FD5E0FF5A1025710354105511074E1084B1094910948109461094510945108451074510546103481004C0FC500F9540F55A0F25F0EF630ED680EA6C0E8700E7740E5770E47A0E37C0E27D0E17E0E17E0E17F0E17F0E27F0E27F0E37F0E57E0E67D0E97B0EB780EE750F2720F66E0FB69100651066010C5A112571175411D5112151125501274F1275012750"},function (reply) {if (reply.response == "Success") {alert ('Batch Closed');} else {alert('There was a problem closing the batch:\r\n' + reply.description);}});// ]]></script>
Downloads
- Include
012include 'slimcd.php';
Method
123function Images_UploadSignature(Images_UploadSignatureRequest $request,$timeout=false)Request
12345678910111213class Images_UploadSignatureRequest{// property declarationpublic $username = '';public $password = '';public $siteid=0;public $gateid=0;public $filetype='';public $imagedata='';}JSON Reply
123456789{"response": "Success","responsecode": "0","description": "Image uploaded for 78022528","responseurl": "http://stats.slimcd.com/wswebservices/images.asmx/UploadSignature","datablock": null}Sample Code
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152include 'slimcd.php';// Create the Slim CD object$SlimCD = new SlimCD() ;// Create a UploadSignature Request class$request = new Images_UploadSignatureRequest() ;$request->username = 'R6UT8C6M';$request->username = 1032;$request->password = 289075;$request->siteid = 228226448;$request->gateid = 78022528;$request->filetype = 1;$request->imagedata='030010D613508A6908A6908A6908A6908A6908A6908A6908B6908B6908B6908C6908C6908D6A08D6A08E6A08E6A08F6A0906A0916A0926A0926909369094690966809667098660996509A6409B6309C6209D6009D5F09E5E09F5D0A05B0A15A0A1580A2570A3550A3530A4510A5500A64E0A64C0A74A0A8490A8480A9460AA450AA440AB430AB420AB410AC400AC400AC400AB410AB410AB420AB430AA440A9450A9450A8470A8480A7490A64A0A64B0A54C0A44E0A34F0A3500A2510A2530A1540A05509F5709F5809E5909E5A09D5B09C5D09C5E09B5F09B6009A61099620996309865097660966709668095690946A0936B0926C0926D0916E0906F08F7108E7208D7208D7308C7408C7508B7608B7608A770897808978088790887A0877B0877B0867C0867C0857D0857D0847E0847E0837E0837E0837E0827E0827E0827E0817E0817E0807E0807F0807E0807E07F7E07F7E07F7E07F7E07E7E07E7E07E7E07E7E07F7D07F7D07F7C07F7C07F7B0807B0807A081790827808377084760867508774088730897208A7108B7108C7008C7008D7008D7008D7008D7008E7008E7008E7008E7108E7208E7208F7308F7308F7408F7508F75090760907709077091780917809278092790937909479095790967909679097780987809878099780997809A7809A7809A7809B7809B7809B7809B7809B7809A7009A7009A7009970099700997009871098710987109871098710987109871098710A5770A5770A5770A5780A4780A4780A4780A4780A4780A4780A5780A5780A6780A6780A7780A8770A9760AA750AB740AD720AE700B06E0B16C0B36A0B4680B5660B6640B8620B9600BA5F0BA5D0BB5C0BC5A0BC5A0BD590BD590BD590BD590BD590BC590BC5A0BB5B0BB5C0BA5E0B95F0B9600B8620B8630B7640B7650B7660B7660B7670B7680B7680B8690B8690B9690B9690BA690BB690BC680BD670BE660C0650C1630C2610C45F0C55D0C65C0C85A0C8590C9570CA570CA560CA560CA570C9580C85A0C75C0C55E0C3610C2640C1660C0690BF6B0BF6D0BF6F0C0700C1710C2710C3720C3720C3720C3720CB720CA720CA720CA720CA720CA720CA720CB720CC720CC710CE700CF6F0D16E0D26C0D46B0D5690D6670D8660D8640D9620DA600DB5E0DC5C0DD5A0DE580DE570DF550E0540E0520E0510E1510E1500E1500E0510E0510DF530DE540DC560DB590D95B0D85D0D65F0D5620D4640D2660D1690D06B0CF6C0CE6E0CD700CC710CC720CC730CC740CC750CC750CC750CD750CD760CE750CF750D0750D1740D2740D3730D5730D6720D7720D8710D9710DA710DB700DC700DC700DD700DE6F0DE6F0DF6F0DF6F0E06F0E0700E1700E26F0E36F0E46F0E56F0E66F0E76E0E76E0E86E0E86E0E96E0E96F0E96F0E96F0E96F0E9700E9700E9700EA700EA710EA700EB700EC700EE6F0F06D0F26C0F4690F6670F9640FB610FD5E0FF5A1025710354105511074E1084B1094910948109461094510945108451074510546103481004C0FC500F9540F55A0F25F0EF630ED680EA6C0E8700E7740E5770E47A0E37C0E27D0E17E0E17E0E17F0E17F0E27F0E27F0E37F0E57E0E67D0E97B0EB780EE750F2720F66E0FB69100651066010C5A112571175411D5112151125501274F1275012750';$result = $SlimCD->Images_UploadSignature($request);if ($result->response == 'Success') {echo 'Success!' ;}else {echo $result->response . ':' . $result->description ;}Downloads
- Include
123using SlimCD;
Method
123public UploadSignatureReply UploadSignature(UploadSignatureRequest request, int timeout);
Request
1234567891011public class UploadSignatureRequest{public string username { get; set; }public string password { get; set; }public int siteid { get; set; }public int gateid { get; set; }public string filetype { get; set; }public string imagedata { get; set; }}
Reply
123456789101112public class UploadSignatureReply{public string response;public string responsecode;public string description;public string responseurl;public string datablock;public string senddata;public string recvdata;}
Cross Reference: ClientSample Code
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748SlimCD.Images images = new SlimCD.Images();images.debug = true;images.transURL = TransURL;images.statsURL = StatsURL;UploadSignatureRequest request = new UploadSignatureRequest();UploadSignatureReply reply = new UploadSignatureReply();request.username = 1032;request.password = 289075;request.siteid = 228226448;request.gateid = 78022528;request.filetype = "1";request.imagedata = "030010D613508A6908A6908A6908A6908A6908A6908A6908B6908B6908B6908C6908C6908D6A08D6A08E6A08E6A08F6A0906A0916A0926A0926909369094690966809667098660996509A6409B6309C6209D6009D5F09E5E09F5D0A05B0A15A0A1580A2570A3550A3530A4510A5500A64E0A64C0A74A0A8490A8480A9460AA450AA440AB430AB420AB410AC400AC400AC400AB410AB410AB420AB430AA440A9450A9450A8470A8480A7490A64A0A64B0A54C0A44E0A34F0A3500A2510A2530A1540A05509F5709F5809E5909E5A09D5B09C5D09C5E09B5F09B6009A61099620996309865097660966709668095690946A0936B0926C0926D0916E0906F08F7108E7208D7208D7308C7408C7508B7608B7608A770897808978088790887A0877B0877B0867C0867C0857D0857D0847E0847E0837E0837E0837E0827E0827E0827E0817E0817E0807E0807F0807E0807E07F7E07F7E07F7E07F7E07E7E07E7E07E7E07E7E07F7D07F7D07F7C07F7C07F7B0807B0807A081790827808377084760867508774088730897208A7108B7108C7008C7008D7008D7008D7008D7008E7008E7008E7008E7108E7208E7208F7308F7308F7408F7508F75090760907709077091780917809278092790937909479095790967909679097780987809878099780997809A7809A7809A7809B7809B7809B7809B7809B7809A7009A7009A7009970099700997009871098710987109871098710987109871098710A5770A5770A5770A5780A4780A4780A4780A4780A4780A4780A5780A5780A6780A6780A7780A8770A9760AA750AB740AD720AE700B06E0B16C0B36A0B4680B5660B6640B8620B9600BA5F0BA5D0BB5C0BC5A0BC5A0BD590BD590BD590BD590BD590BC590BC5A0BB5B0BB5C0BA5E0B95F0B9600B8620B8630B7640B7650B7660B7660B7670B7680B7680B8690B8690B9690B9690BA690BB690BC680BD670BE660C0650C1630C2610C45F0C55D0C65C0C85A0C8590C9570CA570CA560CA560CA570C9580C85A0C75C0C55E0C3610C2640C1660C0690BF6B0BF6D0BF6F0C0700C1710C2710C3720C3720C3720C3720CB720CA720CA720CA720CA720CA720CA720CB720CC720CC710CE700CF6F0D16E0D26C0D46B0D5690D6670D8660D8640D9620DA600DB5E0DC5C0DD5A0DE580DE570DF550E0540E0520E0510E1510E1500E1500E0510E0510DF530DE540DC560DB590D95B0D85D0D65F0D5620D4640D2660D1690D06B0CF6C0CE6E0CD700CC710CC720CC730CC740CC750CC750CC750CD750CD760CE750CF750D0750D1740D2740D3730D5730D6720D7720D8710D9710DA710DB700DC700DC700DD700DE6F0DE6F0DF6F0DF6F0E06F0E0700E1700E26F0E36F0E46F0E56F0E66F0E76E0E76E0E86E0E86E0E96E0E96F0E96F0E96F0E96F0E9700E9700E9700EA700EA710EA700EB700EC700EE6F0F06D0F26C0F4690F6670F9640FB610FD5E0FF5A1025710354105511074E1084B1094910948109461094510945108451074510546103481004C0FC500F9540F55A0F25F0EF630ED680EA6C0E8700E7740E5770E47A0E37C0E27D0E17E0E17E0E17F0E17F0E27F0E27F0E37F0E57E0E67D0E97B0EB780EE750F2720F66E0FB69100651066010C5A112571175411D5112151125501274F1275012750";reply = images.UploadSignature(request, 60);if (reply.response.ToUpper() == "SUCCESS"){MessageBox.Show("Success");}else{MessageBox.Show("There was a problem:\n(" + reply.response & ") " + reply.description);}Downloads
Download full sample source. - Include
123using SlimCD;
Method
012public async Task UploadSignature(UploadSignatureRequest request, int timeout);
Request
1234567891011public class UploadSignatureRequest{public string username { get; set; }public string password { get; set; }public int siteid { get; set; }public int gateid { get; set; }public string filetype { get; set; }public string imagedata { get; set; }}
Reply
123456789101112public class UploadSignatureReply{public string response;public string responsecode;public string description;public string responseurl;public string datablock;public string senddata;public string recvdata;}
Cross Reference: ClientSample Code
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849SlimCD.Images images = new SlimCD.Images();images.debug = true;images.transURL = TransURL;images.statsURL = StatsURL;UploadSignatureRequest request = new UploadSignatureRequest();UploadSignatureReply reply = new UploadSignatureReply();request.username = 1032;request.password = 289075;request.siteid = 228226448;request.gateid = 78022528;request.filetype = "1";request.imagedata = "030010D613508A6908A6908A6908A6908A6908A6908A6908B6908B6908B6908C6908C6908D6A08D6A08E6A08E6A08F6A0906A0916A0926A0926909369094690966809667098660996509A6409B6309C6209D6009D5F09E5E09F5D0A05B0A15A0A1580A2570A3550A3530A4510A5500A64E0A64C0A74A0A8490A8480A9460AA450AA440AB430AB420AB410AC400AC400AC400AB410AB410AB420AB430AA440A9450A9450A8470A8480A7490A64A0A64B0A54C0A44E0A34F0A3500A2510A2530A1540A05509F5709F5809E5909E5A09D5B09C5D09C5E09B5F09B6009A61099620996309865097660966709668095690946A0936B0926C0926D0916E0906F08F7108E7208D7208D7308C7408C7508B7608B7608A770897808978088790887A0877B0877B0867C0867C0857D0857D0847E0847E0837E0837E0837E0827E0827E0827E0817E0817E0807E0807F0807E0807E07F7E07F7E07F7E07F7E07E7E07E7E07E7E07E7E07F7D07F7D07F7C07F7C07F7B0807B0807A081790827808377084760867508774088730897208A7108B7108C7008C7008D7008D7008D7008D7008E7008E7008E7008E7108E7208E7208F7308F7308F7408F7508F75090760907709077091780917809278092790937909479095790967909679097780987809878099780997809A7809A7809A7809B7809B7809B7809B7809B7809A7009A7009A7009970099700997009871098710987109871098710987109871098710A5770A5770A5770A5780A4780A4780A4780A4780A4780A4780A5780A5780A6780A6780A7780A8770A9760AA750AB740AD720AE700B06E0B16C0B36A0B4680B5660B6640B8620B9600BA5F0BA5D0BB5C0BC5A0BC5A0BD590BD590BD590BD590BD590BC590BC5A0BB5B0BB5C0BA5E0B95F0B9600B8620B8630B7640B7650B7660B7660B7670B7680B7680B8690B8690B9690B9690BA690BB690BC680BD670BE660C0650C1630C2610C45F0C55D0C65C0C85A0C8590C9570CA570CA560CA560CA570C9580C85A0C75C0C55E0C3610C2640C1660C0690BF6B0BF6D0BF6F0C0700C1710C2710C3720C3720C3720C3720CB720CA720CA720CA720CA720CA720CA720CB720CC720CC710CE700CF6F0D16E0D26C0D46B0D5690D6670D8660D8640D9620DA600DB5E0DC5C0DD5A0DE580DE570DF550E0540E0520E0510E1510E1500E1500E0510E0510DF530DE540DC560DB590D95B0D85D0D65F0D5620D4640D2660D1690D06B0CF6C0CE6E0CD700CC710CC720CC730CC740CC750CC750CC750CD750CD760CE750CF750D0750D1740D2740D3730D5730D6720D7720D8710D9710DA710DB700DC700DC700DD700DE6F0DE6F0DF6F0DF6F0E06F0E0700E1700E26F0E36F0E46F0E56F0E66F0E76E0E76E0E86E0E86E0E96E0E96F0E96F0E96F0E96F0E9700E9700E9700EA700EA710EA700EB700EC700EE6F0F06D0F26C0F4690F6670F9640FB610FD5E0FF5A1025710354105511074E1084B1094910948109461094510945108451074510546103481004C0FC500F9540F55A0F25F0EF630ED680EA6C0E8700E7740E5770E47A0E37C0E27D0E17E0E17E0E17F0E17F0E27F0E27F0E37F0E57E0E67D0E97B0EB780EE750F2720F66E0FB69100651066010C5A112571175411D5112151125501274F1275012750";reply = await images.UploadSignature(request, 60);if (reply.response.ToUpper() == "SUCCESS"){MessageBox.Show("Success");}else{MessageBox.Show("There was a problem:\n(" + reply.response & ") " + reply.description);}Downloads
- INCLUDE
123#import "SlimCD.h"
Method
1234567typedef void (^ImagesUploadSignatureReplyBlock)(ImagesUploadSignatureReply *reply);- (void) imagesUploadSignatureWithRequest:(ImagesUploadSignatureRequest*)request replyBlock:(ImagesUploadSignatureReplyBlock)replyBlock;- (void) imagesUploadSignatureWithRequest:(ImagesUploadSignatureRequest*)request timeout:(NSTimeInterval)timeout replyBlock:(ImagesUploadSignatureReplyBlock)replyBlock;
Request
1234567891011@interface ImagesUploadSignatureRequest@property (strong) NSString *userName;@property (strong) NSString *password;@property (strong) NSNumber *siteID;@property (strong) NSNumber *gateID;@property (strong) NSString *imageData;@end
Reply
12345@interface ImagesUploadSignatureReply : SlimCDReply@endSample Code
1234567891011121314151617SlimCD *api = [[SlimCD alloc] init];ImagesUploadSignatureRequest *request = [[ImagesUploadSignatureRequest alloc] init];request.userName = @"1032";request.password = @"289075";request.siteID = @228226448;request.gateID = @12345;request.imageData = @""; // Fill in image data here.[api imagesUploadSignatureWithRequest:request replyBlock:^(ImagesUploadSignatureReply *reply ){if ( reply.responseCode == RC_SUCCESS ){}}]; -
Method
123<textarea class="doc_code" cols="88" readonly="readonly" rows="1"> public void getUploadSignature(UploadSignatureRequest imagesUploadSignatureRequest,int timeout, UploadSignatureCallback callback)public void getUploadSignature( UploadSignatureRequest imagesUploadSignatureRequest,UploadSignatureCallback callback) </textarea>request
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061<textarea class="doc_code" cols="88" readonly="readonly" rows="10"> public class UploadSignatureRequest {// request parameters.private String username;private String password;private int gateid;private int siteid;private String filetype;private String imagedata;// set default value.public UploadSignatureRequest(){username="";password="";gateid=0;siteid=0;filetype="";imagedata="";}// setters and getters.public String getUsername() {return username;}public void setUsername(String username) {this.username = username;}public String getPassword() {return password;}public void setPassword(String password) {this.password = password;}public int getGateid() {return gateid;}public void setGateid(int gateid) {this.gateid = gateid;}public int getSiteid() {return siteid;}public void setSiteid(int siteid) {this.siteid = siteid;}public String getFiletype() {return filetype;}public void setFiletype(String filetype) {this.filetype = filetype;}public String getImagedata() {return imagedata;}public void setImagedata(String imagedata) {this.imagedata = imagedata;}}</textarea>Reply
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859<textarea class="doc_code" cols="88" readonly="readonly" rows="1"> public class UploadSignatureReply {// response parameters.private String response="";private String responsecode="";private String description="";private String responseurl="";private String sentdata="";private String recvdata="";private String datablock="";//setters and getters.public String getSentdata() {return sentdata;}public void setSentdata(String sentdata) {this.sentdata = sentdata;}public String getRecvdata() {return recvdata;}public void setRecvdata(String recvdata) {this.recvdata = recvdata;}public String getResponse() {return response;}public void setResponse(String response) {this.response = response;}public String getResponsecode() {return responsecode;}public void setResponsecode(String responsecode) {this.responsecode = responsecode;}public String getDescription() {return description;}public void setDescription(String description) {this.description = description;}public String getResponseurl() {return responseurl;}public void setResponseurl(String responseurl) {this.responseurl = responseurl;}public String getDatablock() {return datablock;}public void setDatablock(String datablock) {this.datablock = datablock;}}</textarea>Sample Code
1234567891011121314151617181920212223242526272829303132<textarea class="doc_code" cols="88" readonly="readonly" rows="20">// To set the request parameter.UploadSignatureRequest request=new UploadSignatureRequest();request.setUsername("1032");request.setPassword("289075");request.setGateid(78022528);request.setSiteid(228226448);request.setFiletype("T");request.setImagedata("SUkqAGoBAABBMDVMSDk3LTEyMDIwMjEwMTIxNwAAVDM2NDAyODIxMFQgMjQ5MCBPMzIyNDQ3MjExMU8ATWFnVGVrLCBJbmMuAABNSUNSSW1hZ2UgUlMyMzIgKCBBMDVMSDk3KQAAPFBBRE9DIFZFUj0nNCcgSVJOPScgQTA1TEg5Ny0xMjAyMDIxMDEyMTcnIFNFUT0nMScgTUFLPSdNYWdUZWssSW5jJyBNREw9J01JQ1JJbWFnZVJTMjMyJyBPQz0nUkRNMDAwMDAwNTI0MScgQU1UPScxLjAwJyBEQVRFPScyMDEyLTAyLTAyJyBUSU1FPScxMDoxMjoxNycgTUVSQz0nQi4wMTA3NTM0MTMwMCcvPgBNSTEuMDcuMjhKAAAyMDEyOjAyOjAyIDEwOjEyOjE3AFRoaXMgd2FzIGFkZGVkIGJ5IHRoZSAgVHJhbnNDbGllbnQAAMgAAAABAAAAyAAAAAEAAAAWAP4AAwABAAAAAAAAAAABAwABAAAAwAQAAAEBAwABAAAAHwIAAAMBAwABAAAABAAAAAYBAwABAAAAAAAAAAoBAwABAAAAAQAAAA0BAgAVAAAACAAAAA4BAgAeAAAAHgAAAA8BAgANAAAAPAAAABABAgAbAAAASgAAABEBBAABAAAAeAIAABIBAwABAAAAAQAAABYBAwABAAAAHwIAABcB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mThZZiWZyOCHAQ8ZxlwQEDCBhECOaD1 mrfphPu//Ya9lnJO5OGeM41l29ltw70XjBlkPqE9NtfT/vp//dJ/u6/ /fpDv/hdEK3 9ft0Q76/RY Pvf/r5sf/t/5Y43 WONkv/ ly8bstuHv/8FtWvx061/X33Db/p/33v6ftbX/X 8MJd8hLHFfL5xyHHII3z2P3QbtX11/dhe GRjwwv3YJpqImmIiIiIiIiIx/LNjJjOudM3n8 M1EeZ6MBzgz0cOWYZhlIM80Gcap2EGEH EHpbT u9NP 9KGR4Tj93/LzJw/lnJx0oO0HXv79tJ/6biv// kNNfVDRklMwyOL/ljvuu/xjkK r2/H/LH/fnD/0/nt9Kn3b Zx4T/7jv1rfx /L7Mj l2bHH7/4P/5 ZncR79f/384f9rtyFcLq96v72sP 7Xb59wvzd /eNivRBHFf8rZnAwRzOGYF/W93/dr8Nbf3RcGiG6Rrf3vr 7te7W8znf/cN/TiIiIiIiIiIiIiIiO/HVb/3BEfr2qBwRH/ yhxBEfguKX / /0K8EU/7y1cBfO/ddrdIswYzEXBbAn3WoX1tIt5xSRwD0dhYLYKxsZHznCZHwhFJimGKMwMw1xERiIiIj////// TQZICEgIdTIwOawhOHNYQ6mdAQlxkqCFBkQC5OCHbhTWFOoUnMlyIQHOgc6DIwZEFu01CDtO1QadrhMgpXemq/5UDr n/p/9pu7/v nynbNfk6SXbN0hHyz8hT5j0Wh5EMqGQd8v5Bt3 VUnf m/fDpOfP/6yNxj6/99w4ckMvfVeuv/f//99P//Xff//v //////9fv///arH///3//3/36/f/4/ v/ Nf/r/ P//////r/// nX//4X/BdV79Ptf/OopGBDqE8EjWEr6/lQF/yGFQzUF/ySB P9pwTCS ggtr3te/ gg6/6//GH68KvXxOyz4bkQcs/4UjvQQN/hZ6NYT yYFky5dU8846lhCEqISohJ8eRoovOH82iDzF3Xy66ZEF oeq06T6TTuv96//3/2n//XDCoNe//5wfNTH//p eHx///HGv//T9/// 0////v/// ax////lIP//ykGRA3/37X 9//v17 oj v Ix/XtK9b7Ue/hqsORQn7/K4muUAiHsVITxyE0x8hS/Yo7NQeQuoP Q n 6 1/tf7X/T NoNBppp2naYTQdoNMINNEQYaDQhhEuxGIiIiIiIiIiIiIiP///// ACACA");// To call the web service.new ImagesUploadSignature().getUploadSignature(request, new UploadSignatureCallback() {@Overridepublic void getUploadSignatureReply(UploadSignatureReply reply) {if (reply.getResponse().equals("Success")){textBox.setText("Success");}else{textBox.setText("There was a problem:\n" + reply.getResponse() +"\n Descriptin "+ reply.getDescription());}}});</textarea>Downloads
- URL
Protocols
- SOAP/XML
- HTTP POST
- HTTP GET
Request
Status Codes
Status Code Status Description Explanation 200 200 OK Approved or declined attempts will return a response with an XML reply block 500 500 Internal Server Error The response will not contain XML, as a server error has occurred. Reply
Output is in XML format if a status code of 200 is returned.1234567<!--?xml version="1.0" encoding="utf-8" ?-->Success0Image uploaded for 78022528https://stats.slimcd.com/wswebservices/images.asmx/UploadSignatureIf the block’s tag does not indicate “Success”, the tag will contain an error description which can be displayed to the end-user
SAMPLE CODE
Downloads
EXERCISER TOOL
Use our online exerciser tool for images.asmx
Download our VB.NET exerciser tool for web servicesRemarks
- Remarks Go here
- URL
1https://stats.slimcd.com/soft/json/jsonscript.asp?service=UploadSignature
Protocols- HTTP POST
- HTTP GET
This function accepts either name/value pairs or JSON
Request
Reply
1234567891011{"reply": {"response": "Success","responsecode": "0","description": "Image uploaded for 78022528","responseurl": "http://stats.slimcd.com/wswebservices/images.asmx/UploadSignature","datablock": null}}Sample Code
Remarks
- None