-
Decoder commented on the post, REST easy with kbmMW #24 – XML, JSON or YAML to object conversion 1 year, 5 months ago
Is this capability available in kbmMW 5.08.10?
-
Decoder replied to the topic Download file via REST service call? in the forum kbmMW 4 years, 9 months ago
Thanks Kim. By the time you posted this I had figured it out. Good example though.
In researching this I found the following mime type:
vnd.android.package-archive
The reason this is relevant is because my ‘zip’ file is an apk. Which is essentially a zip file, with a custom extension. I didn’t find that mime type in kbmMWCustomHTTPService.pas,…[Read more]
-
Decoder replied to the topic Download file via REST service call? in the forum kbmMW 4 years, 9 months ago
Ok, figured that out, it’s the AMapPath: Boolean = True param in HTTPResponseFromFile that was messing me up.
Now I get the file, but the client treats it as a web page, even though I’ve specified the content type as responseMimeType:”application/octet-stream”,
and displays the content of the zip file in the browser view.
So I guess I’m looki…[Read more]
-
Decoder replied to the topic Download file via REST service call? in the forum kbmMW 4 years, 9 months ago
I found this:
function HTTPResponseFromFile(const APath:string; const AAsFileName:string; const AMapPath:boolean = true):variant; overload;
…in the public interface of TkbmMWCustomHTTPService. I added a file pool to my smart service, creating it in the constructor with the service as the owner, and set the properties to match the properties…[Read more]
-
Decoder started the topic Download file via REST service call? in the forum kbmMW 4 years, 9 months ago
I’m trying to distribute an application file via our kbmMW REST service. Do you have any documentation on how this can be done? Do I need to create a separate File Service using the file pool components? Or is there a way to do it via HTTPS inside of a REST service?
Here’s an example of what I tried to…[Read more]
-
Decoder started the topic REST Service encryption supporting Android/iOS encryption in the forum kbmMW 4 years, 11 months ago
Hi Kim!
We’ve are attempting to interface a mobile app on both Android and iOS with our encryption scheme.
We’re using a custom http header to hold an encrypted, base64 encoded string.
I noticed that CFB 8-bit appears to be the encryption method for Rijndael/AES by default. We’re using a salt to further secure the string.
We are having a…[Read more]
-
Decoder replied to the topic REST request http header – how to read/write? in the forum kbmMW 4 years, 11 months ago
Hi Kim!
I’ve included code below that illustrates how I coded this process. If I understood you correctly, I’m responsible for freeing the kbmMemTable’s that I create in the methods below, correct?
Thanks
[kbmMW_Service(‘name:<myServiceName>, flags:[listed]’)]
[kbmMW_Rest(‘path:/<myPath>’)]
TMyService =…[Read more] -
Decoder replied to the topic REST request http header – how to read/write? in the forum kbmMW 4 years, 11 months ago
Thanks Kim –
In the intervening time between my post and your response, I found the helper and had started to try to work with it. Your timely blog post helped shorten the curve. 🙂
Just an FYI, in trying to load test a server I run multiple instances of a client app that runs a sequential loop, iterating through the list of available methods…[Read more]
-
Decoder started the topic REST request http header – how to read/write? in the forum kbmMW 4 years, 11 months ago
In the TIdHTTP component, I can create custom header entries. I can also read the entire http header in one shot in THTTPRequest, TIdHTTPServer, TIdHTTP etc. I have been scouring the kbmMW source trying to figure out how to read and write the REST http header using the TkbmMWIndyTCPIPServer transport, the TkbmMWHTTPSmartService, the TkbmMWServer…[Read more]
-
Decoder became a registered member 4 years, 11 months ago