Get address from ws-rawclient protocol

Clovertech Forums Cloverleaf Get address from ws-rawclient protocol

  • Creator
    Topic
  • #119107
    Brian
    Participant

      Hi,

      I need to access the address configured in the protocol in a TPS in order to append a GUID to the address (See attachment) in a PUT request. So I can set the httpRequestInfo like this:

      https://somebaseurl/GUID

      Where “https://somebaseurl/” is the configured address in the protocol and GUID is extracted from the message.

      Any help is much appreciated!

      -Brian 🙂

       

      Attachments:
      You must be logged in to view attached files.
    Viewing 1 reply thread
    • Author
      Replies
      • #119114
        Tipu Razaq
        Participant

          Should be in the metadata of the outgoing message. httpRequestInfo –> requestURL (don’t remember exactly the keyedlist/keys, You can use dumpmsg to see all the metadata of the message).

          You’ll then have to override the requestURL key with your new url, update the message’s metadata with the new keyedlist, then CONTINUE the message.

          • This reply was modified 3 years, 4 months ago by Tipu Razaq.
          • This reply was modified 3 years, 4 months ago by Tipu Razaq.
          • This reply was modified 3 years, 4 months ago by Tipu Razaq.
        • #119118
          Tipu Razaq
          Participant
            • #119119
              Brian
              Participant

                Hi,

                Thank you for the answers. The thread you sent me to, didn’t really help me, as the referenced tps (referenced by the OP) isn’t available as far as I can tell.

                Anyway we did come up with a solution which I will share here for others to find.

                Setting a path value in httpRequestInfo will append it to the address given in the config of the protocol.

                <pre>keylset httpRequestInfo path $pathValue
                keylset udata httpRequestInfo $httpRequestInfo</pre>
                I hope this helps others! This is one of those behind the scene Cloverleaf secrets 😉
          Viewing 1 reply thread
          • You must be logged in to reply to this topic.