DDS_Inc__Suppor
14 years agoOccasional Contributor
Compare response msg to JDBC result set
Can you please tell me the best way to compare a response message with a JDBC result set? There are several repeating nodes that need to be compared. There is really no way to order the SQL for the JDBC results to guarantee the results match the response message order.
Response
Response
<Response>
<e>
<estimateCode>003</estimateCode>
<estimateEndDate>12/30/2012</estimateEndDate>
<estimateName>2012</estimateName>
<estimateStartDate>12/31/2011</estimateStartDate>
<id>1232662</id>
</e>
<e>
<estimateCode>001</estimateCode>
<estimateEndDate>12/30/2011</estimateEndDate>
<estimateName>2011 YEAR</estimateName>
<estimateStartDate>12/31/2010</estimateStartDate>
<id>1248552</id>
</e>
<e>
<estimateCode>002</estimateCode>
<estimateEndDate>05/31/2012</estimateEndDate>
<estimateName>CROSSOVER</estimateName>
<estimateStartDate>06/01/2011</estimateStartDate>
<id>1248858</id>
</e>
</Response>
JDBC Results
<Results>
<ResultSet fetchSize="10">
<Row rowNumber="1">
<CODE>003</CODE>
<END_DATE>12/31/2012</END_DATE>
<NAME>2012</NAME>
<START_DATE>01/01/2012</START_DATE>
<ID>1232662</ID>
</Row>
<Row rowNumber="2">
<CODE>002</CODE>
<END_DATE>05/31/2012</END_DATE>
<NAME>CROSSOVER</NAME>
<START_DATE>06/01/2011</START_DATE>
<ID>1248858</ID>
</Row>
<Row rowNumber="3">
<CODE>001</CODE>
<END_DATE>12/31/2011</END_DATE>
<NAME>2011 YEAR</NAME>
<START_DATE>01/01/2011</START_DATE>
<ID>1248552</ID>
</Row>
</ResultSet>
</Results>