Get Body in TkbmMWEventHTTPService

Home Forums kbmMW Get Body in TkbmMWEventHTTPService

Viewing 2 reply threads
  • Author
    Posts
    • #55917
      vanderlei alves
      Participant

      Hi,

       

      I'm creating a service and I'm using the HTTP service Post event, and I have a doubt about how to get the request body.
      
      Help Please.
    • #55919
      kimbomadsen
      Keymaster

      Hi,

      Check point 5 in this blog post: https://components4developers.blog/2018/07/07/rest-easy-with-kbmmw-15-handling-http-post/

      Basically the RequestStream property contains the full unparsed body. You can use various ways to get it parsed.

      /Kim

    • #55925
      vanderlei alves
      Participant

      Hi,

      <span class="Y2IQFc" lang="en">Thank you for the informations.
      
      More needed to get the body of the TkbmMWEventHTTPService service, find out in an example.
      
      body.Text := TkbmMWPlatformMarshal.Memory2String(RequestStream.Memory,RequestStream.Size);
      
      Thank you!</span>
Viewing 2 reply threads
  • You must be logged in to reply to this topic.