Regular Expression for sending conditional response..
Hi Team,
Below is the incoming request, I need to identify the postcode number and send the valid response.
lt;PostCode>2009</PostCode> <Country>AU</Country> <AddressSince>2017-09-01</AddressSince> </Address> </AddressList> <ContactDetail> <TelephoneNumber></TelephoneNumber> <MobileNumber>0413278999</MobileNumber> <FacsimileNumber></FacsimileNumber> <EmailAddress>test@def.com</EmailAddress> &
I tried with the below format, but it did not work. Not sure how to add regular expression to my condition. My response is based on the postcode number. Can you please help me here.
contains("amp;gt;5999",(/:Envelope/:Body/:InstinctFraudCheck_XMLString/:inputXMLString/text()))
Thanks
Senthil kumar. M
Comments
-
Hi,
Would a data source correlation be more appropriate? That way when the value "5999" is extracted by the xpath then the appropriate response data would be in the data source row that could be used to parameterize the response message.https://docs.parasoft.com/display/SOAVIRT9103CTP310/Configuring+Responder+Correlations
Scroll down to "Data Source Correlation" section.
0