public virtual creditResponse nextCreditResponse()
{
if (creditResponseReader.ReadState != ReadState.Closed)
{
string response = creditResponseReader.ReadOuterXml();
XmlSerializer serializer = new XmlSerializer(typeof(creditResponse));
StringReader reader = new StringReader(response);
creditResponse i = (creditResponse)serializer.Deserialize(reader);
if (!creditResponseReader.ReadToFollowing("creditResponse"))
{
creditResponseReader.Close();
}
return i;
}
return null;
}