How to call custom validation method in custom validation and set the validation message according to the inner custom validation result.

How to call custom validation method in custom validation and set the validation message according to the inner custom validation result.

$.validator.addMethod(

"MyWebserviceValidation" , function (value, element, params) {

var otherStatus = $.validator.methods["childWebserviceValidation"].call( this , value, element, "true" ); //Ajax synch call
 
if (!otherStatus) {$.validator.messages["childWebserviceValidation"] = this .customMessage(element.name, "childWebserviceValidation");
return false ;
}
else
{
//process for this validation and return as per the output
}
 
}, jQuery.format( "The fields must be valid " ));