1
votes

I am trying to consumer a REST service using OSB 12C. enter image description here

How can I set the template {projectId} when call this from Route inside pipeline?

I have been trying routing Options, but I can't do this.

2

2 Answers

3
votes

I found one way to do this changing the request outbound.

The image below shown what I did:

enter image description here

  • Was necessary insert one user-metadata in request:

    <tp:user-metadata name='projectId' value='VALUE_GOES_HERE' />

  • Under request location:

    $outbound/ctx:transport/ctx:request

1
votes

You should be able to use the "transport headers" action for this (not routing options)