target

Version

The destination where the service proxy will send messages to. Use the target element if you want to send the messages to a target. Supports dynamic destinations through expressions.

Syntax

target:
'$ref': <string>
adjustHostHeader: <boolean>
escaping: text
host: <string>
language: groovy
method: <string>
port: <number>
ssl: {}
url: <string>
xmlConfig: {}
target:
  '$ref': <string>
  adjustHostHeader: <boolean>
  escaping: text
  host: <string>
  language: groovy
  method: <string>
  port: <number>
  ssl: {}
  url: <string>
  xmlConfig: {}

Sample

<serviceProxy port="80">
<target host="http://thomas-bayer.com/axis2/services/BLZService" />
</serviceProxy><serviceProxy port="80">
<target url="http://thomas-bayer.com/axis2/services/BLZService" />
</serviceProxy>
<serviceProxy port="80">
  <target host="http://thomas-bayer.com/axis2/services/BLZService" />
</serviceProxy><serviceProxy port="80">
  <target url="http://thomas-bayer.com/axis2/services/BLZService" />
</serviceProxy>

Attributes

NameRequiredDefaultDescriptionExamples
$reffalse-Reference a component defined under components.-
adjustHostHeaderfalse---
escapingfalseURLWhen url contains placeholders ${}, the computed values should be escaped to prevent injection attacks.-
hostfalse-Host address of the target.localhost, 192.168.1.1
languagefalseSpELthe language of the inline expressionsSpEL, groovy, jsonpath, xpath
methodfalse-The method that should be used to make the call to the backend. Overwrites the original method.-
portfalse80Port number of the target.8080
urlfalse-Absolute URL of the target. If this is set, host and port will be ignored. Supports inline expressions through ${<expression>} elements.http://membrane-soa.org

Child Structure

ElementCardinalityDescription
ssl0..1Configures inbound or outbound SSL connections.
xmlConfig0..1

Can be used in