Forum Discussion

radhika1's avatar
radhika1
Contributor
7 years ago

SOAP ui empty xml tag

Hi,

 

How to find if the value of refernce number text is empty.

 

<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>(ideally if there is a value there will be one more key as <ac:value>cbbbc</ac:value> after the ac:infokey refernce number text.I need to know if that tag is not available.
<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>

      • TanyaYatskovska's avatar
        TanyaYatskovska
        SmartBear Alumni (Retired)

        Hi,

         

        In SoapUI Pro, I suppose this validation can be done via one of Assertions. I'm not sure if the free version provides this functionality. Guys, could you please check this out? radhika1 wants to check if the response contains a specific node.