Skip to main content

Hi All,

 

I need to deal with 1 listener that will listen 2 types of URLs as below.

 

1. http://localhost:80881/orderReports?user=abc

2. http://localhost:80881/orderReports/123?user=abc

 

As of now listner is working fine and it listnes to both URLS

 

Http listener configuration to read **2 URLs :

**

and **basic path setting as = /*** because in both the URLs "orderReports" is static and is common.

 

my requirement is to extract the dynamic ID from below url and pass that id as an URI paramter to another HTTp request

 

http://localhost:8081/orderReports/{id}?abc=123/

 

Extracted id from url using # [message.inboundProperties.'http.request.path'] which return : /orderReports/{number}

Hardcoding id field into another Http request as a URI param works

but i am not able to pass the extracted value as a flowvars.id into id uri param ?

want to pass it in the below mentioned url

HTTP request :

http:/hostname:port/reports/{extractedID}?user=123

 

do i need to update my listener configuration ?? Because as of now my listener is able to read 2 urls your help on this can solve my problem :)

 

Thanks in advance

7 个回答
  1. 2017年7月16日 19:44

    Thanks :) @shri_ramm

     

    I forget to make a change in my question

    here is my updated question

    where i have configured a listerner that listen 2 types of URLs as below.

    1: http://localhost:80881/orderReports?user=abc

    2: http://localhost:80881/orderReports/123?user=abc

     

    I need to perform only if my URL is of 2nd type and for that i have added this as to my http listenner configuration :

     

    and in basic path setting as = /* because in both the URLs "orderReports" is common.

     

    do i need to update my listener configuration ?? Becasue as of now my listener is able to read 2 urls your help on this can solve my problem :)

     

    Thanks in advance

0/9000