NetTalk Central

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Niels Larsen

Pages: [1] 2 3 ... 31
3
Web Server - Ask For Help / Re: Api endpoint stream - how?
« on: May 26, 2025, 11:27:34 PM »
Hi Bruce

I followed your advice to play with example 40 "ServeDocument" and it's just perfect - works exactly as it should.

Thanks!

4
Web Server - Ask For Help / Re: Api endpoint stream - how?
« on: May 22, 2025, 11:58:44 PM »
Thanks for all your input.
Now I have a bit to work with.
I can see that in my case it is by far the easiest to use BASE64 encoded.

5
Web Server - Ask For Help / Re: Api endpoint stream - how?
« on: May 22, 2025, 12:16:50 AM »
I can see that it doesn't really make sense.
I'll try to make it a little clearer.
I have some static ftp files that I need to expose via a REST api.
I'm aware that I can BASE64 encode them but the client would prefer them as "files". This is where I'm a bit confused how to.

/Niels

6
Web Server - Ask For Help / Api endpoint stream - how?
« on: May 18, 2025, 10:34:25 PM »
Hi
I am developing an endpoint where I have to stream a pdf file (actually I have it as BASE64).
But I need some help to get going with the stream itself.
This is what I have from the associated Swagger:
Code: [Select]
  stream:
    type: object
    properties:
      canRead:
        type: boolean
      canWrite:
        type: boolean
      canSeek:
        type: boolean
      canTimeout:
        type: boolean
      length:
        format: int64
        type: integer
      position:
        format: int64
        type: integer
      readTimeout:
        format: int32
        type: integer
      writeTimeout:
        format: int32
        type: integer

Can one of you wise heads help me out?

Regards Niels

7
Web Server - Ask For Help / Re: How to set file upload filetypes
« on: May 12, 2025, 12:17:23 AM »
Maybe this is where you should look.

8
Web Server - Ask For Help / Re: Webclient with certificat
« on: May 08, 2025, 11:32:59 PM »
You just made my Friday a great day.
You pointed me in the right direction.
When I couldn't get your commands to work (because I didn't realize that your - was converted to a ?) I found the description at https://www.ssl.com/how-to/export-certificates-private-key-from-pkcs12-file-with-openssl/
What I thought was impossible turned out to be very easy.

THANK YOU Jane!!!

9
Web Server - Ask For Help / Webclient with certificat
« on: May 07, 2025, 10:19:40 PM »
Hi

I'm a little rusty with certificates so I need some help.
The task is to connect to an api via an NT webclient.
I have a pfx file and a password.
Works fine in Postman, so now I just need to get it to work in NT.
How do I insert the reference to the certificate and password?

Regards Niels

10
Web Server - Ask For Help / Re: NetWebServiceMethod as REST - HOW?
« on: May 04, 2025, 10:20:59 PM »
Thanks Bruce

That's pretty easy. I just took p_web.UserURL and fixed the rest with StringTheory.
Just glad I didn't miss a template option.

/Niels

11
Web Server - Ask For Help / Re: NetWebServiceMethod as REST - HOW?
« on: May 04, 2025, 09:17:38 PM »
I am the one who makes the server but based on the customer's guidelines.
It's basically quite simple. I need to receive two parameters "accountId" and "customerId".
Normally I do it like this: 127.0.0.1//WasteInvoice/InvoiceOverview?account=12345&customer=6789
But the customer wants it like this:
http://127.0.0.1/WasteInvoice/InvoiceOverview/account/{accountId}/customer/{customerId}

Does that make sense?

12
Web Server - Ask For Help / Re: NetWebServiceMethod as REST - HOW?
« on: May 04, 2025, 12:52:15 PM »
Hi Jane

My challenge is that I have to follow the customer's guidelines and
they describe that I have to construct my methods with this syntax.
What you describe I am familiar with and have used in many projects.

Thanks for the input!!

13
Web Server - Ask For Help / NetWebServiceMethod as REST - HOW?
« on: May 02, 2025, 02:00:10 AM »
Hi

I have a swagger that describes how to create my endpoint.
But I can't quite figure out how to receive values ​​as REST, for example like this:

http://127.0.0.1/WasteInvoice/InvoiceOverview/account/{accountId}/customer/{customerId}

Both variables are marked as "ID parameter for REST"

Regards Niels

14
Web Server - Ask For Help / Re: Refresh NWB Header
« on: April 21, 2025, 09:43:38 PM »
Hi

When I do this, I use a host value updated via websocket. Then all logged in users see the value immediately.

/Niels

15
Web Server - Ask For Help / Re: Pass parameter in servercall?
« on: April 14, 2025, 11:48:55 PM »
Altid :-)

Pages: [1] 2 3 ... 31