Go to new doc!

+49 228 5552576-0


info@predic8.com

regExReplacer

Can be used in

proxy, serviceProxy, soapProxy, transport

Syntax

				<regExReplacer regex="string" replace="string" target="header|body" />
			
Listing 1: regExReplacer Syntax

Sample

				<serviceProxy port="2000">
					<regExReplacer regex="Hallo" replace="Hello" />		
				</serviceProxy>			
			
Listing 2: regExReplacer Example

Attributes

Name Mandatory Default Description Example
regex yes - Regex to match against the body. Hallo
replace yes - String used to replace matched parts. Hello
target no body Whether the replacement should affect the message body or the header values. header

Flow

This interceptor is by default applied to both requests and responses. By wrapping it in an <request>...</request> (or <response>...</response>) element, you can select to apply it only to requests (or only to responses). See request and response.