REST SmartService method

Home Forums kbmMW REST SmartService method

Viewing 1 reply thread
  • Author
    Posts
    • #55426
      mrluigi2017
      Participant

      Hi Kim,

      In the blog article “REST easy with kbmMW #15 – Handling HTTP POST” you describe in example 2 howto obtain url parameters. In the example the number of url parameters are fixed but in my situation the number of parameters may vary. Is there a way to obtain all url parameters as one string? I am looking something similair as in the http service where you can obtain url parameters with Args[2].

      Thanks in advance!

      Kind regards,

      Luigi

    • #55429
      mrluigi2017
      Participant

      Never mind I found the solution.

      var

      qv: TkbmMWHTTPQueryValues; // kbmMWHTTPUtils

      hlp: TkbmMWHTTPTransportStreamHelper;

      s: string;

      begin

      qv := TkbmMWHTTPQueryValues.Create;

      try

      hlp := TkbmMWHTTPTransportStreamHelper(RequestTransportStream.Helper);
      qv.AsString := hlp.Query; // Contains the part after the ?
      s := qv.ValueByName[‘test’];

       

       

       

Viewing 1 reply thread
  • You must be logged in to reply to this topic.