reader.parse(inputSource);
}
catch (Exception e)
{
throw new WSIException("Could not read and parse profile definition.", e);
}
finally
{
//Check to see if the version of test asssertion document is supported
if (!Utils.isValidProfileTADVersion(profileAssertions))
{
String tadVersion = profileAssertions.getTADVersion();
if(tadVersion != null)
{
String tadName = profileAssertions.getTADName();
throw new WSIException(
"\nVersion "
+ tadVersion
+ " of the \""
+ tadName
+ "\"\n"
+ "document is not compatible with this version of"
+ "\n"
+ "the test tools.");
}
else
{
throw new WSIException("WS-I validation was unable to run. Unable to read the test assertion document.");
}
}
}
// The assertions from the TAD are reordered for purposes of processing. All