else
{
// check that they all have the same style element value
String style = null;
String checkStyle;
SOAPOperation soapOperation;
Iterator iterator = soapOperationList.keySet().iterator();
while (iterator.hasNext())
{
soapOperation = (SOAPOperation) iterator.next();
checkStyle = soapOperation.getStyle();
if (checkStyle == null)
checkStyle = styleB;
if (checkStyle != null
&& !checkStyle.equals(WSIConstants.ATTRVAL_SOAP_BIND_STYLE_DOC)
&& !checkStyle.equals(WSIConstants.ATTRVAL_SOAP_BIND_STYLE_RPC))
{
result = AssertionResult.RESULT_FAILED;
failureDetailList.add(
this.validator.createFailureDetail(
"Operation Name: "
+ soapOperationList.get(soapOperation)
+ "\nSOAP Operation: "
+ soapOperation.toString(),
entryContext,
soapOperation));
// REMOVE: Need to process all operations
//break;
}
if (style == null)
{
style = checkStyle;
}
else if (!style.equals(checkStyle) || !style.equals(styleB))
{
result = AssertionResult.RESULT_FAILED;
failureDetailList.add(
this.validator.createFailureDetail(
"Operation Name: "
+ soapOperationList.get(soapOperation)
+ "\nSOAP Operation: "
+ soapOperation.toString(),
entryContext,
soapOperation));
// REMOVE: Need to process all operations
//break;
}