{
//validate the inputs
WSDLInterfaceOperationInput wiarr1[] = w1.getInputs();
WSDLInterfaceOperationInput wiarr2[] = w2.getInputs();
if(wiarr1.length != wiarr2.length)
throw new JBossWSToolsException("Number of WSDLInterfaceOperationInput mismatch");
int len = wiarr1.length;
for(int i = 0 ; i < len; i ++)
{
bool = validateInterfaceOperationInput(wiarr1[i],wiarr2[i]);
if(!bool) return bool;
}
//validate the outputs
WSDLInterfaceOperationOutput woarr1[] = w1.getOutputs();
WSDLInterfaceOperationOutput woarr2[] = w2.getOutputs();
if(woarr1.length != woarr2.length)
throw new JBossWSToolsException("Number of WSDLInterfaceOperationInput mismatch");
len = woarr1.length;
for(int i = 0 ; i < len; i ++)
{
bool = validateInterfaceOperationOutput(woarr1[i],woarr2[i]);
if(!bool) return bool;
}
//validate the faults
WSDLInterfaceOperationInfault[] inf1 = w1.getInfaults();
WSDLInterfaceOperationInfault[] inf2 = w2.getInfaults();
if( (inf1 != null && inf2 == null) ||
(inf1 == null && inf2 != null) )
throw new JBossWSToolsException("Infaults mismatch for operation:"+w1.getName());
if(inf1.length != inf2.length)
throw new JBossWSToolsException("Number of Infaults mismatch for operation:"+w1.getName());
len = inf1.length;
for(int i=0; i< len; i++)
{
bool = checkQNameEquality(inf1[i].getRef(),inf2[i].getRef());
if(bool)
bool = checkStringEquality(inf1[i].getMessageLabel(),inf2[i].getMessageLabel());
if(bool == false) return bool;
}
WSDLInterfaceOperationOutfault[] outf1 = w1.getOutfaults();
WSDLInterfaceOperationOutfault[] outf2 = w2.getOutfaults();
if( (outf1 != null && outf2 == null) ||
(outf1 == null && outf2 != null) )
throw new JBossWSToolsException("Outfaults mismatch for operation:"+w1.getName());
if(outf1.length != outf2.length)
throw new JBossWSToolsException("Number of Infaults mismatch for operation:"+w1.getName());
len = outf1.length;
for(int i=0; i< len; i++)
{
bool = checkQNameEquality(outf1[i].getRef(),outf2[i].getRef());