Topic
  • 1 reply
  • Latest Post - ‏2013-04-28T08:15:43Z by Rohit-Goyal
smashyrahul
smashyrahul
412 Posts

Pinned topic Using PCRE to set dynamic backend

‏2013-04-27T22:46:07Z |

Hello Experts,

I need to set the dynamic routing url according to "URL-in" service variable.

I am expecting the value of service variable "URL-in" similar to shown below:

https://131.161.200.201:16022/RI-service/services/ann/anngetquotedoc/469019/LP00001058/1

I want the routing URL to be changed to below.The host name and port must be changed

https://111.111.111.111:8943/RI-service/services/ann/anngetquotedoc/469019/LP00001058/1

How can I achieve this?

Can this be achieved using PCRE?

 

Thanks,

Rahul

Updated on 2013-04-27T23:34:02Z at 2013-04-27T23:34:02Z by smashyrahul
  • Rohit-Goyal
    Rohit-Goyal
    151 Posts

    Re: Using PCRE to set dynamic backend

    ‏2013-04-28T08:15:43Z  

    <dp:set-variable name="'var://service/routing-url'" value="concat('https://111.111.111.111:8943',dp:variable('var://service/uri'))"/>

     

    Set the Routing URL, concat "ip:port" combination that you want to set with Incoming URI. (I may be misspelled variables names)

     

    Rohit