Skip to content

Instantly share code, notes, and snippets.

@wattsm
Created October 16, 2012 08:01
Show Gist options
  • Save wattsm/3897921 to your computer and use it in GitHub Desktop.
Save wattsm/3897921 to your computer and use it in GitHub Desktop.
Example header mapping
<mappings xmlns='http://www.tribalgroup.com/switchboard/header-mapping.xsd'>
<mapping name='example'>
<header name='LocationCode'>
<settings for='Inst-01'>
<add key='URL' value='http://inst-01/' />
</settings>
<settings for='Inst-02'>
<add key='URL' value='http://inst-02/' />
</settings>
</header>
<header name='Operation'>
<settings for='OP-1'>
<add key='Content-Type' value='text/xml' />
<add key='Method' value='POST' />
</settings>
<settings for='OP-2'>
<add key='Content-Type' value='application/json' />
<add key='Method' value='PUT' />
</settings>
</header>
</mapping>
</mappings>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment