cancel
Showing results for 
Search instead for 
Did you mean: 

How to pick a certain value from SOAP Response ?

New Member

How to pick a certain value from SOAP Response ?

There are many values for TemplateTOs in the below response. I am just showing two for example. I want corresponding template ID to be picked up whenever in the response Template name is TEST

 

<templateTOs>
<templateName>Deepali Test</templateName>
<createdUpdatedBy>RANED002</createdUpdatedBy>
<templateId>159901</templateId>
<lastUsedDate>2016-03-02T04:47:38</lastUsedDate>
<templateFieldList>
<orderNumber>0</orderNumber>
<fieldSequenceNumber>1</fieldSequenceNumber>
<fieldTO>
<fieldId>1</fieldId>
<isRepeatable>false</isRepeatable>
<defaultFieldIndicator>true</defaultFieldIndicator>
<fieldName>GUEST_ARRIVAL_DATE</fieldName>
<fieldDataType>Date</fieldDataType>
</fieldTO>
</templateFieldList>
</templateTOs>
<templateTOs>
<templateName>TEST</templateName>
<createdUpdatedBy>test1212.use</createdUpdatedBy>
<templateId>160113</templateId>
<lastUsedDate>2016-03-09T02:12:01</lastUsedDate>
<templateFieldList>
<orderNumber>0</orderNumber>
<fieldSequenceNumber>1</fieldSequenceNumber>
<fieldTO>
<fieldId>1</fieldId>
<isRepeatable>false</isRepeatable>
<defaultFieldIndicator>true</defaultFieldIndicator>
<fieldName>GUEST_ARRIVAL_DATE</fieldName>
<fieldDataType>Date</fieldDataType>
</fieldTO>
</templateFieldList>
</templateTOs>

New Here?
Join us and watch the welcome video:
Watch the new Interview
Top Kudoed Authors