Forum Discussion

krishna_95720's avatar
krishna_95720
Icon for Nimbostratus rankNimbostratus
Apr 25, 2017

Irule based on Soap request finding dummyaccountnumber and if matches data-group send to POOLA, else poolb

Hi Guys I have a requirement to create a logic based on the account number in the soap/rest request. Account numbers are Dummy one's, they are not real. If the account number in Soap request maatches the DATA group, then they will need to be redirected to pool-A, and account number in the SOAP/REST calls do not match what's in Data-group, then will be send to POOL B

Here is the sampe Soap request

POST http://abc.doamin.com/someextraservice/rest/xyzabc Content-Length: 514 Content-Type: application/xml Host: abc.doamin.com User-Agent: Apache-HttpClient/4.3.5 (java 1.5) Accept-Encoding: gzip,deflate X-Forwarded-For: 1.1.1.1 $WSIS: false $WSSC: http $WSPR: HTTP/1.1 $WSRA: 2.2.2.2 $WSRH: 2.2.2.2 $WSSN: abc.doamin.com $WSSP: 80 Surrogate-Capability: WS-ESI="ESI/1.0+" _WS_HAPRT_WLMVERSION: -1 Expect: 100-Continue

dumyvalue 123456789 CCA ZZ 90 xxxxxxxxxxx

< 200 < Content-Type: application/xml < dummyvaluexxxxxxxxxxxxx

0
OK123456789CCAZZ90

No RepliesBe the first to reply