Alberto Sanchez - 2006-02-16

Hello,

I'm trying to capture a value from the response of a HTTPRequest and then use it as parameter in a second HTTPRequest, but despite the value of TxKey1 is well captured in the "B2BPayment" task, it is always null in the MPIIdentification task.

Could anyone help me?

  <target name="B2BPayment">
      <httpRequest path="/b2b/App" method="GET" followRedirects="true">
          <parameter name="merchantName" value="Parquimetros de Madrid"/>
          <parameter name="merchantId" value="M9000"/>
          <parameter name="amount" value="10"/>
          <parameter name="currency" value="EUR"/>
          <parameter name="customerChannel" value="Web"/>
          <parameter name="descriptionOfGoods" value="Description"/>
        <parameter name="MSISDN" value="+34656123456"/>
        <parameter name="submit" value="Preauthorize"/>
        <parameter name="ACTION" value="PRE_AUTH"/>
        <match>
          <responseCode value="200"/>
          <regexp assign="TxKey1">'M9000_.*'</regexp>
        </match>
      </httpRequest>
        <echo>Got TransactionKey = ${TxKey1}</echo>
  </target>
   
  <target name="MPIIdentification">
    <echo>++++++++++ IDENTIFYING MPI FROM MMA ++++++++++</echo>
    <echo>Sending MPI identification for TransactionKey = ${TxKey1}</echo>
    <httpRequest path="/mma/Payment" method="GET">
      <parameter name="MPIId" value="33"/>
      <parameter name="TransactionKey" assign="TxKey1"/>
      <match>
        <responseCode value="200"/>
      </match>
    </httpRequest>
  </target>

Thanks in advanced
Alberto