AnsweredAssumed Answered

response metadata and actual response are different

Question asked by sdetweil2 on Jul 16, 2015
Latest reply on Jul 22, 2015 by sdetweil2

my users want me to only supply specific headers for responses.

 

ok, easy, find the message in the VSI, edit the response metadata tab as required.

 

run ITR,

watch the response selection, yep, selected the right one

      <charset>UTF-8</charset>

      <metaData>

        <p key="Date">{{=httpNow()}}</p>

        <p key="{{oh1_name}}">{{oh1_value}}</p>

        <p key="{{oh2_name}}">{{oh2_value}}</p>

        <p key="{{oh3_name}}">{{oh3_value}}</p>

        <p key="{{oh4_name}}">{{oh4_value}}</p>

        <p key="{{oh5_name}}">{{oh5_value}}</p>

        <p key="{{oh6_name}}">{{oh6_value}}</p>

        <p key="{{oh7_name}}">{{oh7_value}}</p>

        <p key="{{oh8_name}}">{{oh8_value}}</p>

        <p key="{{oh9_name}}">{{oh9_value}}</p>

        <p key="{{oh10_name}}">{{oh10_value}}</p>

      </metaData>

      <body>

        <bodyAsString>{{output_body}}</bodyAsString>

      </body>

look at the response prep..  yep, as expected

      <charset>UTF-8</charset>

      <metaData>

        <p key="Date">Thu, 16 Jul 2015 10:37:26 CDT</p>

        <p key="HTTP-Response-Code-Text">OK</p>

        <p key="X-CorrelationId">rat1001p78b7d2924d4aa2105aa26369b9e5</p>

        <p key="HTTP-Response-Code">200</p>

        <p key="X-TransactionId">rat1001p</p>

        <p key="Content-Type">application/json</p>

        <p key=""></p>

        <p key=""></p>

        <p key=""></p>

        <p key=""></p>

        <p key=""></p>

      </metaData>

      <body>

        <bodyAsString>{"fromAddress": {

 

look at the respond, yes, sending right data

(response tab of HTTP/S respond)

 

      <binary>false</binary>

      <charset>UTF-8</charset>

      <metaData>

        <p key="Date">Thu, 16 Jul 2015 10:37:26 CDT</p>

        <p key="HTTP-Response-Code-Text">OK</p>

        <p key="X-CorrelationId">rat1001p78b7d2924d4aa2105aa26369b9e5</p>

        <p key="HTTP-Response-Code">200</p>

        <p key="X-TransactionId">rat1001p</p>

        <p key="Content-Type">application/json</p>

        <p key=""></p>

        <p key=""></p>

        <p key=""></p>

        <p key=""></p>

        <p key=""></p>

      </metaData>

      <body>

        <bodyAsString>{"fromAddress": {

 

response at client contains

  • Content-Length →2250
  • Content-Type →application/json
  • Date →Thu, 16 Jul 2015 10:37:26 CDT
  • Server →LISA/Virtual-Environment-Server
  • X-CorrelationId →rat1001p78b7d2924d4aa2105aa26369b9e5
  • X-Powered-By →LISA/8.1.0 (8.1.0.843); Interactive TKO, Inc.
  • X-TransactionId →rat1001p

 

what? where did those come from.. I removed them from the response meta tab,

AND they do NOT appear in the response prep

 

ok, what did I do wrong?

Outcomes