public static void validateServiceName(String serviceCode,String serviceName){
  if (!serviceName.startsWith(serviceCode)) {
    throw new CodedException(X_INCONSISTENT_HEADERS,"Malformed SOAP message: " + "service code does not match in header and body");
  }
}

public static void validateServiceName ( String serviceCode , String serviceName ) { if ( ! serviceName . startsWith ( serviceCode ) ) { throw new CodedException ( X_INCONSISTENT_HEADERS , "Malformed SOAP message: " + "service code does not match in header and body" ) ; } }
checks that the service name matches in header and body .
