Forum Discussion

radhika1's avatar
radhika1
Contributor
7 years ago

XPAth query

Hi,

 

I need to pick the value from reference number text .Can u please guide highlighted below using an xpath/xquery.

 

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soapenv:Body>
<ac:transactionLookupResponse xmlns:ac="http://www.moneygram.com/AgentConnect1705">
<ac:payload>

<ac:infoKey>exchangeRateApplied</ac:infoKey>
<ac:value>0.70173479264</ac:value>
</ac:currentValue>
<ac:currentValue>
<ac:infoKey>feeAmount</ac:infoKey>
<ac:value>137.00</ac:value>
</ac:currentValue>
<ac:currentValue>
<ac:infoKey>receive_Country</ac:infoKey>
<ac:value>GBR</ac:value>
</ac:currentValue>
<ac:currentValue>
<ac:infoKey>expectedDateOfDelivery</ac:infoKey>
<ac:value>2018-06-01-05:00</ac:value>
</ac:currentValue>
<ac:currentValue>
<ac:infoKey>receiver_FirstName</ac:infoKey>
<ac:value>SATHIS</ac:value>
</ac:currentValue>
<ac:currentValue>
<ac:infoKey>receiver_LastName</ac:infoKey>
<ac:value>JAN</ac:value>
</ac:currentValue>
<ac:currentValue>
<ac:infoKey>sender_FirstName</ac:infoKey>
<ac:value>UNAIKAN</ac:value>
</ac:currentValue>
<ac:currentValue>
<ac:infoKey>sender_LastName</ac:infoKey>
<ac:value>KUNAL</ac:value>
</ac:currentValue>
<ac:currentValue>
<ac:infoKey>mgiSessionType</ac:infoKey>
<ac:value>1</ac:value>
</ac:currentValue>
<ac:currentValue>
<ac:infoKey>sender_PrimaryPhone</ac:infoKey>
<ac:value>9845441056</ac:value>
</ac:currentValue>
</ac:currentValues>
<ac:infos>
<ac:info xsi:type="ac:CategoryInfo">
<ac:infoKey>lookupSendAgentSet</ac:infoKey>
<ac:label>Agent Fields</ac:label>
<ac:labelStandAlone>Agent Fields</ac:labelStandAlone>
<ac:displayOrder>1</ac:displayOrder>
<ac:infos>
<ac:info xsi:type="ac:FieldInfo">
<ac:infoKey>receive_AgentName</ac:infoKey>
<ac:label>Receive Agent Name</ac:label>
<ac:labelStandAlone>Receive Agent Name</ac:labelStandAlone>
<ac:displayOrder>6</ac:displayOrder>
<ac:display>true</ac:display>
<ac:dataType>string</ac:dataType>
</ac:info>
</ac:infos>
</ac:info>
<ac:info xsi:type="ac:CategoryInfo">
<ac:infoKey>lookupTransactionInfoSet</ac:infoKey>
<ac:label>Transaction Information</ac:label>
<ac:labelStandAlone>Transaction Information</ac:labelStandAlone>
<ac:displayOrder>2</ac:displayOrder>
<ac:infos>
<ac:info xsi:type="ac:FieldInfo">
<ac:infoKey>transactionStatus</ac:infoKey>
<ac:label>Transaction Status</ac:label>
<ac:labelStandAlone>Transaction Status</ac:labelStandAlone>
<ac:displayOrder>1</ac:displayOrder>
<ac:display>true</ac:display>
<ac:dataType>string</ac:dataType>
</ac:info>
<ac:info xsi:type="ac:FieldInfo">
<ac:infoKey>serviceOption</ac:infoKey>
<ac:label>Service Option</ac:label>
<ac:labelStandAlone>Service Option</ac:labelStandAlone>
<ac:displayOrder>3</ac:displayOrder>
<ac:display>true</ac:display>
<ac:dataType>string</ac:dataType>
</ac:info>
<ac:info xsi:type="ac:FieldInfo">
<ac:infoKey>serviceOptionDisplayName</ac:infoKey>
<ac:label>Service Option Name</ac:label>
<ac:labelStandAlone>Service Option Name</ac:labelStandAlone>
<ac:displayOrder>4</ac:displayOrder>
<ac:display>true</ac:display>
<ac:dataType>string</ac:dataType>
</ac:info>
<ac:info xsi:type="ac:FieldInfo">
<ac:infoKey>dateTimeSent</ac:infoKey>
<ac:label>Date-Time Transaction Sent</ac:label>
<ac:labelStandAlone>Date-Time Transaction Sent</ac:labelStandAlone>
<ac:displayOrder>7</ac:displayOrder>
<ac:display>true</ac:display>
<ac:dataType>datetime</ac:dataType>
</ac:info>
<ac:info xsi:type="ac:FieldInfo">
<ac:infoKey>feeAmount</ac:infoKey>
<ac:label>Fee Amount</ac:label>
<ac:labelStandAlone>Fee Amount</ac:labelStandAlone>
<ac:displayOrder>10</ac:displayOrder>
<ac:display>true</ac:display>
<ac:dataType>decimal</ac:dataType>
</ac:info>
<ac:info xsi:type="ac:FieldInfo">
<ac:infoKey>originatingCountry</ac:infoKey>
<ac:label>Originating Country</ac:label>
<ac:labelStandAlone>Originating Country</ac:labelStandAlone>
<ac:displayOrder>15</ac:displayOrder>
<ac:display>true</ac:display>
<ac:dataType>string</ac:dataType>
</ac:info>
<ac:info xsi:type="ac:FieldInfo">
<ac:infoKey>indicativeExchangeRate</ac:infoKey>
<ac:label>Indicative Exchange Rate</ac:label>
<ac:labelStandAlone>Indicative Exchange Rate</ac:labelStandAlone>
<ac:displayOrder>18</ac:displayOrder>
<ac:display>true</ac:display>
<ac:dataType>decimal</ac:dataType>
</ac:info>
<ac:info xsi:type="ac:FieldInfo">
<ac:infoKey>exchangeRateApplied</ac:infoKey>
<ac:label>Exchange Rate Applied</ac:label>
<ac:labelStandAlone>Exchange Rate Applied</ac:labelStandAlone>
<ac:displayOrder>24</ac:displayOrder>
<ac:display>true</ac:display>
<ac:dataType>string</ac:dataType>
</ac:info>
<ac:info xsi:type="ac:FieldInfo">
<ac:infoKey>expectedDateOfDelivery</ac:infoKey>
<ac:label>Expected Date of Delivery</ac:label>
<ac:labelStandAlone>Expected Date of Delivery</ac:labelStandAlone>
<ac:displayOrder>25</ac:displayOrder>
<ac:display>true</ac:display>
<ac:dataType>datetime</ac:dataType>
</ac:info>
<ac:info xsi:type="ac:FieldInfo">
<ac:infoKey>send_PurposeOfTransaction</ac:infoKey>
<ac:label>Sender Purpose of Transaction</ac:label>
<ac:labelStandAlone>Purpose of Transaction</ac:labelStandAlone>
<ac:displayOrder>28</ac:displayOrder>
<ac:display>true</ac:display>
<ac:dataType>enum</ac:dataType>
<ac:enumeration>
<ac:name>PURPSE_OF_TRNSCTION</ac:name>
<ac:enumeratedItems>
<ac:enumeratedItem>
<ac:identifier>BUSINESS_EXPENSE</ac:identifier>
<ac:labelShort>Business Expense</ac:labelShort>
<ac:label>Business Expense / Employee Remittance</ac:label>
</ac:enumeratedItem>
<ac:enumeratedItem>
<ac:identifier>DONATION</ac:identifier>
<ac:labelShort>Donation or Fin Aid</ac:labelShort>
<ac:label>Donation or Financial Aids</ac:label>
</ac:enumeratedItem>
<ac:enumeratedItem>
<ac:identifier>EDUCATION_TRAIN</ac:identifier>
<ac:labelShort>Education and Training</ac:labelShort>
<ac:label>Education and Training</ac:label>
</ac:enumeratedItem>
<ac:enumeratedItem>
<ac:identifier>FAMILY_SUPPORT</ac:identifier>
<ac:labelShort>Family Support</ac:labelShort>
<ac:label>Family Support</ac:label>
</ac:enumeratedItem>
<ac:enumeratedItem>
<ac:identifier>GIFT</ac:identifier>
<ac:labelShort>Gift</ac:labelShort>
<ac:label>Gift</ac:label>
</ac:enumeratedItem>
<ac:enumeratedItem>
<ac:identifier>INVEST_SAVING</ac:identifier>
<ac:labelShort>Investment/Savings</ac:labelShort>
<ac:label>Investment/Savings</ac:label>
</ac:enumeratedItem>
<ac:enumeratedItem>
<ac:identifier>LEGAL_OBLIGATION</ac:identifier>
<ac:labelShort>Legal Obligation</ac:labelShort>
<ac:label>Legal Obligation (alimony, court fee, etc.)</ac:label>
</ac:enumeratedItem>
<ac:enumeratedItem>
<ac:identifier>LOAN</ac:identifier>
<ac:labelShort>Loan</ac:labelShort>
<ac:label>Loan</ac:label>
</ac:enumeratedItem>
<ac:enumeratedItem>
<ac:identifier>PURCHASE_GOODS</ac:identifier>
<ac:labelShort>Purchase of Goods</ac:labelShort>
<ac:label>Purchase of Goods</ac:label>
</ac:enumeratedItem>
<ac:enumeratedItem>
<ac:identifier>TRAVEL_EXPENSES</ac:identifier>
<ac:labelShort>Travel Expenses</ac:labelShort>
<ac:label>Travel Expenses</ac:label>
</ac:enumeratedItem>
<ac:enumeratedItem>
<ac:identifier>OTHER</ac:identifier>
<ac:labelShort>Other (please specify)</ac:labelShort>
<ac:label>Other (please specify)</ac:label>
</ac:enumeratedItem>
</ac:enumeratedItems>
</ac:enumeration>
</ac:info>
<ac:info xsi:type="ac:FieldInfo">
<ac:infoKey>send_PurposeOfTransactionOther</ac:infoKey>
<ac:label>Sender Other Purpose of Transaction</ac:label>
<ac:labelStandAlone>Other Purpose of Transaction</ac:labelStandAlone>
<ac:displayOrder>29</ac:displayOrder>
<ac:helpTextLong>Only alpha characters are allowed when 'Other' is selected. At least two characters must be entered</ac:helpTextLong>
<ac:display>true</ac:display>
<ac:dataType>string</ac:dataType>
</ac:info>
<ac:info xsi:type="ac:FieldInfo">
<ac:infoKey>receive_AgentAbbreviation</ac:infoKey>
<ac:label>Receive Agent Name Abbreviation</ac:label>
<ac:labelStandAlone>Receive Agent Name Abbreviation</ac:labelStandAlone>
<ac:displayOrder>73</ac:displayOrder>
<ac:display>true</ac:display>
<ac:dataType>string</ac:dataType>
</ac:info>
<ac:info xsi:type="ac:FieldInfo">
<ac:infoKey>sendAmount</ac:infoKey>
<ac:label>Amount</ac:label>
<ac:labelStandAlone>Send Amount</ac:labelStandAlone>
<ac:displayOrder>78</ac:displayOrder>
<ac:display>true</ac:display>
<ac:dataType>decimal</ac:dataType>
</ac:info>
<ac:info xsi:type="ac:FieldInfo">
<ac:infoKey>sendCurrency</ac:infoKey>
<ac:label>Send Currency</ac:label>
<ac:labelStandAlone>Send Currency</ac:labelStandAlone>
<ac:displayOrder>79</ac:displayOrder>
<ac:display>true</ac:display>
<ac:dataType>string</ac:dataType>
</ac:info>
<ac:info xsi:type="ac:FieldInfo">
<ac:infoKey>mgiSessionType</ac:infoKey>
<ac:label>Product Type</ac:label>
<ac:labelStandAlone>Product Type</ac:labelStandAlone>
<ac:displayOrder>91</ac:displayOrder>
<ac:display>true</ac:display>
<ac:dataType>string</ac:dataType>
</ac:info>
<ac:info xsi:type="ac:CategoryInfo">
<ac:infoKey>lookupTransactionInfoAccountDepositSet</ac:infoKey>
<ac:label>Account Deposit</ac:label>
<ac:labelStandAlone>Transaction Account Deposit</ac:labelStandAlone>
<ac:displayOrder>96</ac:displayOrder>
<ac:infos>
<ac:info xsi:type="ac:FieldInfo">
<ac:infoKey>customerReceiveNumber</ac:infoKey>
<ac:label>Receiver Registration Number (RRN)</ac:label>
<ac:labelStandAlone>Receiver Registration Number (RRN)</ac:labelStandAlone>
<ac:displayOrder>1</ac:displayOrder>
<ac:display>true</ac:display>
<ac:dataType>string</ac:dataType>
</ac:info>
</ac:infos>
</ac:info>
<ac:info xsi:type="ac:CategoryInfo">
<ac:infoKey>lookupTransactionInfoGeneralSet</ac:infoKey>
<ac:label>General Details</ac:label>
<ac:labelStandAlone>Transaction General Details</ac:labelStandAlone>
<ac:displayOrder>98</ac:displayOrder>
<ac:infos>
<ac:info xsi:type="ac:FieldInfo">
<ac:infoKey>messageField1</ac:infoKey>
<ac:label>Message Field 1</ac:label>
<ac:labelStandAlone>Message Field 1</ac:labelStandAlone>
<ac:displayOrder>1</ac:displayOrder>
<ac:display>true</ac:display>
<ac:dataType>string</ac:dataType>
</ac:info>
<ac:info xsi:type="ac:FieldInfo">
<ac:infoKey>messageField2</ac:infoKey>
<ac:label>Message Field 2</ac:label>
<ac:labelStandAlone>Message Field 2</ac:labelStandAlone>
<ac:displayOrder>2</ac:displayOrder>
<ac:display>true</ac:display>
<ac:dataType>string</ac:dataType>
</ac:info>
</ac:infos>
</ac:info>
<ac:info xsi:type="ac:FieldInfo">
<ac:infoKey>referenceNumberText</ac:infoKey>
<ac:label>Reference Number Text</ac:label>
<ac:labelStandAlone>Reference Number Text</ac:labelStandAlone>
<ac:displayOrder>118</ac:displayOrder>
<ac:display>true</ac:display>
<ac:dataType>string</ac:dataType>
</ac:info>
</ac:infos>
</ac:info>
<ac:info xsi:type="ac:CategoryInfo">
<ac:infoKey>lookupSenderInformationSet</ac:infoKey>
<ac:label>Sender Information</ac:label>
<ac:labelStandAlone>Sender Information</ac:labelStandAlone>
<ac:displayOrder>4</ac:displayOrder>
<ac:infos>
<ac:info xsi:type="ac:FieldInfo">
<ac:infoKey>sender_FirstName</ac:infoKey>
<ac:label>First/Given Name</ac:label>
<ac:labelStandAlone>Sender First/Given Name</ac:labelStandAlone>
<ac:displayOrder>1</ac:displayOrder>
<ac:helpTextLong>Cannot start with special character, cannot contain number. Only alpha characters, dash (-) and apostrophe (') allowed</ac:helpTextLong>
<ac:display>true</ac:display>
<ac:dataType>string</ac:dataType>
</ac:info>
<ac:info xsi:type="ac:FieldInfo">
<ac:infoKey>sender_MiddleName</ac:infoKey>
<ac:label>Middle Name</ac:label>
<ac:labelStandAlone>Sender Middle Name</ac:labelStandAlone>
<ac:displayOrder>2</ac:displayOrder>
<ac:helpTextLong>Cannot start with special character, cannot contain number. Only alpha characters, dash (-) and apostrophe (') allowed</ac:helpTextLong>
<ac:display>true</ac:display>
<ac:dataType>string</ac:dataType>
</ac:info>
<ac:info xsi:type="ac:FieldInfo">
<ac:infoKey>sender_LastName</ac:infoKey>
<ac:label>Last/Family Name</ac:label>
<ac:labelStandAlone>Sender Last/Family Name</ac:labelStandAlone>
<ac:displayOrder>3</ac:displayOrder>
<ac:helpTextLong>Cannot start with special character, cannot contain number. Only alpha characters, dash (-) and apostrophe (') allowed</ac:helpTextLong>
<ac:display>true</ac:display>
<ac:dataType>string</ac:dataType>
</ac:info>
<ac:info xsi:type="ac:FieldInfo">
<ac:infoKey>sender_LastName2</ac:infoKey>
<ac:label>Second Last/Family Name</ac:label>
<ac:labelStandAlone>Sender Second Last/Family Name</ac:labelStandAlone>
<ac:displayOrder>4</ac:displayOrder>
<ac:helpTextLong>Cannot start with special character, cannot contain number. Only alpha characters, dash (-) and apostrophe (') allowed</ac:helpTextLong>
<ac:display>true</ac:display>
<ac:dataType>string</ac:dataType>
</ac:info>
<ac:info xsi:type="ac:FieldInfo">
<ac:infoKey>sender_PrimaryPhone</ac:infoKey>
<ac:label>Primary Phone Number</ac:label>
<ac:labelStandAlone>Sender Primary Phone Number</ac:labelStandAlone>
<ac:displayOrder>15</ac:displayOrder>
<ac:helpTextLong>Only numeric characters are allowed. Cannot contain a string of repeating numeric characters (example 8888888)</ac:helpTextLong>
<ac:display>true</ac:display>
<ac:dataType>string</ac:dataType>
</ac:info>
</ac:infos>
</ac:info>
<ac:info xsi:type="ac:CategoryInfo">
<ac:infoKey>lookupReceiverInformationSet</ac:infoKey>
<ac:label>Receiver Information</ac:label>
<ac:labelStandAlone>Receiver Information</ac:labelStandAlone>
<ac:displayOrder>6</ac:displayOrder>
<ac:infos>
<ac:info xsi:type="ac:FieldInfo">
<ac:infoKey>receiver_FirstName</ac:infoKey>
<ac:label>First/Given Name</ac:label>
<ac:labelStandAlone>Receiver First/Given Name</ac:labelStandAlone>
<ac:displayOrder>1</ac:displayOrder>
<ac:helpTextLong>Cannot start with special character, cannot contain number. Only alpha characters, dash (-) and apostrophe (') allowed</ac:helpTextLong>
<ac:display>true</ac:display>
<ac:dataType>string</ac:dataType>
</ac:info>
<ac:info xsi:type="ac:FieldInfo">
<ac:infoKey>receiver_MiddleName</ac:infoKey>
<ac:label>Middle Name</ac:label>
<ac:labelStandAlone>Receiver Middle Name</ac:labelStandAlone>
<ac:displayOrder>2</ac:displayOrder>
<ac:helpTextLong>Cannot start with special character, cannot contain number. Only alpha characters, dash (-) and apostrophe (') allowed</ac:helpTextLong>
<ac:display>true</ac:display>
<ac:dataType>string</ac:dataType>
</ac:info>
<ac:info xsi:type="ac:FieldInfo">
<ac:infoKey>receiver_LastName</ac:infoKey>
<ac:label>Last/Family Name</ac:label>
<ac:labelStandAlone>Receiver Last/Family Name</ac:labelStandAlone>
<ac:displayOrder>3</ac:displayOrder>
<ac:helpTextLong>Cannot start with special character, cannot contain number. Only alpha characters, dash (-) and apostrophe (') allowed</ac:helpTextLong>
<ac:display>true</ac:display>
<ac:dataType>string</ac:dataType>
</ac:info>
<ac:info xsi:type="ac:FieldInfo">
<ac:infoKey>receiver_LastName2</ac:infoKey>
<ac:label>Second Last/Family Name</ac:label>
<ac:labelStandAlone>Receiver Second Last/Family Name</ac:labelStandAlone>
<ac:displayOrder>4</ac:displayOrder>
<ac:helpTextLong>Cannot start with special character, cannot contain number. Only alpha characters, dash (-) and apostrophe (') allowed</ac:helpTextLong>
<ac:display>true</ac:display>
<ac:dataType>string</ac:dataType>
</ac:info>
<ac:info xsi:type="ac:FieldInfo">
<ac:infoKey>receiver_PrimaryPhone</ac:infoKey>
<ac:label>Primary Phone Number</ac:label>
<ac:labelStandAlone>Receiver Primary Phone Number</ac:labelStandAlone>
<ac:displayOrder>15</ac:displayOrder>
<ac:helpTextLong>Only numeric characters are allowed. Cannot contain a string of repeating numeric characters (example 8888888)</ac:helpTextLong>
<ac:display>true</ac:display>
<ac:dataType>string</ac:dataType>
</ac:info>
</ac:infos>
</ac:info>
</ac:infos>
</ac:payload>
</ac:transactionLookupResponse>
</soapenv:Body>
</soapenv:Envelope>

  • Hi

     

    Please consider the below one

     

    <ac:currentValues>
    <ac:currentValue>
    <ac:infoKey>dateTimeSent</ac:infoKey>
    <ac:value>2018-06-27T15:35:03.098-05:00</ac:value>
    </ac:currentValue>
    <ac:currentValue>
    <ac:infoKey>serviceOption</ac:infoKey>
    <ac:value>WILL_CALL</ac:value>
    </ac:currentValue>
    <ac:currentValue>
    <ac:infoKey>serviceOptionDisplayName</ac:infoKey>
    <ac:value>10 Minute Service</ac:value>
    </ac:currentValue>
    <ac:currentValue>
    <ac:infoKey>originatingCountry</ac:infoKey>
    <ac:value>USA</ac:value>
    </ac:currentValue>
    <ac:currentValue>
    <ac:infoKey>exchangeRateApplied</ac:infoKey>
    <ac:value>1.00000000000</ac:value>
    </ac:currentValue>
    <ac:currentValue>
    <ac:infoKey>feeAmount</ac:infoKey>
    <ac:value>0.00</ac:value>
    </ac:currentValue>
    <ac:currentValue>
    <ac:infoKey>receive_Country</ac:infoKey>
    <ac:value>USA</ac:value>
    </ac:currentValue>
    <ac:currentValue>
    <ac:infoKey>expectedDateOfDelivery</ac:infoKey>
    <ac:value>2018-06-27-05:00</ac:value>
    </ac:currentValue>
    <ac:currentValue>
    <ac:infoKey>receiver_FirstName</ac:infoKey>
    <ac:value>DFDFDF</ac:value>
    </ac:currentValue>
    <ac:currentValue>
    <ac:infoKey>receiver_LastName</ac:infoKey>
    <ac:value>DFDFDF</ac:value>
    </ac:currentValue>
    <ac:currentValue>
    <ac:infoKey>sender_FirstName</ac:infoKey>
    <ac:value>DHFD</ac:value>
    </ac:currentValue>
    <ac:currentValue>
    <ac:infoKey>sender_LastName</ac:infoKey>
    <ac:value>HGDHFG</ac:value>
    </ac:currentValue>
    <ac:currentValue>
    <ac:infoKey>mgiSessionType</ac:infoKey>
    <ac:value>1</ac:value>
    </ac:currentValue>
    <ac:currentValue>
    <ac:infoKey>referenceNumberText</ac:infoKey>
    <ac:value>TRANSACTION ON HOLD: Contact MoneyGram to provide additional information before funds can be available to your receiver.</ac:value>
    </ac:currentValue>
    </ac:currentValues>

  • def infoKey = context.expand( '${SoapServiceStep#declare namespace ac=\'http://www.moneygram.com/AgentConnect1705\'; //ac:transactionLookupResponse[1]/ac:Payload[1]/ac:infos[1]/ac:info[2]/ac:infos[1]/ac:info[18]/ac:infoKey[1]}' )
    
    log.info infoKey

    This should find your value. Add a groovy step and paste this and update the name of the step where I called it "SoapServiceStep" When you run it you should get the value you are looking to find.

  • Hi

     

    Please consider the below one

     

    <ac:currentValues>
    <ac:currentValue>
    <ac:infoKey>dateTimeSent</ac:infoKey>
    <ac:value>2018-06-27T15:35:03.098-05:00</ac:value>
    </ac:currentValue>
    <ac:currentValue>
    <ac:infoKey>serviceOption</ac:infoKey>
    <ac:value>WILL_CALL</ac:value>
    </ac:currentValue>
    <ac:currentValue>
    <ac:infoKey>serviceOptionDisplayName</ac:infoKey>
    <ac:value>10 Minute Service</ac:value>
    </ac:currentValue>
    <ac:currentValue>
    <ac:infoKey>originatingCountry</ac:infoKey>
    <ac:value>USA</ac:value>
    </ac:currentValue>
    <ac:currentValue>
    <ac:infoKey>exchangeRateApplied</ac:infoKey>
    <ac:value>1.00000000000</ac:value>
    </ac:currentValue>
    <ac:currentValue>
    <ac:infoKey>feeAmount</ac:infoKey>
    <ac:value>0.00</ac:value>
    </ac:currentValue>
    <ac:currentValue>
    <ac:infoKey>receive_Country</ac:infoKey>
    <ac:value>USA</ac:value>
    </ac:currentValue>
    <ac:currentValue>
    <ac:infoKey>expectedDateOfDelivery</ac:infoKey>
    <ac:value>2018-06-27-05:00</ac:value>
    </ac:currentValue>
    <ac:currentValue>
    <ac:infoKey>receiver_FirstName</ac:infoKey>
    <ac:value>DFDFDF</ac:value>
    </ac:currentValue>
    <ac:currentValue>
    <ac:infoKey>receiver_LastName</ac:infoKey>
    <ac:value>DFDFDF</ac:value>
    </ac:currentValue>
    <ac:currentValue>
    <ac:infoKey>sender_FirstName</ac:infoKey>
    <ac:value>DHFD</ac:value>
    </ac:currentValue>
    <ac:currentValue>
    <ac:infoKey>sender_LastName</ac:infoKey>
    <ac:value>HGDHFG</ac:value>
    </ac:currentValue>
    <ac:currentValue>
    <ac:infoKey>mgiSessionType</ac:infoKey>
    <ac:value>1</ac:value>
    </ac:currentValue>
    <ac:currentValue>
    <ac:infoKey>referenceNumberText</ac:infoKey>
    <ac:value>TRANSACTION ON HOLD: Contact MoneyGram to provide additional information before funds can be available to your receiver.</ac:value>
    </ac:currentValue>
    </ac:currentValues>

  • def infoKey = context.expand( '${SoapServiceStep#declare namespace ac=\'http://www.moneygram.com/AgentConnect1705\'; //ac:transactionLookupResponse[1]/ac:Payload[1]/ac:infos[1]/ac:info[2]/ac:infos[1]/ac:info[18]/ac:infoKey[1]}' )
    
    log.info infoKey

    This should find your value. Add a groovy step and paste this and update the name of the step where I called it "SoapServiceStep" When you run it you should get the value you are looking to find.